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

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