Skip to main content
Glama

Ghana Pay and Tax

Take-home pay from a monthly salary in Ghana

pay.take_home
Read-only

Use this when someone gives a monthly salary in Ghana cedis and asks what they take home, how much income tax (PAYE) or social security (SSNIT) comes off it, or what an employee costs an employer. It works the tax out band by band; do not estimate it first. Do not use it for a business's tax, for a year-end return with reliefs, for overtime or bonus alone, or for pay in another country.

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": {
      "basic_salary": "<basic_salary>"
    },
    "name": "pay.take_home"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthNoThe month the pay is for, as YYYY-MM. Leave out for the bands in force now.
residentNoWhether the person is resident in Ghana for tax. Leave out for yes.
allowancesNoTaxable cash allowances a month in Ghana cedis, on top of basic salary. Leave out if none.
pays_ssnitNoWhether social security (SSNIT) is taken from the pay. Leave out for yes.
basic_salaryYesBasic salary a month in Ghana cedis, before anything is taken off.

Output Schema

NameRequiredDescriptionDefault
lawNo
noteYes
periodNo
read_onYes
sourcesNo
currencyYes
residentNo
gross_payNo
take_homeYes
allowancesNo
bands_fromYes
income_taxYes
explore_urlNo
tax_by_bandNo
basic_salaryYes
not_includedYes
employer_costNo
employer_ssnitNo
ssnit_employeeNo
asked_take_homeNo
chargeable_incomeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds real behavioral content beyond that: the calculation is performed band by band and the agent is explicitly told not to pre-estimate. It does not discuss rounding, currency of the result, or what the employer-cost figure includes, but with an output schema present those gaps are minor.

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?

Two sentences, both front-loaded: the trigger and scope come first, the exclusions second, and the anti-estimation instruction is packed into a short clause. Every phrase carries routing or behavioral weight; nothing is redundant.

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 an output schema, full schema coverage, and safety annotations, the description only needs to supply purpose, routing, and any non-obvious behavior, and it does all three. The one thing an agent might want that neither the description nor the schema states is how the optional month changes the applicable band set, though the schema hint about 'bands in force now' partly covers 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 description coverage is 100%, so every parameter (month, resident, allowances, pays_ssnit, basic_salary) is already documented in the schema, including defaults and the YYYY-MM format. The description mentions tax and social security conceptually but adds no parameter-level meaning, such as how the month affects which bands apply or how allowances interact with the bands. Baseline 3 applies when the schema carries the load.

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 names a concrete verb-and-resource pair ('take home' from a 'monthly salary in Ghana cedis') and enumerates the outputs it covers: net pay, PAYE, SSNIT, and employer cost. It is clearly not a generic tax tool. It stops short of naming the reverse-calculation sibling (pay.salary_for_take_home), so an agent handling a 'what gross do I need' request must infer the boundary from the exclusion list rather than a pointer.

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?

The opening clause gives an explicit trigger condition (a monthly salary in cedis plus a take-home or deduction question), and the closing sentence supplies four concrete exclusions: business tax, year-end returns with reliefs, overtime/bonus alone, and non-Ghana pay. That is strong routing guidance. It loses a point because the excluded cases are described by category rather than routed to a named alternative, leaving the agent to pick the sibling itself.

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