Skip to main content
Glama

Run an engineering calculator

run_calculator
Read-onlyIdempotent

Runs one operation of an amperis.com calculator with the same formulas as its web page and returns the result as JSON. Call list_calculators with the calculator id first to see the operation names, their parameters and the input fields. "input" is either a list of the positional parameters, or, for operations that take one object (parameter "e"), that object with the fields named in list_calculators.

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": {
      "calculator": "<calculator>",
      "operation": "<operation>",
      "input": "<input>"
    },
    "name": "run_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of the catalogue content. Default: es.
inputYesPositional arguments (array) or the input object.
operationYes
calculatorYes

Output Schema

NameRequiredDescriptionDefault
pageNo
resultNo
operationYes
calculatorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds real behavior beyond that: results match the web page's formulas, output is JSON, and the operation name space is only discoverable via list_calculators. No rate limits or error behavior are mentioned, keeping it out of the top band.

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?

Two tight sentences, front-loaded with the action and back-loaded with the required prerequisite. Dense but no wasted clauses; the prerequisite arguably belongs before or alongside the input explanation for better scan order.

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?

An output schema exists, so return values need no explanation, and the description correctly delegates the open-ended parameter space to list_calculators. For a dynamically-shaped generic executor this is close to complete; only the mechanics of "operation" naming and error handling are left unstated.

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?

With only 50% schema description coverage, the description carries the load and does it reasonably: it explains the dual shape of "input" (positional array vs. the single-object form with fields named in list_calculators) and points to list_calculators for operation names and their parameters. It does not clarify format constraints on "calculator" or "operation" (ids, maxLength), which the schema leaves bare.

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: "Runs one operation of an amperis.com calculator ... and returns the result as JSON." It also implicitly separates itself from list_calculators, which is named as the discovery step rather than the execution step, so an agent can tell the two apart 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 an explicit ordering prerequisite: call list_calculators with the calculator id first to learn operation names, parameters, and input fields. That is clear when-to-use context, though it offers no guidance on failure cases (unknown calculator id, invalid operation name) or what to do instead.

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