Skip to main content
Glama

UAE and Saudi e-invoicing checker

check_invoice

Check the text of one invoice for the details required by UAE e-invoicing (Ministry of Finance mandatory fields) or Saudi ZATCA Fatoora. Returns score, missing details and how to fix each. Rule-based guide, not legal advice.

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": {
      "text": "<text>"
    },
    "name": "check_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesFull text of one invoice
countryNouae (default) or sa

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses the return contents (score, missing details, fix guidance), states the method ('rule-based guide', implying deterministic non-AI output), and adds a 'not legal advice' disclaimer that an agent should relay. It stops short of saying anything about input size limits, latency, or what a low score implies operationally.

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 tight sentences, front-loaded with the purpose and standards, followed by the return contract and the disclaimer. No filler or restatement of the tool name.

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

Completeness4/5

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

For a two-parameter, non-mutating check tool with no output schema, the description covers purpose, return shape, and the legal caveat adequately. Minor gaps remain around the score scale and multi-invoice handling, but nothing that would cause a wrong invocation.

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 the baseline is 3; the description earns a bump by clarifying that 'text' must be one invoice's full text and by expanding what the country enum values mean (UAE MoF mandatory fields vs Saudi ZATCA Fatoora). It still doesn't say what happens with mixed-language or truncated invoice text.

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 verb and resource ('Check the text of one invoice') and pins the purpose to two concrete compliance regimes (UAE Ministry of Finance mandatory fields, Saudi ZATCA Fatoora). That framing makes it clearly distinct from sibling tools like get_e_invoicing_facts (retrieving facts) or find_uae_providers (discovery) without needing an explicit comparison.

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 implied rather than stated: 'one invoice' signals single-invoice validation, and the two regimes imply a pre-submission check, but the description never says when to choose this tool over the siblings or when not to use it. No prerequisites, no batch/multi-invoice exclusion stated outright.

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