Skip to main content
Glama

nbrain-standard-schema-mena

encode_zatca_tlv

Read-onlyIdempotent

Encode Saudi ZATCA Phase 1 invoice fields into a compliant UTF-8 Base64 TLV QR string.

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": {
      "seller_name": "<seller_name>",
      "vat_number": "<vat_number>",
      "timestamp": "<timestamp>",
      "total_with_vat": "<total_with_vat>",
      "vat_amount": "<vat_amount>"
    },
    "name": "encode_zatca_tlv"
  }
}

Input Schema

NameRequiredDescriptionDefault
timestampYesISO-8601 UTC timestamp
vat_amountYes
vat_numberYes15-digit Saudi VAT number (3XXXXXXXXXXXXX3)
seller_nameYes
total_with_vatYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds real value by naming the output encoding (UTF-8 Base64 TLV QR) and the Phase 1 standard, which matters since there is no output schema. It says nothing about validation behavior for malformed VAT numbers or timestamps, which is the main behavioral gap.

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 tight sentence with the key qualifiers front-loaded and no filler. It could carry one more sentence of parameter or validation detail without becoming bloated, but nothing present 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?

For a simple deterministic encoder, the description plus annotations cover enough to invoke it correctly, and the output format is stated since no output schema exists. The undocumented string parameters and unspecified invalid-input behavior leave meaningful gaps given the 40% schema coverage.

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

Parameters2/5

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

Schema coverage is only 40%: seller_name, total_with_vat and vat_amount have no schema descriptions, and the description supplies no meaning for them either. It implies these are invoice fields but does not state formatting expectations, currency, or decimal rules for the amount strings.

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?

States a specific verb (Encode) plus a specific resource (Saudi ZATCA Phase 1 invoice fields) and the resulting artifact (Base64 TLV QR string). The encode direction is self-evidently the inverse of the decode_zatca_tlv sibling, though the sibling is not named.

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

Usage Guidelines2/5

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

No when-to-use statement, no prerequisites, and no mention of the decode_zatca_tlv alternative or when an agent should prefer it. The only routing signal is the word 'Encode' in the name, which the agent must infer.

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.