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
Name | Required | Description | Default |
---|---|---|---|
description | Yes | Description of what the function does | |
execution_environment | No | Environment to execute the code in | javascript |
implementation_code | Yes | Code to implement the function | |
name | Yes | Name of the new function | |
parameters_schema | Yes | JSON Schema for parameters |