Skip to main content
Glama

SwiftPesa African Money Data

Take-home pay (PAYE)

get_take_home_pay
Read-onlyIdempotent

Use for any salary question: net (take-home) pay after income tax (PAYE) and payroll deductions (pension, social security, health, housing levies) for a gross salary in one African country. Picks the country's main PAYE calculator for you, so you only need the country and the amount. Returns tax, each deduction, net pay, effective and marginal rates, monthly and yearly figures, and a one-sentence summary. For the underlying tax bands use get_calculator_rules; for other calculators (loans, savings) use run_calculator.

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": {
      "country": "<country>",
      "gross": "<gross>"
    },
    "name": "get_take_home_pay"
  }
}

Input Schema

NameRequiredDescriptionDefault
grossYesGross salary in local currency (150000, 150k, 1.2m).
periodNoWhether gross is monthly or yearly. Defaults to the country's PAYE period (yearly for Nigeria, South Africa; monthly elsewhere).
countryYesCountry name or ISO code, e.g. "Kenya", "ke", "South Africa", "ng".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, non-open-world, so the safety profile is covered. The description adds meaningful behavior beyond that: it auto-selects the country's main PAYE calculator, itemizes what is computed (tax, each deduction, net pay, effective and marginal rates, monthly and yearly figures) plus a one-sentence summary. It does not mention error cases such as an unsupported country, which keeps it from a 5.

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?

The single dense paragraph is front-loaded with the primary use case, then the return payload, then the sibling routing. Every clause carries information, though the parenthetical deduction list and the enumeration of return fields make it slightly long for a three-parameter computation tool.

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 must describe return values — and it does so concretely (tax, each deduction, net pay, rates, monthly/yearly, summary). Combined with the full schema and the read-only annotations, an agent has everything needed to call this correctly.

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 description coverage is 100%, so gross formats (150k, 1.2m), the period default behavior, and country name/ISO code are already fully documented in the schema. The description only adds the reassurance 'you only need the country and the amount' — a marginal restatement rather than new parameter meaning, 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?

The description names a specific verb and resource (net/take-home pay after PAYE and payroll deductions for a gross salary in one African country) and scopes it precisely to a single country. It is clearly distinguishable from get_calculator_rules (tax bands) and run_calculator (loans, savings) without opening any schema.

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?

It explicitly opens with 'Use for any salary question' and then names the two alternatives with the conditions that select them: get_calculator_rules for underlying tax bands, run_calculator for other calculator types. Both when-to-use and when-not-to-use are present.

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