Skip to main content
Glama
langchain-ai

LangSmith MCP Server

Official
by langchain-ai

list_datasets

Retrieve datasets from LangSmith with filtering options for IDs, names, data types, and metadata to organize and access training data.

Instructions

Fetch LangSmith datasets.

Note: If no arguments are provided, all datasets will be returned.

Args: dataset_ids (Optional[str]): Dataset IDs to filter by as JSON array string (e.g., '["id1", "id2"]') or single ID data_type (Optional[str]): Filter by dataset data type (e.g., 'chat', 'kv') dataset_name (Optional[str]): Filter by exact dataset name dataset_name_contains (Optional[str]): Filter by substring in dataset name metadata (Optional[str]): Filter by metadata as JSON object string (e.g., '{"key": "value"}') limit (int): Max number of datasets to return (default: 20) ctx: FastMCP context (automatically provided)

Returns: Dict[str, Any]: Dictionary containing the datasets and metadata, or an error message if the datasets cannot be retrieved

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataset_idsNo
data_typeNo
dataset_nameNo
dataset_name_containsNo
metadataNo
limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden. It discloses that it's a read operation ('Fetch'), mentions default behavior, and describes the return format. However, it doesn't address important behavioral aspects like pagination (beyond the limit parameter), rate limits, authentication requirements, or error conditions beyond the generic 'error message' mention.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections (purpose statement, note, args, returns) and uses bullet-like formatting for parameters. While comprehensive, it could be slightly more concise by integrating the note about default behavior into the main purpose statement rather than as a separate line.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (6 parameters, no annotations, but has output schema), the description is reasonably complete. It covers purpose, usage note, all parameters with semantics, and return format. The output schema existence means the description doesn't need to detail return values, but it still provides a high-level overview ('Dictionary containing the datasets and metadata'), making it adequately comprehensive.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully compensates by providing detailed semantic explanations for all 6 parameters. Each parameter is clearly explained with examples (e.g., 'JSON array string', 'e.g., "chat", "kv"', 'Filter by exact dataset name'), format requirements, and the limit's default value, adding substantial value beyond the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose as 'Fetch LangSmith datasets' with a specific verb ('Fetch') and resource ('LangSmith datasets'), making it immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'list_experiments' or 'list_projects' that likely have similar list/fetch patterns for different resource types.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context about default behavior ('If no arguments are provided, all datasets will be returned'), which helps guide usage. However, it doesn't explicitly mention when to use this tool versus alternatives like 'read_dataset' (which likely fetches a single dataset) or 'create_dataset', leaving some sibling differentiation incomplete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/langchain-ai/langsmith-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server