langsmith-mcp-server
v0.1.7LangSmith MCP Server - TypeScript implementation
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_prompts
Fetch prompts from LangSmith with optional filtering. Args: is_public (str): Filter by prompt visibility - "true" for public prompts, "false" for private prompts (default: "false") limit (int): Maximum number of prompts to return (default: 20) Returns: Dict with prompts and metadata
| Parameter | Type | Description |
|---|---|---|
is_public | string | Filter by prompt visibility - "true" for public prompts, "false" for private prompts |
limit | number | Maximum number of prompts to return |
get_prompt_by_name
Get a specific prompt by its exact name. Args: prompt_name (str): The exact name of the prompt to retrieve Returns: Dict containing the prompt details and template, or an error message
| Parameter | Type | Description |
|---|---|---|
prompt_name * | string | The exact name of the prompt to retrieve |
push_prompt
Call this tool when you need to understand how to create and push prompts to LangSmith. This is a documentation-only tool that explains how to: - Create prompts using LangChain's prompt templates - Push prompts to LangSmith for version control and management - Handle prompt creation vs. version updates Use the LangSmith Client's push_prompt() method. See LangSmith documentation for details.
get_thread_history
Retrieve one page of message history for a specific conversation thread. Uses char-based pagination: pages are built by character budget (max_chars_per_page). Long strings are truncated to preview_chars. Supply page_number (1-based) on every call; use the returned total_pages to request further pages. Args: thread_id (str): The unique ID of the thread to fetch history for project_name (str): The name of the project containing the thread page_number (int): 1-based page index (required) max_chars_per_page (int): Max character count per page, capped at 30000 (default: 25000) preview_c…
| Parameter | Type | Description |
|---|---|---|
page_number * | number | 1-based page index (required) |
project_name * | string | The name of the project containing the thread |
thread_id * | string | The unique ID of the thread to fetch history for |
max_chars_per_page | number | Max character count per page, capped at 30000 |
preview_chars | number | Truncate long strings to this length |
fetch_runs
Fetch LangSmith runs from one or more projects with flexible filters and automatic pagination. All results are paginated by character budget to keep responses manageable. Use page_number and total_pages from the response to iterate through multiple pages. Args: project_name (str): The project name. For multiple projects, use JSON array string. limit (int): Max runs to fetch from LangSmith API (capped at 100). These runs are then paginated by character budget into pages. page_number (int): 1-based page index. Use with total_pages from response to iterate through pages. trace_id (str,…
| Parameter | Type | Description |
|---|---|---|
limit * | number | Maximum number of runs to fetch from LangSmith API (capped at 100) |
project_name * | string | The project name to fetch runs from |
error | string | "true" for errored runs, "false" for successful |
filter | string | Filter Query Language (FQL) expression |
is_root | string | "true" for only top-level traces |
max_chars_per_page | number | Max character count per page, capped at 30000 |
order_by | string | Sort field; prefix with '-' for descending |
page_number | number | 1-based page index |
preview_chars | number | Truncate long strings to this length |
reference_example_id | string | Filter runs by reference example ID |
run_type | string | Filter by type: "llm", "chain", "tool", "retriever" |
trace_filter | string | Filter applied to the root run in each trace tree |
trace_id | string | Return only runs belonging to this trace UUID |
tree_filter | string | Filter applied to any run in the trace tree |
list_projects
List LangSmith projects with optional filtering and detail level control. Args: limit (int): Maximum number of projects to return (default: 5) project_name (str, optional): Filter projects by name (partial match) more_info (str): "true" for full details, "false" for simplified (default: "false") reference_dataset_id (str, optional): Filter by reference dataset ID reference_dataset_name (str, optional): Filter by reference dataset name
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum number of projects to return |
more_info | string | "true" for full details, "false" for simplified |
project_name | string | Filter projects by name using partial matching |
reference_dataset_id | string | Filter by reference dataset ID |
reference_dataset_name | string | Filter by reference dataset name |
get_billing_usage
Fetch organization billing usage (trace counts) with workspace names inline. Args: starting_on (str): Start of date range (ISO 8601) ending_before (str): End of date range (ISO 8601) workspace (str, optional): Optional workspace UUID or display name to filter on_current_plan (str): "true" to include only usage on current plan (default: "true")
| Parameter | Type | Description |
|---|---|---|
ending_before * | string | End of date range (ISO 8601) |
starting_on * | string | Start of date range (ISO 8601) |
on_current_plan | string | "true" to include only usage on current plan |
workspace | string | Optional workspace UUID or display name to filter |
list_experiments
List LangSmith experiment projects (reference projects) with mandatory dataset filtering. Requires either reference_dataset_id or reference_dataset_name. Args: reference_dataset_id (str, optional): Dataset ID to filter experiments by reference_dataset_name (str, optional): Dataset name to filter experiments by limit (int): Maximum number of experiments to return (default: 5) project_name (str, optional): Filter by name (partial match)
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum number of experiments to return |
project_name | string | Filter projects by name using partial matching |
reference_dataset_id | string | The ID of the reference dataset to filter experiments by |
reference_dataset_name | string | The name of the reference dataset to filter experiments by |
list_datasets
Fetch LangSmith datasets. If no arguments are provided, all datasets will be returned. Args: dataset_ids (str, optional): Dataset IDs as JSON array string or single ID data_type (str, optional): Filter by dataset data type (e.g., 'chat', 'kv') dataset_name (str, optional): Filter by exact dataset name dataset_name_contains (str, optional): Filter by substring in dataset name metadata (str, optional): Filter by metadata as JSON object string limit (int): Max number of datasets to return (default: 20)
| Parameter | Type | Description |
|---|---|---|
data_type | string | Filter by dataset data type |
dataset_ids | string | Dataset IDs as JSON array string or single ID |
dataset_name | string | Filter by exact dataset name |
dataset_name_contains | string | Filter by substring in dataset name |
limit | number | Max number of datasets to return |
metadata | string | Filter by metadata as JSON object string |
list_examples
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, op…
| Parameter | Type | Description |
|---|---|---|
as_of | string | Dataset version tag or ISO timestamp |
dataset_id | string | Dataset ID to retrieve examples from |
dataset_name | string | Dataset name to retrieve examples from |
example_ids | string | Example IDs as JSON array string or single ID |
filter | string | Filter string using LangSmith query syntax |
include_attachments | string | "true" or "false" |
inline_s3_urls | string | "true" or "false" |
limit | number | Maximum number of examples to return |
metadata | string | Metadata filter as JSON object string |
offset | string | Number of examples to skip |
splits | string | Dataset splits as JSON array string or single split |
read_dataset
Read a specific dataset from LangSmith. Either dataset_id or dataset_name must be provided. Args: dataset_id (str, optional): Dataset ID to retrieve dataset_name (str, optional): Dataset name to retrieve
| Parameter | Type | Description |
|---|---|---|
dataset_id | string | Dataset ID to retrieve |
dataset_name | string | Dataset name to retrieve |
read_example
Read a specific example from LangSmith. Args: example_id (str): Example ID to retrieve as_of (str, optional): Dataset version tag or ISO timestamp
| Parameter | Type | Description |
|---|---|---|
example_id * | string | Example ID to retrieve |
as_of | string | Dataset version tag or ISO timestamp |
create_dataset
Call this tool when you need to understand how to create datasets in LangSmith. This is a documentation-only tool.
update_examples
Call this tool when you need to understand how to update dataset examples in LangSmith. This is a documentation-only tool.
run_experiment
Call this tool when you need to understand how to run experiments and evaluations in LangSmith. This is a documentation-only tool.