Skip to main content
Glama

Africa Take-Home Pay

Take-home pay from a monthly salary in Kenya

kenya.take_home
Read-only

Use this when someone gives a monthly gross salary in Kenya shillings and asks what they take home, how much PAYE, NSSF, SHIF or Housing Levy comes off it, or what the job costs the employer. It applies NSSF, SHIF and the Housing Levy before tax, as the law has required since December 2024, then the tax bands and personal relief; do not estimate it first. Do not use it for a business's tax, for rental or turnover tax, for pay in another country, or for someone not resident in Kenya.

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

Input Schema

NameRequiredDescriptionDefault
pays_nssfNoWhether NSSF is taken from the pay. Leave out for yes.
pays_shifNoWhether SHIF is taken from the pay. Leave out for yes.
gross_salaryYesGross pay a month in Kenya shillings: basic salary plus cash allowances, before anything is taken off.
other_pensionNoA month's contribution to a registered pension or provident fund on top of NSSF, if any.
pays_housing_levyNoWhether the Affordable Housing Levy is taken from the pay. Leave out for yes.
insurance_premiumsNoA month's premiums on life, education or health insurance policies that qualify for insurance relief, if any.

Output Schema

NameRequiredDescriptionDefault
lawNo
noteYes
periodNo
countryYes
read_onYes
reliefsNo
sourcesYes
currencyYes
gross_payYes
take_homeYes
deductionsYes
income_taxYes
rates_fromYes
explore_urlNo
how_countedNo
tax_by_bandNo
taxable_payNo
not_includedYes
employer_costNo
tax_by_band_periodNo
employer_contributionsNo

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 cover the safety profile (readOnly, closed-world, non-destructive), and the description adds real substance beyond them: the statutory deductions are applied before tax per the post-December-2024 rules, then tax bands and personal relief. It does not say anything about rounding/precision of the result or how the employer-cost figure is derived, which is the remaining gap for a calculation tool.

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 sentences: trigger, computation order, exclusions. The trigger and the 'do not estimate it first' instruction are front-loaded, and no sentence is filler.

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?

An output schema exists, so return values need no explanation. With six well-documented parameters, read-only annotations, and explicit scope exclusions, an agent has everything needed to decide and call 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 coverage is 100% and each parameter already carries a clear description, so the baseline applies. The description reinforces that NSSF, SHIF and Housing Levy are deducted pre-tax, which indirectly explains the boolean toggles, but it adds no format or default guidance beyond the schema.

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 computation (monthly gross salary in Kenya shillings → take-home pay) and enumerates the components it resolves (PAYE, NSSF, SHIF, Housing Levy, employer cost). The Kenyan jurisdiction is stated up front, which cleanly separates it from the ghana/nigeria/south_africa siblings.

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 gives both sides of the routing decision: use it for an individual's monthly gross pay in Kenya, and explicitly not for business tax, rental or turnover tax, foreign pay, or non-residents. It also tells the agent not to estimate first, which removes the temptation to skip the tool.

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