patent_stats
Analyze patent dataset statistics including total patents, type breakdowns, top CPC sections, assignees, and data source details to support research and analysis.
Instructions
Get statistics about the patent dataset: total patents, type breakdown, top CPC sections, top assignees, last updated timestamp, and data source information. Free endpoint.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/patents.ts:155-185 (handler)The "patent_stats" tool is registered and implemented here, calling the /api/v1/patents/stats endpoint.
server.registerTool( "patent_stats", { title: "Patent Dataset Statistics", description: "Get statistics about the patent dataset: total patents, type breakdown, " + "top CPC sections, top assignees, last updated timestamp, and data source information. Free endpoint.", inputSchema: {}, }, async () => { const res = await apiGet<PatentStatsResponse>("/api/v1/patents/stats"); if (!res.ok) { return { content: [ { type: "text" as const, text: `API error (${res.status}): ${JSON.stringify(res.data)}`, }, ], isError: true, }; } return { content: [ { type: "text" as const, text: JSON.stringify(res.data, null, 2) }, ], }; }, ); - src/tools/patents.ts:21-26 (schema)The response shape for patent_stats is defined by the PatentStatsResponse interface.
interface PatentStatsResponse { dataset: string; source: string; update_frequency: string; stats: Record<string, unknown>; }