Skip to main content
Glama

Create an agent tool

create_tool

Create a webhook tool the agent calls during a call to your API. label is a readable name ("Check order"), the model's name for it is derived from it automatically. description is the ONLY thing the model uses to decide WHEN to use the tool - write it as an instruction ("Use when the caller asks where their order is."), 10 to 1000 characters. url must be https and must not point into an internal network. method is GET (parameters go in the query string) or POST (parameters go in the JSON body). headers is a map of headers (typically Authorization), at most 5; the headers host, content-length, x-conversation-id and x-caller-id can't be set. params is an array of objects {name, type, source, description, constantValue, required}, at most 10: source "llm" means the model extracts the value from the call (then fill in description, and required if needed), "caller_number" fills in the caller's number and "called_number" the called number (both E.164, the model never sees either), "constant" sends a fixed value from constantValue. timeoutSecs is how long we give your API to respond - an integer from 5 to 30 seconds, default 20 (a longer limit means the caller hears silence). requireConfirmation (default false) is for tools that send or create something (an SMS, a request): the volai engine then runs the tool only when the caller's last reply clearly says yes; otherwise the tool does not run and the agent asks again, and an end_call in the same round is held back. It works only for agents on the volai engine whose language is cs or sk (the engine knows consent words in Czech and Slovak only) and is ignored for every other agent; saving the tool is never refused because of an agent's language. An account can have at most 10 tools. Creating a tool doesn't change any agent by itself - attach it via toolIds in update_agent. Same data as POST /v1/tools (response schema in /openapi.json).

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": {
      "label": "<label>",
      "description": "<description>",
      "url": "<url>",
      "method": "<method>"
    },
    "name": "create_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesAddress the agent calls, must be https and must not point into an internal network.
labelYesReadable name for the tool, shown in the portal; the model's name for it is derived from it automatically, 1 to 60 characters.
methodYesHTTP method the agent uses: GET (parameters go in the query string) or POST (parameters go in the JSON body).
paramsNoParameters the tool sends with the call, at most 10.
headersNoHeader name to value sent with every call, typically Authorization, at most 5. The headers host, content-length, x-conversation-id and x-caller-id cannot be set.
descriptionYesThe only thing the model uses to decide when to call the tool, written as an instruction, 10 to 1000 characters.
timeoutSecsNoHow long we give your API to respond, in seconds, 5 to 30. Defaults to 20; a longer limit means the caller hears silence.
requireConfirmationNoFor tools that send or create something: the volai engine runs the tool only when the caller's last reply clearly says yes. Works for engine agents in Czech or Slovak only. Defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already mark the operation as non-read-only, open-world, non-idempotent, and non-destructive, but the description adds substantial operational context: max 10 tools per account, forbidden headers, timeout-induced silence, and confirmation gating limited to Czech/Slovak engine agents. It also explains that saving a tool is never refused because of an agent's language, which is useful behavioral detail.

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?

The description is front-loaded with purpose and covers each parameter systematically, with no obvious filler. It is still a single dense paragraph, so structure could be improved for an 8-parameter tool with nested objects.

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

Completeness5/5

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

For a complex tool with 8 parameters, nested objects, and no output schema, the description covers creation, attachment, parameter sources, header restrictions, timeout behavior, confirmation behavior, and account limits. It also points to POST /v1/tools and /openapi.json for response schema details, which is sufficient.

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 the baseline is 3, but the description adds real meaning by explaining source semantics for llm/caller_number/called_number/constant, noting the model never sees E.164 numbers, and clarifying that required only applies to llm-sourced params. However, it states description is 10 to 1000 characters while the schema allows up to 2000, a conflicting constraint that reduces reliability.

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

Purpose5/5

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

Starts with a specific verb and resource: create a webhook tool the agent calls during a call to your API. It also clarifies the relationship to agent configuration by stating that creating a tool does not change any agent by itself and must be attached via update_agent.

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

Usage Guidelines4/5

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

Provides clear creation context, including that tools are attached separately with update_agent and that requireConfirmation is intended for tools that send or create something. It does not explicitly route agents between create_tool and update_tool, so it stops short of full when-to-use/when-not guidance.

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.