Output format options (ask the user which they want):
a. MCP tool definition (for Claude Code MCP servers):
{
"name": "n8n_process_order",
"description": "Submits an order to the order processing workflow",
"inputSchema": {
"type": "object",
"properties": {
"customer_id": {"type": "string"},
"product_id": {"type": "string"},
"quantity": {"type": "integer"}
},
"required": ["customer_id", "product_id", "quantity"]
}
}
Plus a wrapper script that bridges the MCP call to the n8n webhook URL.
b. OpenAI function-calling spec:
{
"type": "function",
"function": {
"name": "n8n_process_order",
"description": "...",
"parameters": { }
}
}
c. Anthropic tool spec:
{
"name": "n8n_process_order",
"description": "...",
"input_schema": { }
}
d. Simple HTTP tool (for any agent):
- Endpoint URL
- Method (POST)
- Auth header / API key
- Request body schema
- Response schema
- Example curl