reports_list
List analysis reports with metadata to review historical analyses and access their details.
Instructions
List analysis reports with metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results |
Implementation Reference
- src/index.js:56-56 (registration)The tool 'reports_list' is registered in the STATIC_TOOLS array as part of the tool catalog. Its definition includes a name, description, and inputSchema (with an optional 'limit' parameter).
{ name: "reports_list", description: "List analysis reports with metadata.", inputSchema: { type: "object", properties: { limit: { type: "integer", description: "Max results", default: 10 } } } }, - src/index.js:121-146 (handler)The actual handler for 'reports_list' (and all other tools) is the generic CallToolRequestSchema handler. It proxies the call to the remote MCP server via remoteClient.callTool(), passing the tool name and arguments. There is no local-specific handler for 'reports_list' — execution is delegated entirely to the remote API.
server.setRequestHandler(CallToolRequestSchema, async (request) => { if (!remoteClient) { return { content: [ { type: "text", text: "MCP Analytics API key required. Set MCP_ANALYTICS_API_KEY in your environment.\nGet a free key at https://app.mcpanalytics.ai", }, ], isError: true, }; } try { const result = await remoteClient.callTool({ name: request.params.name, arguments: request.params.arguments || {}, }); return result; } catch (err) { return { content: [{ type: "text", text: `Error: ${err.message}` }], isError: true, }; } }); - src/index.js:56-56 (schema)The input schema for 'reports_list' defines a single optional parameter: 'limit' (integer, default 10).
{ name: "reports_list", description: "List analysis reports with metadata.", inputSchema: { type: "object", properties: { limit: { type: "integer", description: "Max results", default: 10 } } } }, - src/index.js:43-43 (helper)The STATIC_TOOLS array serves as a fallback tool catalog used during inspection mode or when no API key is configured. It lists all available tools including 'reports_list'.
const STATIC_TOOLS = [