MCP Tools
Create an MCP Tool
Create a new MCP Tool
This endpoint creates a new tool for an existing MCP server. The tool defines how to execute a FileMaker script and what inputs/outputs it expects.
Path Parameters
mcp_server_slug*string
POST /otto/api/mcp-servers/:mcp_server_slug/tools Parameter
Request Body
application/json
POST /otto/api/mcp-servers/:mcp_server_slug/tools Request body
description?string
input_schema*
is_active?boolean
Default
truename*string
Length
1 <= length <= 100script_name*string
Length
1 <= lengthResponse Body
application/json
application/json
curl -X POST "https://your.server.net/otto/api/mcp-servers/customer-management/tools" \ -H "Content-Type: application/json" \ -d '{ "description": "Creates a new customer record", "is_active": true, "name": "Create Customer", "script_name": "Create Customer", "input_schema": { "email": { "isArray": false, "required": true, "type": "string" }, "firstName": { "isArray": false, "required": true, "type": "string" }, "lastName": { "isArray": false, "required": true, "type": "string" } } }'{
"messages": [
{
"code": 0,
"text": "ok"
}
],
"response": {}
}{
"messages": [
{
"code": 18011,
"text": "OttoFMS sample error"
}
],
"response": {}
}