list_prompts

Fetch prompts from LangSmith with optional filtering. Args: is_public (str): Filter by prompt visibility - "true" for public prompts, "false" for private prompts (default: "false") limit (int): Maximum number of prompts to return (default: 20) Returns: Dict with prompts and metadata

Server Langsmith langsmith-mcp-server
Category Read
Risk class Low
Parameters 20 required

What list_prompts does on Langsmith

AI agents call list_prompts to retrieve information from Langsmith without modifying anything — typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

ParameterTypeRequiredDescription
limit number Maximum number of prompts to return
is_public string Filter by prompt visibility - "true" for public prompts, "false" for private prompts

Parameters from the server's own tool schema.

Why list_prompts needs a policy

This tool retrieves and lists prompts with optional filtering—a read-only operation. There are no create, update, delete, or execute capabilities. The blast radius of misuse is minimal: an agent could enumerate prompts, but cannot modify, execute, or delete them. The filtering by visibility (is_public/private) is a standard access-control parameter, not a destructive or dangerous operation.

From the tool's definition Tool name 'list_prompts' and description 'Fetch prompts from LangSmith with optional filtering' indicate a query operation. Arguments include only filtering/pagination parameters (is_public, limit) with no modification capabilities.

Questions about list_prompts

What does the list_prompts tool do? +

Fetch prompts from LangSmith with optional filtering. Args: is_public (str): Filter by prompt visibility - "true" for public prompts, "false" for private prompts (default: "false") limit (int): Maximum number of prompts to return (default: 20) Returns: Dict with prompts and metadata. It is categorised as a Read tool in the Langsmith MCP Server, which means it retrieves data without modifying state.

What parameters does list_prompts accept? +

list_prompts accepts 2 parameters: limit, is_public. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on list_prompts? +

Register the Langsmith MCP server in PolicyLayer and add a rule for list_prompts: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Langsmith. Nothing to install.

What risk level is list_prompts? +

list_prompts is a Read tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit list_prompts? +

Yes. Add a rate_limit block to the list_prompts rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block list_prompts completely? +

Set action: deny in the PolicyLayer policy for list_prompts. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides list_prompts? +

list_prompts is provided by the Langsmith MCP server (langsmith-mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER SERVER

Every MCP server has a record like this.

Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.