Skip to main content
Glama
domdomegg

openfoodfacts-mcp

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The tool handler function that returns the API documentation as text.
    	async (): Promise<CallToolResult> => ({
    		content: [{type: 'text' as const, text: API_DOCS}],
    	}),
    );
  • 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}],
    		}),
    	);
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/domdomegg/openfoodfacts-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server