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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_id | No | ||
| dataset_name | No |