Skip to main content
Glama

Create HTTP tool

create_http_tool
Destructive

Create 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

NameRequiredDescriptionDefault
urlYesFull https URL, with {{ placeholders }} for path/query values
nameYesUnique tool name (snake_case, e.g. create_ticket)
groupNoOptional group name to file the tool under
methodNoHTTP method (default GET)
base_lockNoSet by Synapse's own save; a value a caller gives is never taken.
read_onlyNofalse when this GET changes something (e.g. /send?to=…). Omit otherwise.
idempotentNofalse when calling twice does the work twice (books two rooms). Omit otherwise.
open_worldNoEvery HTTP tool reaches outside this workspace; omit.
descriptionYesWhat the tool does — the model reads this to decide when to call it
destructiveNotrue when a call deletes, cancels, pays or sends something that cannot be undone. Omit otherwise.
headers_jsonNoJSON object of static headers, e.g. '{"Authorization":"Bearer {{ global.API_KEY }}"}'
body_templateNoRequest body template for POST/PUT/PATCH, with {{ placeholders }}. Omit to send the arguments as JSON.
input_schema_jsonNoJSON Schema object describing the tool's arguments, e.g. '{"type":"object","properties":{"user_id":{"type":"string"}},"required":["user_id"]}'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description adds a concrete behavioral fact beyond them: recreating an existing name overwrites the prior tool. That is exactly the kind of destructive side effect an agent needs spelled out. It stops short of mentioning auth, approval flows, or validation of the templated URL.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, purpose front-loaded, then templating syntax, then the replace behavior. Every sentence carries distinct information, though the inline URL example is slightly redundant with the url field's own schema description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter creation tool with no output schema but full annotation coverage, the description covers the two non-obvious hazards: interpolation syntax and silent replacement on name collision. Remaining gaps, such as whether a newly created HTTP tool needs approval before use, are modest.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds genuine meaning the schema does not carry: {{ placeholders }} interpolate into URL, headers and body, {{ global.KEY }} pulls a workspace variable, and {{ args }} injects the whole payload. Those are the semantics most likely to cause a malformed call, so this exceeds the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Create a custom HTTP tool an agent can call') and clarifies the templating model that defines this tool type. It does not explicitly contrast with the sibling update_http_tool or create_python_tool, so an agent must infer the boundary, but the resource is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by 'an agent can call' and by the create-or-replace note ('Re-creating a tool with an existing name replaces it'), which is a real decision input. There is no explicit statement of when to use this versus update_http_tool or create_python_tool, and no prerequisites such as approval requirements are given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.