Skip to main content
Glama

Africa Take-Home Pay

Take-home pay from a monthly salary in Ghana

ghana.take_home
Read-only

Use this when someone gives a monthly basic salary in Ghana cedis and asks what they take home, how much PAYE or SSNIT comes off it, or what the job costs the 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, 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": "ghana.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/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 the description's real contribution is the computation method ('works the tax out band by band') and the instruction not to substitute an estimate. It does not state what the result contains, but an output schema exists to carry that.

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?

Three short sentences, each earning its place: trigger, method, exclusions. The usage trigger is front-loaded and nothing is repeated from the schema or annotations.

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?

For a five-parameter read-only calculator with full schema coverage and an output schema, the description covers scope, method, and boundaries. Nothing an agent needs in order to call it correctly is missing.

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 including month, resident, allowances, pays_ssnit and basic_salary is already documented with defaults and units. The description adds no parameter-level meaning beyond that, 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 and resource tied to a scope: monthly basic salary in Ghana cedis, take-home, PAYE/SSNIT deductions, and employer cost. The Ghana qualifier plus the explicit 'another country' exclusion lets an agent separate it from kenya/nigeria/south_africa.take_home without opening either 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?

Gives concrete when-to-use triggers (salary provided, question about take-home, deductions, or employer cost) and three explicit exclusions: business tax, year-end returns with reliefs, and foreign pay. It also instructs the agent not to pre-estimate, which is a decision rule, not just context.

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