Artboard
MCP Tools

Create an MCP Tool

POST
/otto/api/mcp-servers/{mcp_server_slug}/tools

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

POST /otto/api/mcp-servers/:mcp_server_slug/tools Request body

application/json
  1. body
description?string
input_schema*
is_active?boolean
Defaulttrue
name*string
Length1 <= length <= 100
script_name*string
Length1 <= length

Response Body

POST /otto/api/mcp-servers/:mcp_server_slug/tools Positive response

application/json
  1. response
messages*array<>
response*
Example Request
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"    }  }}'
Example Response
{  "messages": [    {      "code": 0,      "text": "ok"    }  ],  "response": {}}

Was this page helpful?