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, es, kz, uz, lk, np, ec, cr, do). 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 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.
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. 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."
  2. 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."
  3. 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 load; it does disclose the return contents (breakdown, rule version, official sources), which matters because no output schema exists. It says nothing about failure behavior for unsupported countries, whether computation is side-effect free, or any rate/versioning constraints beyond the presence of a rule version.

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?

It is a single front-loaded sentence, which is good, but roughly half its length is a 35-code country list duplicated verbatim from the enum — text that earns nothing. The substantive part (what it computes and what it returns) sits on either side of that filler.

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?

For a two-required-param calculator with a nested free-form `options` object and no output schema, the description covers the output side acceptably but leaves the options object opaque and gives no guidance on unsupported-country behavior. Adequate but with clear gaps for a tool whose correctness depends on country-specific inputs.

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's only parameter-adjacent content is re-listing the same country codes already present in the enum, which is pure repetition. The critical gross-period distinction (annual for us/in, monthly elsewhere) and the country-specific `options` bag are left entirely to the schema, so the description adds no meaning beyond it.

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?

"Gross-to-net payroll" plus the enumerated outputs (take-home pay, income tax, statutory contributions) gives a precise verb-and-resource framing that an agent can distinguish from an employer-cost calculation. It does not name the sibling tool explicitly, so differentiation is inferred rather than stated.

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" and the country list; there is no explicit when-to-use, when-not-to-use, or pointer to calculate_employer_cost for the employer-side figure. The agent must infer the boundary between this tool and its sibling.

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