list_functions
Retrieve a comprehensive list of all custom MCP functions available on the AI Meta MCP Server, enabling AI models to identify and utilize dynamically created tools in JavaScript, Python, or Shell runtimes.
Instructions
List all custom MCP functions
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:464-483 (handler)The handler function for the 'list_functions' tool. It logs a message, creates a list of all custom tools with their details (name, description, executionEnvironment, createdAt, updatedAt), stringifies it to JSON, and returns it in the standard MCP response format with content type 'text'.async () => { console.error(`Listing all functions`); const functionList = Object.entries(customTools).map(([name, tool]) => ({ name, description: tool.description, executionEnvironment: tool.executionEnvironment, createdAt: tool.createdAt, updatedAt: tool.updatedAt, })); return { content: [ { type: "text", text: JSON.stringify(functionList, null, 2), }, ], }; }
- src/index.ts:461-484 (registration)Registration of the 'list_functions' tool using server.tool(). It provides the name, a description 'List all custom MCP functions', an empty input schema {}, and references the inline handler function."list_functions", "List all custom MCP functions", {}, async () => { console.error(`Listing all functions`); const functionList = Object.entries(customTools).map(([name, tool]) => ({ name, description: tool.description, executionEnvironment: tool.executionEnvironment, createdAt: tool.createdAt, updatedAt: tool.updatedAt, })); return { content: [ { type: "text", text: JSON.stringify(functionList, null, 2), }, ], }; } );