Skip to main content
Glama

Calculate

calculate
Read-onlyIdempotent

Morris's own chat tool, for the player's assistant (its words are written for Morris, in Spanish). Nothing goes to the player's WhatsApp now: a picture, card or text it would send comes back in for_the_player, for you to show. Calculadora exacta para TODA cifra que calcules tú antes de escribirla: sumas de minutos o golpes, distancias que quedan (333-200), porcentajes, conversiones (yardas↔metros, mph↔km/h, °F↔°C) y fechas (cuántos martes, o martes alternos, hay entre dos fechas). Todas las cuentas en una llamada.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calculate"
  }
}

Input Schema

NameRequiredDescriptionDefault
sumsNoCuentas: «10+25+30+30+15+5», «333-200», «18*(1-0.28)», «(1.5+2.8+3.3+3)».
convertNo
calendarNo

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, so safety is covered; the description adds the non-obvious behavioral fact that nothing is delivered to the player's WhatsApp and that would-be pictures, cards or text return inside `for_the_player` for the agent to relay. That return-routing detail matters especially since there is no output schema. It says nothing about error handling for malformed expressions or unit-mismatch behavior.

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?

Roughly four dense sentences with no filler; every clause carries either routing information or a concrete use case. Minor weakness: the purpose statement lands in the second sentence after the delivery-channel preamble, so it is not fully front-loaded.

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 three-parameter, nested-schema, no-output-schema tool, the description covers purpose, usage trigger, batching, and the shape of the returned data (`for_the_player`). The remaining gap is per-result content — whether each entry returns a raw number, a formatted string, or an error field — which the agent must discover at call time.

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 only 33%, but the description compensates by naming all three parameter groups with worked examples: expressions like '333-200' and '18*(1-0.28)' for `sums`, yardas↔metros / mph↔km/h / °F↔°C for `convert`, and 'cuántos martes, o martes alternos' for `calendar` including the every_weeks concept. The nested `label` field and accepted expression syntax limits stay undocumented, which keeps it below a 5.

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?

The second sentence states a specific verb and resource: an exact calculator for every figure the agent computes before writing it. It also disambiguates from the sibling `ask_morris` by framing this as Morris's own math tool rather than a chat channel, so an agent can pick between them without opening the 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?

Explicit when-to-use: run any figure through it *before* writing it, with a concrete enumeration of the cases (minute/stroke sums, remaining distances, percentages, unit conversions, date counting). It also gives a batching rule, 'Todas las cuentas en una llamada,' steering the agent away from one call per expression. No explicit when-not or alternative tool is named, so it stops short of a 5.

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.