Skip to main content
Glama

run_calculator

Read-only

Run a DecisionsCalc calculator by name (from find_calculator) with its inputs. Returns the result, the calculator page and the official sources to cite.

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": "run_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesCalculator name from find_calculator
argumentsNoInputs matching that calculator’s input schema

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real value beyond that by disclosing the return payload — result, calculator page, and citable official sources — which matters because no output schema exists; it omits failure behavior such as an unrecognized name or invalid arguments.

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?

Two sentences, zero padding: the action and its prerequisite come first, followed by the return contract. Every clause carries information an agent would otherwise have to guess.

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 read-only, two-parameter tool with a nested arguments object and no output schema, the description covers the prerequisite, the input gesture, and the return contents. The only shortfall is the absence of error or empty-result behavior for an invalid calculator name.

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 both `name` and the nested `arguments` object are already documented, including the requirement that arguments match the target calculator's input schema. The description's "with its inputs" adds little beyond that, so the baseline of 3 applies.

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?

"Run a DecisionsCalc calculator by name ... with its inputs" names a specific verb and resource, and explicitly ties the name argument to the find_calculator sibling, so an agent can distinguish this execution tool from the discovery tool 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?

The parenthetical "(from find_calculator)" establishes the prerequisite workflow: discover a calculator first, then run it. It does not state when *not* to use this tool or what to do if the calculator name is unknown, so it stops short of full alternative routing.

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.