Skip to main content
Glama

Get a calculator

calculator_get
Read-only

One calculator: what it measures (cem-ui registry/tools.json), its inputs with their defaults, and its formula as the calculator's own code computes it (templates/tool-calcs/{slug}.blade.php: the recalc function, the helpers it calls and its constants), and the citation it gives. Or one self-check (registry/checks.json): its questions, answers, rule and result words from its playbook; with answers, the result it names. Ask the questions in the person's words of the moment, but give the result in the check's own words, and never as a score.

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": {
      "slug": "<slug>"
    },
    "name": "calculator_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYese.g. "drift-tax", "build-compression", "ground-check"
answersNoSelf-checks only: { item id: answer } for ground-check; the marked item ids (or { id: true }) for governance-maturity and working-or-broken

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / answers
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {
      +        "anyOf": [
      +          {
      +            "maxLength": 60,
      +            "type": "string"
      +          },
      +          {
      +            "type": "boolean"
      +          }
      +        ]
      +      },
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "items": {
      +        "maxLength": 60,
      +        "type": "string"
      +      },
      +      "maxItems": 20,
      +      "type": "array"
      +    }
      +  ],
      +  "description": "Self-checks only: { item id: answer } for ground-check; the marked item ids (or { id: true }) for governance-maturity and working-or-broken"
      +}
    • changedInput schema / properties / slug / description
      Previous value: -"e.g. \"drift-tax\", \"build-compression\""New value: +"e.g. \"drift-tax\", \"build-compression\", \"ground-check\""
  2. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare the tool read-only, non-destructive and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: the formula is reported as the calculator's own code defines it (including helpers and constants), and answers cause the check to name a result. It also imposes an output constraint – phrase questions in the person's words, state the result in the check's own words, never as a score – which an agent could not infer from annotations.

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

Conciseness2/5

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

A single sprawling sentence packed with implementation paths (cem-ui registry/tools.json, templates/tool-calcs/{slug}.blade.php, registry/checks.json) that do not help an agent invoke the tool. The actionable presentation rule is buried at the tail instead of front-loaded, and the second mode (self-check) is introduced mid-clause, forcing a re-read.

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

Completeness3/5

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

With no output schema, the description must carry the return-shape burden, and it names the fields but not their structure or how 'answers' yields a result. Implementation file paths are included while the actual response shape and error behavior for an unknown slug are not. Adequate for a simple lookup, but a caller cannot fully predict what comes back.

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 coverage is 100% and the schema itself spells out slug examples and both answer formats, so the description's restatement ('Self-checks only') adds little. The one piece of added meaning is scoping answers to checks by name (ground-check vs governance-maturity), which the schema does not make explicit. Baseline 3 fits a tool whose parameters are fully documented structurally.

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

Purpose4/5

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

The description enumerates precisely what a call returns: a single calculator's measure, inputs with defaults, formula, and citation, or a single self-check's questions, answers, rule and result words. It is clearly a singular retrieval tool, distinguishable from the plural calculators_list sibling by 'One calculator'. The verb is never stated and the density makes it hard to parse, but the resource and payload are unambiguous.

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

Usage Guidelines3/5

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

It distinguishes the two payload modes (calculator vs self-check) and limits the answers parameter to self-checks, which is useful routing. However, it gives no guidance on when to call this versus calculators_list or the ask_* siblings, and no prerequisites such as where a valid slug comes from. Usage is implied rather than stated.

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