Skip to main content
Glama
pakistan-mcp

pakistan-mcp

by mubasher1111

Pakistan salary income tax

calculate_salary_tax
Read-onlyIdempotent

Calculates Pakistani salaried income tax using official FBR slabs for a selected fiscal year, defaulting to the current year when no year is provided.

Instructions

Calculates income tax for a SALARIED individual in Pakistan using the official FBR slabs. Supported fiscal years: 2024-25, 2025-26, 2026-27. Without a year it uses the CURRENT fiscal year (July-June) from today's date; if that year's slabs are not available yet it uses the latest year and returns a year_note you must show the user. Always tell the user which fiscal year (and tax year) the answer uses. If the user asks about "current" or "this year" without saying which, use the default. Give ONE of monthly_income, annual_income or salary_periods (for a salary that changed during the year, or for someone who joined mid-year). Optional: bonus; other_income (business or freelance income taxed at normal rates; NOT rent, bank profit, dividends or capital gains, which are taxed separately); and tax_deducted (tax already deducted that year) to see whether a refund is due or more tax is payable. Salaried slabs apply only when salary is MORE than 75% of taxable income; otherwise this tool returns an error explaining that the non-salaried slabs apply. Estimate only: no exemptions, credits or rebates.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calculate_salary_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoFiscal year, e.g. "2026-27". Default: the current fiscal year.
bonusNoBonus or other lump-sum taxable salary for the year, PKR
other_incomeNoAnnual business/freelance income taxed at normal rates, PKR. Not rent, bank profit, dividends or capital gains.
tax_deductedNoTax already deducted for this fiscal year (e.g. by the employer), PKR
annual_incomeNoGross annual taxable salary in PKR
monthly_incomeNoGross monthly taxable salary in PKR
salary_periodsNoSalary that changed during the fiscal year, e.g. [{months:6, monthly_income:150000}, {months:6, monthly_income:200000}]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare a safe, read-only, idempotent, closed-world operation, and the description adds substantial behavior on top: the July-June default and fallback-to-latest-year with a year_note the agent must surface, the mandatory year disclosure to the user, and error behavior for non-salaried income. It also bounds the result as an estimate with no exemptions, credits or rebates.

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

Conciseness4/5

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

Dense and front-loaded, with the year-defaulting rules before the parameter guidance. It is long, and the instruction to always state the fiscal year partially repeats the year_note fallback sentence, costing a bit of tightness.

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?

No output schema exists, and the description still tells the agent what comes back (a year_note in the fallback case) and what must be relayed to the user. Combined with the estimate disclaimer and the error condition, an agent can call and report this correctly without further information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3; the description still adds real meaning by stating the parameters are mutually exclusive ('Give ONE of monthly_income, annual_income or salary_periods'), explaining salary_periods covers mid-year raises and joiners, and clarifying other_income excludes rent, bank profit, dividends and capital gains.

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 ('Calculates income tax') scoped to salaried individuals in Pakistan using FBR slabs, which cleanly separates it from compare_salary_tax and the validator/formatting siblings. Supported fiscal years are enumerated up front.

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 explicit when-to-use rules: pick one of monthly_income/annual_income/salary_periods with the mid-year joiner case called out, default-year behavior for 'current'/'this year' questions, and a clear when-NOT-to-use path ('Salaried slabs apply only when salary is MORE than 75% of taxable income; otherwise this tool returns an error'). It also lists what other_income must not include.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.