Create HTTP tool
create_http_toolCreate a custom HTTP tool an agent can call. The tool's inputs are declared as a JSON Schema; use {{ placeholders }} in the URL, headers and body to interpolate them (e.g. https://api.example.com/users/{{ user_id }}). Use {{ global.KEY }} for a workspace variable and {{ args }} for the whole argument payload. Re-creating a tool with an existing name replaces it.
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": {
"name": "<name>",
"description": "<description>",
"url": "<url>"
},
"name": "create_http_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full https URL, with {{ placeholders }} for path/query values | |
| name | Yes | Unique tool name (snake_case, e.g. create_ticket) | |
| group | No | Optional group name to file the tool under | |
| method | No | HTTP method (default GET) | |
| base_lock | No | Set by Synapse's own save; a value a caller gives is never taken. | |
| read_only | No | false when this GET changes something (e.g. /send?to=…). Omit otherwise. | |
| idempotent | No | false when calling twice does the work twice (books two rooms). Omit otherwise. | |
| open_world | No | Every HTTP tool reaches outside this workspace; omit. | |
| description | Yes | What the tool does — the model reads this to decide when to call it | |
| destructive | No | true when a call deletes, cancels, pays or sends something that cannot be undone. Omit otherwise. | |
| headers_json | No | JSON object of static headers, e.g. '{"Authorization":"Bearer {{ global.API_KEY }}"}' | |
| body_template | No | Request body template for POST/PUT/PATCH, with {{ placeholders }}. Omit to send the arguments as JSON. | |
| input_schema_json | No | JSON Schema object describing the tool's arguments, e.g. '{"type":"object","properties":{"user_id":{"type":"string"}},"required":["user_id"]}' |