Skip to main content
Glama

AI Meta MCP Server

by alxspiker

define_function

Enables AI models to create custom functions by defining name, description, parameter schema, and implementation code, supporting JavaScript, Python, and Shell execution environments.

Instructions

Create a new custom MCP function that the AI can use

Input Schema

NameRequiredDescriptionDefault
descriptionYesDescription of what the function does
execution_environmentNoEnvironment to execute the code injavascript
implementation_codeYesCode to implement the function
nameYesName of the new function
parameters_schemaYesJSON Schema for parameters

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "description": { "description": "Description of what the function does", "type": "string" }, "execution_environment": { "default": "javascript", "description": "Environment to execute the code in", "enum": [ "javascript", "python", "shell" ], "type": "string" }, "implementation_code": { "description": "Code to implement the function", "minLength": 1, "type": "string" }, "name": { "description": "Name of the new function", "minLength": 1, "type": "string" }, "parameters_schema": { "additionalProperties": {}, "description": "JSON Schema for parameters", "type": "object" } }, "required": [ "name", "description", "parameters_schema", "implementation_code" ], "type": "object" }
Install Server

Other Tools from AI Meta MCP Server

Related Tools

    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