Skip to main content
Glama
mirzaabubakr

uae-einvoice-mcp

by mirzaabubakr

generate_pint_ae_xml

Converts invoice JSON into a UBL 2.1 PINT AE XML stub after running a 51-field compliance checklist. Use strict mode to block XML generation when mandatory fields are incomplete.

Instructions

Generate a UBL 2.1 PINT AE-shaped Invoice/CreditNote XML stub from invoice JSON. Runs the 51-field checklist first; with strict=true refuses to emit XML when mandatory applicable fields are incomplete.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
strictNoIf true, do not generate XML when checklist has gaps (default false)
invoiceDataYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does well by disclosing that it runs the 51-field checklist first and that strict=true refuses to emit XML when mandatory fields are incomplete. A small gap is that it does not mention what the output format or return value looks like, but the core behavior is transparent.

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?

Two sentences with no filler. The first sentence names the tool's purpose, format, and input; the second surfaces the critical checklist and strict behavior. Every word earns its place and the most important behavioral information is front-loaded.

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?

Given the tool has a large nested schema, no output schema, and no annotations, the description provides essential context about the generation gate and strict option. Minor gaps: it doesn't clarify what 'stub' means regarding output completeness, nor describe the return shape on success or failure. However, for a generation tool, the essential call-time context is present.

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?

The input schema already documents most parameters, including descriptions for typeCode, issueDate, currencyCode, documentType, customizationId, and billingReference. The description adds meaning for the strict parameter, tying it to the checklist behavior. With schema description coverage at 50%, the description partially compensates but does not elaborate on the large invoiceData object beyond what the schema provides.

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 states a specific verb ('Generate'), a precise resource ('UBL 2.1 PINT AE-shaped Invoice/CreditNote XML stub'), and the input ('invoice JSON'). It also clearly differentiates the tool from siblings by mentioning the 51-field checklist and strict mode.

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

Usage Guidelines4/5

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

The description implies when to use this tool: when the agent has invoice JSON and needs a PINT AE XML stub. It clearly conveys the strict-mode behavior, but it does not explicitly name sibling alternatives like check_pint_ae_fields or check_invoice_compliance as pre-flight or alternative steps, nor does it say when not to use it.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mirzaabubakr/uae-einvoice-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server