Skip to main content
Glama

Omnikalc calculators

Calculate

calculate
Read-onlyIdempotent

Run a calculator with the given inputs and return every result, formatted for the language, with interpretation labels when the calculator has them. Inputs you leave out use the calculator's defaults (the answer lists which). The answer includes the Omnikalc page URL with your inputs prefilled: show it to the user.

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_id": "<calculator_id>"
    },
    "name": "calculate"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitsNoUnit symbols keyed by input id or output id, for inputs/outputs that offer units (e.g. {"weight": "kg"}). Omitted ones use the default unit. The value given in `inputs` is expressed in the chosen unit.
inputsNoInput values keyed by input id (see get_calculator). Numbers for number inputs; for a select/radio the option value or its label; true/false for a toggle; "YYYY-MM-DD" for a date; "HH:MM" for a time.
languageNoLanguage of the calculators and of the returned links (en, fr, es). Defaults to en.en
calculator_idYesCalculator id as returned by search_calculators ("en/real-estate/mortgage-payment-borrowing-capacity"), or an omnikalc.com page URL, or just the slug together with `language`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, but the description adds real behavior beyond them: omitted inputs silently use calculator defaults, the response enumerates those defaults, results carry interpretation labels when available, and output includes a prefilled page URL that should be surfaced to the user. That last item is a genuine agent-facing action the annotations say nothing about.

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?

Three sentences, all load-bearing: purpose and return shape first, defaulting behavior second, the URL/user-display instruction last. The first sentence is dense but front-loaded and nothing is redundant 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?

With no output schema, the description carries the return-value burden and does so: results, localization, interpretation labels, defaults echo, and URL. Nested objects (inputs/units) are covered by the schema. What's missing is only the practical routing to the sibling tools that supply `calculator_id` and input ids.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: partial `inputs` are permitted and any omitted value falls back to the calculator's default, which the response reports back. That defaulting contract materially affects how an agent should populate `inputs`.

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?

States a specific verb and resource ('Run a calculator') and describes the returned payload: every result, localized formatting, interpretation labels, and a prefilled Omnikalc URL. It does not explicitly name or contrast itself with siblings like get_calculator or search_calculators, so the differentiation is left implicit.

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?

Usage is implied rather than stated: omitted inputs fall back to defaults and the URL should be shown to the user. There is no explicit when-to-use versus get_calculator (schema lookup) or search_calculators (discovery), so an agent must infer the workflow.

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