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")
```Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read_dataset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_id | No | ||
| dataset_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||