Skip to main content
Glama

Run a tool

run_tool

Executes a tool by name with the given arguments. Use it for tools that are not directly listed — look them up with find_tools and check their arguments with tool_schema first. Prefer a directly-listed tool whenever one fits. If the action is destructive, ask the user to confirm before calling it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesExact tool name, as returned by find_tools.
argumentsNoArguments object matching the tool's schema.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, so the description must carry the rest, and it does the most important part by warning that the call may be destructive and requiring user confirmation. It does not describe what the executed tool returns or how failures are surfaced, which is a real but minor gap for an arbitrary dispatcher.

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

Conciseness5/5

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

Four short sentences, each carrying a distinct rule: what it does, the lookup workflow, the preference for listed tools, and the destructive-action guard. The core purpose is front-loaded with no filler.

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 an arbitrary-tool dispatcher with no output schema, the description covers invocation, discovery prerequisites, and the safety guard, which is most of what an agent needs. It stops short of noting that the return payload is whatever the invoked tool produces, leaving slight ambiguity about results.

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

Parameters3/5

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

Schema description coverage is 100%, so 'name' and 'arguments' are already documented in the schema; per the rubric, 3 is the baseline. The description reinforces the workflow ('by name') but adds no syntax, formatting, or nesting detail beyond what the schema provides for the nested arguments object.

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 ('Executes a tool by name with the given arguments') and immediately frames itself as a dispatcher for tools not directly listed. This makes it clearly distinguishable from siblings like find_tools and tool_schema, which are discovery/inspection tools rather than executors.

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?

Gives explicit routing rules: use for tools not directly listed, look them up with find_tools, check arguments with tool_schema first, and prefer a directly-listed tool when one fits. It also adds a conditional guard ('if the action is destructive, ask the user to confirm'), which is a concrete when-to-act instruction.

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.

Resources