list_reports
Retrieve the most recent reports for a specific project, ordered by date. Use project ID to filter and optionally set a limit on results.
Instructions
List recent reports for a project (most recent first).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | ||
| limit | No | Max reports to return. Default 10. |
Implementation Reference
- src/tools/reports.js:27-29 (handler)The handler function for 'list_reports' that calls the API GET endpoint `/projects/${projectId}/reports` with an optional limit parameter.
handler: async ({ projectId, limit }) => api.get(`/projects/${projectId}/reports`, { limit }), }, - src/tools/reports.js:19-26 (schema)Input schema for 'list_reports', specifying projectId (required, string) and limit (optional number, default 10).
inputSchema: { type: 'object', properties: { projectId: { type: 'string' }, limit: { type: 'number', description: 'Max reports to return. Default 10.' }, }, required: ['projectId'], }, - src/index.js:25-34 (registration)'list_reports' is registered as part of the reportTools array, imported from reports.js and spread into ALL_TOOLS on line 34.
import { reportTools } from './tools/reports.js'; import { quickTestTools } from './tools/quickTest.js'; import { keywordResearchTools } from './tools/keywordResearch.js'; import { competitorTools } from './tools/competitors.js'; import { opportunityTools } from './tools/opportunities.js'; const ALL_TOOLS = [ ...projectTools, ...keywordTools, ...reportTools, - src/client.js:78-83 (helper)The HTTP client helper providing api.get() which the handler uses to make the GET request to the reports endpoint.
export const api = { get: (path, query) => request('GET', path, { query }), post: (path, body) => request('POST', path, { body }), patch: (path, body) => request('PATCH', path, { body }), delete: (path) => request('DELETE', path), };