list_datasets
List available datasets for training and evaluation, including those uploaded from S3, to prepare data for fine-tuning or model evaluation.
Instructions
List datasets available for training and evaluation. Datasets can be uploaded from S3 and used for fine-tuning or model evaluation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (default 20) |
Implementation Reference
- src/mcp.ts:458-468 (registration)Registration of the 'list_datasets' MCP tool with name, description, and inputSchema (limit parameter).
{ name: "list_datasets", description: "List datasets available for training and evaluation. Datasets can be uploaded from S3 and used for fine-tuning or model evaluation.", inputSchema: { type: "object" as const, properties: { limit: { type: "number", description: "Max results (default 20)" }, }, }, }, - src/mcp.ts:871-876 (handler)Handler for 'list_datasets' that calls getClient().listDatasets() with optional limit parameter.
// --- Datasets --- case "list_datasets": result = await getClient().listDatasets({ limit: args?.limit as number | undefined, }); break; - src/client.ts:206-215 (helper)API client method listDatasets() that sends a GET request to /api/v1/datasets with optional limit/offset query parameters.
async listDatasets(options?: { limit?: number; offset?: number; }): Promise<any> { const params = new URLSearchParams(); if (options?.limit) params.set("limit", String(options.limit)); if (options?.offset) params.set("offset", String(options.offset)); const qs = params.toString(); return this.request("GET", `/api/v1/datasets${qs ? `?${qs}` : ""}`); } - dist/client.d.ts:90-93 (schema)TypeScript type definition for listDatasets options (limit and offset as optional numbers).
listDatasets(options?: { limit?: number; offset?: number; }): Promise<any>;