Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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), }, ], }; } );

Other Tools

Related Tools

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/alxspiker/ai-meta-mcp-server'

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