custom_route
Define a custom endpoint on a project (like /health, /config/:key, or a catch-all /webhooks/* request bin). body is a response template: {{query.x}} {{params.x}} {{body.x}} {{headers.x}} {{method}} {{path}} {{now}} {{ts}} {{uuid}} {{rand}}; triple braces {{{body}}} insert raw JSON. Custom routes take precedence over resource routes; '*' catch-alls are a fallback. Max 20 routes/project.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>",
"adminKey": "<adminKey>",
"path": "<path>"
},
"name": "custom_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Response body template (string; JSON works). | |
| path | Yes | e.g. /health, /config/:key, /webhooks/* | |
| method | No | Default GET. | |
| status | No | Response status (default 200). | |
| delayMs | No | Artificial latency in ms. | |
| project | Yes | ||
| adminKey | Yes | ||
| contentType | No | Default application/json. |