Skip to main content
Glama

SwiftPesa African Money Data

Calculator rules

get_calculator_rules
Read-onlyIdempotent

Use when the user wants the rules themselves rather than a calculation: the tax bands, deductions, reliefs, fee tables, or loan and savings parameters behind one calculator, with official sources, caveats, the inputs it takes and when it was last verified. Rates are decimals (0.3 = 30%) unless the field says pct.

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

Input Schema

NameRequiredDescriptionDefault
slugYesCalculator slug from list_calculators, e.g. kenya-paye-calculator.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so safety is covered. The description adds real value beyond them by disclosing the return payload shape (official sources, caveats, inputs taken, last-verified date) and the decimal-vs-pct formatting convention for rates.

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?

One front-loaded usage clause followed by a data-format note; every phrase carries information (triggers, contents, sources, caveats, units). No filler or restatement of the title.

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

Completeness5/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 takes on the burden of describing returns and does so (official sources, caveats, inputs, last-verified timestamp). Combined with full schema coverage on the single parameter, an agent has everything needed to call and interpret it.

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 slug parameter is fully documented there, including an example. The description only reinforces the one-calculator scope and adds no syntax or format detail beyond what the schema provides, so the baseline 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?

States a specific verb+resource ('get the rules themselves') and enumerates the concrete contents (tax bands, deductions, reliefs, fee tables, loan and savings parameters). It explicitly contrasts with producing 'a calculation', which separates it from run_calculator by behavior rather than by name.

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

Usage Guidelines5/5

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

Gives an explicit trigger condition ('use when the user wants the rules themselves rather than a calculation'), effectively defining the when-not case and the functional alternative. An agent can decide between reading rules and running a calculation without opening either schema.

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