Skip to main content
Glama
langchain-ai

LangSmith MCP Server

Official
by langchain-ai

read_example

Retrieve specific examples from LangSmith datasets using example IDs and optional version timestamps for data analysis and model evaluation.

Instructions

Read a specific example from LangSmith.

Args: example_id (str): Example ID to retrieve as_of (Optional[str]): Dataset version tag OR ISO timestamp to retrieve the example as of that version/time ctx: FastMCP context (automatically provided)

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

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

client = Client() example = client.read_example(example_id="example-id-here") # Or with version: # example = client.read_example(example_id="example-id-here", as_of="v1.0") ```

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
example_idYes
as_ofNo

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