Skip to main content
Glama

Call Tool

call_tool

Executes a nextdns-mcp tool by its exact search_tools name, passing the required arguments object; use it after finding a tool to run profile, log, analytics, or security operations.

Instructions

Run one of this server's tools by the exact name returned by search_tools.

Takes exactly one argument object, {"name": "", "arguments": {<that tool's parameters>}}; the name and the arguments are not two separate inputs. name selects one tool: one search result's name field. If the search answer itself is passed instead - the array of results, or one result object - it resolves to the highest-ranked tool in it, because the answer is in rank order; a multi-result answer whose highest-ranked tool is a write is refused rather than executed, and the refusal names the candidates so the call can be re-sent with one name. Anything search_tools did not return is not a tool of this server. A failed call returns a JSON payload with an error code and, when available, a hint.

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>"
    },
    "name": "call_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe name of the tool to call
argumentsNoArguments to pass to the tool

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.2.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses that the payload is one composite object rather than two inputs, how a search answer resolves to the highest-ranked tool, that a multi-result answer topped by a write is refused with the candidates named, and that failures return a JSON payload with an error code and optional hint. These are real runtime behaviors an agent could not infer from the schema alone.

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 purpose and the composite-input rule are front-loaded, and each subsequent sentence carries a distinct rule rather than filler. The middle sentences around passing a raw search answer are dense and slightly run-on, which costs a little readability.

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 dispatcher with no annotations and no output schema, the definition covers input shape, name resolution, refusal behavior, and the error payload contract. It does not state that a successful call returns the target tool's result as-is, which is the one thing an agent might still wonder about.

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 description coverage is 100%, so the baseline is 3, but the description adds meaningful semantics beyond the schema: `name` must be exactly one search result's name field, and `name` plus `arguments` are a single argument object rather than two separate parameters. That clarification prevents a concrete misuse the schema's phrasing invites.

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?

States a specific verb and resource: run one of this server's tools by the exact name returned by search_tools. That immediately separates it from the sibling search_tools, which discovers tools rather than executing them, so an agent can route between the two without opening either schema.

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?

Gives clear operative guidance: pass a name that search_tools returned, and anything not returned is not a tool of this server. It also describes the recovery path when a raw search answer is passed instead. It stops short of an explicit 'call search_tools first when you do not know the name' instruction, so a small inference is left to the agent.

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

Deploy Server

Other Tools