Skip to main content
Glama

Update an agent tool

update_tool
DestructiveIdempotent

Update a webhook tool - send only the fields you want to change, the rest stays as-is. Two things to watch for: both params and headers are always sent IN FULL (whatever you don't include in the array, the tool won't have after the update, and a header can't be edited blind from the masked value in list_tools - you must send its full value again), and changing label also changes the name the model knows the tool by - if you reference it in the agent's systemPrompt, update that too. Fields mean the same as in create_tool; timeoutSecs is an integer from 5 to 30 seconds. requireConfirmation switches the confirmation gate on or off (see create_tool) and sending it alone changes only that. Saving the tool does not rewrite agents that already run on the volai engine: a change of requireConfirmation (like any other tool field) reaches such an agent the next time it is saved or published (update_agent or publish_agent_draft). With a running campaign task the way matters: publish_agent_draft on the tested draft, unchanged, keeps the tested mark so the task continues (now with a gate the test did not cover), while update_agent clears the tested mark and stops the task with agent_version_changed. Same data as PATCH /v1/tools/{id} (API reference: https://volai.cz/en/docs/api; response schema: https://volai.cz/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": {
      "id": "<id>"
    },
    "name": "update_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId of the webhook tool to update, from list_tools. Looks like tl_9f3a2b7c4d1e.
urlNoAddress the agent calls, must be https and must not point into an internal network. Omit to leave it unchanged.
labelNoReadable name for the tool, shown in the portal; the model's name for it is derived from it automatically, 1 to 60 characters. Omit to leave it unchanged.
methodNoHTTP method the agent uses: GET (parameters go in the query string) or POST (parameters go in the JSON body). Omit to leave it unchanged.
paramsNoParameters the tool sends with the call, at most 10; the FULL list every time, a parameter not included here won't exist after the update.
headersNoHeader name to value sent with every call, typically Authorization, at most 5; the FULL list every time, a header not included here won't exist after the update. The headers host, content-length, x-conversation-id and x-caller-id cannot be set.
descriptionNoThe only thing the model uses to decide when to call the tool, written as an instruction, 10 to 1000 characters. Omit to leave it unchanged.
timeoutSecsNoHow long we give your API to respond, in seconds, 5 to 30. Omit to leave it unchanged; a longer limit means the caller hears silence.
requireConfirmationNotrue makes the volai engine run the tool only when the caller's last reply clearly says yes, false turns that off. Engine agents in Czech or Slovak only. Omit to leave it unchanged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Goes well past the annotations: it warns that params and headers are replaced wholesale (matching destructiveHint=true), that a masked header value cannot be reused and must be re-sent, that label changes the model-visible name, and that changes only reach engine agents on their next save/publish. It does not cover the update's own failure modes (e.g. invalid URL/internal-network rejection timing) or what the response returns, so it stops short of a 5.

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

Conciseness3/5

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

Front-loaded with the highest-risk warning, which is right, but everything sits in one dense paragraph mixing partial-update semantics, header masking, naming, engine propagation, and campaign-task branching. The content mostly earns its place, yet the campaign-task passage is long and would be far more usable as separate bulleted points; an agent parsing it linearly risks dropping the requireConfirmation caveat.

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 9-parameter, nested-schema mutation with no output schema, the definition covers the destructive edge cases, cross-tool propagation, the PATCH endpoint equivalent, and a docs/OpenAPI pointer. Nothing needed to call it safely appears to be missing.

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 genuine meaning the schema lacks: the destructive full-replacement nature of params/headers, the fact that a masked header from list_tools cannot be edited blind, and that sending requireConfirmation alone changes only that. It restates timeoutSecs (5-30) and the label/name derivation, which the schema already carries, so it is not fully additive.

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?

Opens with a specific verb+resource ("Update a webhook tool") and immediately clarifies partial-update semantics ("send only the fields you want to change, the rest stays as-is"). It also names related siblings (create_tool for field meaning, list_tools for IDs, update_agent/publish_agent_draft for propagation), so an agent can distinguish it from neighbours without reading the schema.

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

Usage Guidelines5/5

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

Explicitly states the partial-update contract and the two full-replacement exceptions, and names the concrete alternative paths: update_agent (clears tested mark, stops a running task with agent_version_changed) versus publish_agent_draft on the unchanged tested draft (keeps the mark). That is a real when-to-use/when-not decision, not an implied one.

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.