Skip to main content
Glama

SalaryNet Payroll

calculate_net_pay

Gross-to-net payroll: take-home pay, income tax and statutory contributions for a salary in a supported country (us, ph, ng, id, in, br, ke, vn, mx, za, tr, co, pk, eg, cl, pe, bd, ar, gh, sa, ae, th, my, ma, pl, pt, ro, kz, uz, lk, np, ec, cr, do, et, tz, ug, rw, zm, qa, kw, om, bh, jo, gt, pa, uy, py, bo). Returns a breakdown, rule version and official sources.

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

Input Schema

NameRequiredDescriptionDefault
grossYesGross salary in local currency: annual for us, in and es; monthly for ph, ng, id, br, ke, vn, mx, za, tr, co, pk, eg, cl, pe, bd, ar, gh, sa, ae, th, my, ma, pl, pt, ro, kz, uz, lk, np, ec, cr, do, et, tz, ug, rw, zm, qa, kw, om, bh, jo, gt, pa, uy, py, bo.
countryYes
optionsNoOptional country-specific inputs, same names as /v1/net query params (e.g. filing_status, dependents, married, rent_annual).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / gross / description
      Previous value: -"Gross salary in local currency: annual for us and in; monthly for ph, ng, id, br, ke, vn, mx, za, tr, co, pk, eg, cl, pe, bd, ar, gh, sa, ae, th, my, ma, pl, pt, ro, es, kz, uz, lk, np, ec, cr, do, et, tz, ug, rw, zm, qa, kw, om, bh, jo, gt, pa, uy, py, bo."New value: +"Gross salary in local currency: annual for us, in and es; monthly for ph, ng, id, br, ke, vn, mx, za, tr, co, pk, eg, cl, pe, bd, ar, gh, sa, ae, th, my, ma, pl, pt, ro, kz, uz, lk, np, ec, cr, do, et, tz, ug, rw, zm, qa, kw, om, bh, jo, gt, pa, uy, py, bo."
  2. Changed2 schema fields changed
    • changedInput schema / properties / country / enum
      Previous value: -[
      -  "us",
      -  "ph",
      -  "ng",
      -  "id",
      -  "in",
      -  "br",
      -  "ke",
      -  "vn",
      -  "mx",
      -  "za",
      -  "tr",
      -  "co",
      -  "pk",
      -  "eg",
      -  "cl",
      -  "pe",
      -  "bd",
      -  "ar",
      -  "gh",
      -  "sa",
      -  "ae",
      -  "th",
      -  "my",
      -  "ma",
      -  "pl",
      -  "pt",
      -  "ro",
      -  "es",
      -  "kz",
      -  "uz",
      -  "lk",
      -  "np",
      -  "ec",
      -  "cr",
      -  "do"
      -]New value: +[
      +  "us",
      +  "ph",
      +  "ng",
      +  "id",
      +  "in",
      +  "br",
      +  "ke",
      +  "vn",
      +  "mx",
      +  "za",
      +  "tr",
      +  "co",
      +  "pk",
      +  "eg",
      +  "cl",
      +  "pe",
      +  "bd",
      +  "ar",
      +  "gh",
      +  "sa",
      +  "ae",
      +  "th",
      +  "my",
      +  "ma",
      +  "pl",
      +  "pt",
      +  "ro",
      +  "es",
      +  "kz",
      +  "uz",
      +  "lk",
      +  "np",
      +  "ec",
      +  "cr",
      +  "do",
      +  "et",
      +  "tz",
      +  "ug",
      +  "rw",
      +  "zm",
      +  "qa",
      +  "kw",
      +  "om",
      +  "bh",
      +  "jo",
      +  "gt",
      +  "pa",
      +  "uy",
      +  "py",
      +  "bo"
      +]
    • changedInput schema / properties / gross / description
      Previous value: -"Gross salary in local currency: annual for us and in; monthly for ph, ng, id, br, ke, vn, mx, za, tr, co, pk, eg, cl, pe, bd, ar, gh, sa, ae, th, my, ma, pl, pt, ro, es, kz, uz, lk, np, ec, cr, do."New value: +"Gross salary in local currency: annual for us and in; monthly for ph, ng, id, br, ke, vn, mx, za, tr, co, pk, eg, cl, pe, bd, ar, gh, sa, ae, th, my, ma, pl, pt, ro, es, kz, uz, lk, np, ec, cr, do, et, tz, ug, rw, zm, qa, kw, om, bh, jo, gt, pa, uy, py, bo."
  3. Changed2 schema fields changed
    • changedInput schema / properties / country / enum
      Previous value: -[
      -  "us",
      -  "ph",
      -  "ng",
      -  "id",
      -  "in",
      -  "br",
      -  "ke",
      -  "vn",
      -  "mx",
      -  "za",
      -  "tr",
      -  "co"
      -]New value: +[
      +  "us",
      +  "ph",
      +  "ng",
      +  "id",
      +  "in",
      +  "br",
      +  "ke",
      +  "vn",
      +  "mx",
      +  "za",
      +  "tr",
      +  "co",
      +  "pk",
      +  "eg",
      +  "cl",
      +  "pe",
      +  "bd",
      +  "ar",
      +  "gh",
      +  "sa",
      +  "ae",
      +  "th",
      +  "my",
      +  "ma",
      +  "pl",
      +  "pt",
      +  "ro",
      +  "es",
      +  "kz",
      +  "uz",
      +  "lk",
      +  "np",
      +  "ec",
      +  "cr",
      +  "do"
      +]
    • changedInput schema / properties / gross / description
      Previous value: -"Gross salary in local currency: annual for us and in; monthly for ph, ng, id, br, ke, vn, mx, za, tr, co."New value: +"Gross salary in local currency: annual for us and in; monthly for ph, ng, id, br, ke, vn, mx, za, tr, co, pk, eg, cl, pe, bd, ar, gh, sa, ae, th, my, ma, pl, pt, ro, es, kz, uz, lk, np, ec, cr, do."
  4. Changed2 schema fields changed
    • changedInput schema / properties / country / enum
      Previous value: -[
      -  "us",
      -  "ph",
      -  "ng",
      -  "id",
      -  "in",
      -  "br",
      -  "ke",
      -  "vn"
      -]New value: +[
      +  "us",
      +  "ph",
      +  "ng",
      +  "id",
      +  "in",
      +  "br",
      +  "ke",
      +  "vn",
      +  "mx",
      +  "za",
      +  "tr",
      +  "co"
      +]
    • changedInput schema / properties / gross / description
      Previous value: -"Gross salary in local currency: annual for us and in; monthly for ph, ng, id, br, ke, vn."New value: +"Gross salary in local currency: annual for us and in; monthly for ph, ng, id, br, ke, vn, mx, za, tr, co."
  5. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It usefully discloses the return payload (breakdown, rule version, official sources), which signals result provenance, but says nothing about side effects, determinism, permissions, or rate limits — an agent could still mistake 'payroll' for a processing operation rather than a pure calculation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and output are front-loaded in a single readable sentence, but the 40+ country enumeration duplicates the schema enum verbatim and consumes most of the text without adding decision value. Removing that list would make the definition tighter and equally informative.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates reasonably by naming the returned fields. However, the nested 'options' object is left essentially unexplained, and the description's country list omits 'es' even though the schema enum and the gross parameter description include it — a small inconsistency that could confuse an agent about supported markets.

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 67%, and the description largely restates the enum of countries rather than explaining them. The one genuinely ambiguous parameter, the free-form 'options' object (additionalProperties true, documented only as 'same names as /v1/net query params'), gets no clarification in the description, so the meaning of dependents/filing_status/rent_annual remains opaque.

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?

States a specific verb and resource: gross-to-net payroll producing take-home pay, income tax and statutory contributions for a salary, plus what it returns (breakdown, rule version, official sources). This is clearly distinct from siblings like calculate_employer_cost and calculate_severance, though it never names them explicitly.

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

Usage Guidelines3/5

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

Usage is only implied by the phrase 'for a salary in a supported country' plus the country list. There is no explicit guidance on when to pick this over calculate_employer_cost or calculate_severance, and no pointer to list_countries for discovering supported markets before calling.

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