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
name*string
Length
1 <= length <= 100description?string
script_name*string
Length
1 <= lengthinput_schema*
is_active?boolean
Default
trueResponse Body
application/json
application/json
curl -X POST "https://your.server.net/otto/api/mcp-servers/string/tools" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "script_name": "string", "input_schema": { "property1": { "type": "string" }, "property2": { "type": "string" } } }'{
"response": {
"id": -1.7976931348623157e+308,
"mcp_server_slug": "string",
"name": "string",
"description": "string",
"script_name": "string",
"input_schema": {
"property1": {
"type": "string",
"isArray": false,
"required": false,
"description": "string",
"enumValues": [
"string"
]
},
"property2": {
"type": "string",
"isArray": false,
"required": false,
"description": "string",
"enumValues": [
"string"
]
}
},
"is_active": true,
"created_at": "string",
"updated_at": "string"
},
"messages": [
{
"code": 0.1,
"text": "ok"
}
]
}{
"response": {},
"messages": [
{
"code": 18011,
"text": "OttoFMS sample error"
}
]
}