Get a dataset run
getDatasetRunFetch a specific dataset run by providing the dataset name and run name, enabling access to evaluation data.
Instructions
Fetch a specific dataset run by name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datasetName | Yes | ||
| runName | Yes |
Implementation Reference
- src/tools.ts:265-267 (handler)The handler function for the 'getDatasetRun' tool. It takes datasetName and runName, URL-encodes them, and makes a GET request to the Langfuse API at /api/public/datasets/{datasetName}/runs/{runName}.
async ({ datasetName, runName }) => asJson(await client.get(`/api/public/datasets/${enc(datasetName)}/runs/${enc(runName)}`)), ); - src/tools.ts:260-263 (schema)Input schema for 'getDatasetRun' tool: requires datasetName (string, min 1) and runName (string, min 1).
inputSchema: { datasetName: z.string().min(1), runName: z.string().min(1), }, - src/tools.ts:255-267 (registration)Registers the 'getDatasetRun' tool on the MCP server via server.registerTool() within the registerTools function.
server.registerTool( "getDatasetRun", { title: "Get a dataset run", description: "Fetch a specific dataset run by name.", inputSchema: { datasetName: z.string().min(1), runName: z.string().min(1), }, }, async ({ datasetName, runName }) => asJson(await client.get(`/api/public/datasets/${enc(datasetName)}/runs/${enc(runName)}`)), ); - src/tools.ts:410-410 (registration)The 'getDatasetRun' string is included in the exported TOOL_NAMES constant array for tool name enumeration.
"getDatasetRun",