Skip to main content
Glama

list_examples

Fetch examples from LangSmith datasets by ID, name, or example IDs. Apply filters, metadata, splits, and versioning to retrieve targeted data for analysis or evaluation.

Instructions

Fetch examples from a LangSmith dataset with advanced filtering options.

Either dataset_id, dataset_name, or example_ids must be provided.

Args: dataset_id (str, optional): Dataset ID to retrieve examples from dataset_name (str, optional): Dataset name to retrieve examples from example_ids (str, optional): Example IDs as JSON array string or single ID filter (str, optional): Filter string using LangSmith query syntax metadata (str, optional): Metadata filter as JSON object string splits (str, optional): Dataset splits as JSON array string or single split inline_s3_urls (str, optional): "true" or "false" include_attachments (str, optional): "true" or "false" as_of (str, optional): Dataset version tag or ISO timestamp limit (int): Max examples to return (default: 10) offset (str, optional): Number of examples to skip

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
as_ofNoDataset version tag or ISO timestamp
limitNoMaximum number of examples to return
filterNoFilter string using LangSmith query syntax
offsetNoNumber of examples to skip
splitsNoDataset splits as JSON array string or single split
metadataNoMetadata filter as JSON object string
dataset_idNoDataset ID to retrieve examples from
example_idsNoExample IDs as JSON array string or single ID
dataset_nameNoDataset name to retrieve examples from
inline_s3_urlsNo"true" or "false"
include_attachmentsNo"true" or "false"
Behavior3/5

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

No annotations are provided, so the description carries the burden. It states that one of three parameters must be provided, which is a behavioral constraint, but it does not disclose read-only status, auth requirements, or pagination behavior. The word 'Fetch' implies read-only, though not explicitly.

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 structured with a summary line, a requirement line, and a parameter list. It is clear and front-loaded, but somewhat redundant with the schema as every parameter description is duplicated, adding length without much new information.

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

Completeness3/5

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

With 11 parameters and no output schema, the description covers all inputs but does not explain the return format, pagination, or error behavior. The 'advanced filtering options' are merely listed without further explanation, leaving some gaps for a complex tool.

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

Parameters4/5

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

The description repeats the parameter list, which matches the schema's 100% coverage. It adds the requirement that one of dataset_id, dataset_name, or example_ids must be provided, which is useful beyond the schema. No additional syntax or format details are given beyond the schema descriptions.

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

Purpose5/5

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

The description clearly states 'Fetch examples from a LangSmith dataset with advanced filtering options' with a specific verb and resource. It also clarifies that one of dataset_id, dataset_name, or example_ids must be provided. This distinguishes it from sibling tools like list_datasets or read_example by focusing on examples and filtering.

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

Usage Guidelines3/5

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

The description implies usage for retrieving multiple examples with filtering and requires at least one identifier, but it does not explicitly compare itself to alternatives like read_example for single-example retrieval or mention when not to use it. It provides context but no clear exclusions or alternatives.

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/amitrechavia/langsmith-mcp-server-js'

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