Skip to main content
Glama

nbrain-clinical-hl7v2-mllp-parser

calculate_qatar_kuwait_iraq_tax

Read-onlyIdempotent

Calculate exact Decimal fiscal settlements for Qatar GTA Dhareeba (5% WHT QAR), Kuwait MOF/KNET (3-decimal 0.001 KWD Fils & 15% DMTT), and Iraq GCT (3.3% WHT + 0.2% Stamp Duty IQD).

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>",
      "amount": "<amount>"
    },
    "name": "calculate_qatar_kuwait_iraq_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYes
countryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds useful behavioral context with 'exact Decimal' precision and the specific 3-decimal KWD fils convention, but says nothing about rounding rules, whether all listed taxes are summed or selectable, or what the settlement output contains.

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?

A single front-loaded sentence with no filler; every clause carries a rate or precision detail. The heavy parenthetical nesting makes it denser than necessary, but nothing is wasted.

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?

With no output schema and no parameter documentation in the schema, the description should explain the return shape and input interpretation. It covers the rates and precision well but leaves the settlement result structure, rounding behavior, and the meaning/units of 'amount' unspecified for a two-parameter calculation tool.

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 0%, so the description must carry parameter meaning. It does tie each country to a currency (QAR, KWD, IQD), which helps interpret the enum, but it never explains the 'amount' parameter — gross vs. base, decimal-string format, or currency assumption — leaving the most important input undefined.

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?

The description gives a specific verb ('Calculate') and resource ('exact Decimal fiscal settlements') scoped precisely to three jurisdictions, naming the rates involved (5% WHT QAR, 15% DMTT, 3.3% WHT + 0.2% Stamp Duty IQD). An agent can distinguish it from calculate_saudi_vat by country coverage, though no sibling is named 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?

Coverage of QA/KW/IQ is clearly implied by the enumerated countries and currencies, so an agent can infer the tool's domain. However, there is no explicit statement of when to use this versus calculate_saudi_vat or the validation siblings, and no prerequisites or exclusions are given.

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.