Skip to main content
Glama

execute_selected_tool

Runs one selected tool through a safety gate, enabling controlled execution with optional confirmation and JSON arguments.

Instructions

Backward-compatible helper: run one selected tool through the safety gate.

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": {
      "tool_id": "<tool_id>"
    },
    "name": "execute_selected_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
tool_idYes
confirmedNo
arguments_jsonNo{}

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it discloses almost nothing: what the safety gate validates, what happens when it blocks, whether confirmed gates destructive actions, or whether argument validation occurs are all unstated. Only the vague notion of a gate is conveyed.

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?

It is a single short, front-loaded sentence with no filler, but that brevity comes at the cost of under-specification rather than efficiency. Nothing is badly structured; there is simply too little content.

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

Completeness2/5

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

For a dynamic dispatcher that can invoke arbitrary tools under a safety gate, the description is far too thin, though the presence of an output schema relieves it of explaining return values. The critical gaps are the gate's semantics and the confirmed/arguments_json contract, which an agent needs before calling it safely.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate for three bare parameters, and it does not: tool_id is only obliquely implied by "selected tool," and confirmed and arguments_json (a JSON-encoded string with default "{}") are never mentioned. The agent gets no meaning beyond names and types.

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

Purpose2/5

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

"Run one selected tool through the safety gate" largely restates the name execute_selected_tool rather than defining what the tool actually does. "Backward-compatible helper" hints at a legacy dispatch wrapper, but what "the safety gate" checks or what a "selected tool" can be is left entirely undefined.

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

Usage Guidelines2/5

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

There is no guidance on when to use this instead of a direct call or the sibling execute_plan, and no indication of when it should be avoided. The phrase "backward-compatible" faintly implies it is a legacy path, but the agent must guess whether that means prefer alternatives.

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