get_api_docs
Retrieve API documentation for Open Food Facts to understand available endpoints and data structures before making API calls.
Instructions
Get Open Food Facts API documentation. Useful for understanding available endpoints before using call_api.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/get-api-docs.ts:122-125 (handler)The tool handler function that returns the API documentation as text.
async (): Promise<CallToolResult> => ({ content: [{type: 'text' as const, text: API_DOCS}], }), ); - src/tools/get-api-docs.ts:112-126 (registration)Registration function for the 'get_api_docs' tool.
export function registerGetApiDocs(server: McpServer): void { server.registerTool( 'get_api_docs', { title: 'Get API docs', description: 'Get Open Food Facts API documentation. Useful for understanding available endpoints before using call_api.', annotations: { readOnlyHint: true, }, }, async (): Promise<CallToolResult> => ({ content: [{type: 'text' as const, text: API_DOCS}], }), ); }