Skip to main content
Glama
langchain-ai

LangSmith MCP Server

Official
by langchain-ai

read_dataset

Retrieve dataset details from LangSmith by providing either a dataset ID or name for analysis and integration.

Instructions

Read a specific dataset from LangSmith.

Note: Either dataset_id or dataset_name must be provided to identify the dataset. If both are provided, dataset_id takes precedence.

Args: dataset_id (Optional[str]): Dataset ID to retrieve dataset_name (Optional[str]): Dataset name to retrieve ctx: FastMCP context (automatically provided)

Returns: Dict[str, Any]: Dictionary containing the dataset details, or an error message if the dataset cannot be retrieved

Example in case you need to create a separate python script to read a dataset: ```python from langsmith import Client

client = Client() dataset = client.read_dataset(dataset_name="My Dataset") # Or by ID: # dataset = client.read_dataset(dataset_id="dataset-id-here") ```

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataset_idNo
dataset_nameNo

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