Skip to main content
Glama

nbrain-gcc-real-estate-proptech

decode_zatca_tlv

Read-onlyIdempotent

Decode and validate a Saudi ZATCA Phase 1 (Tags 1-5) or Phase 2 (Tags 1-9) Base64 TLV QR payload.

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": {
      "payload": "<payload>"
    },
    "name": "decode_zatca_tlv"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadYesBase64-encoded ZATCA TLV QR string

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds useful domain behavior (which phases and tag ranges are handled, and that validation occurs), but says nothing about what happens with a malformed or truncated payload or what the decoded/validated result contains.

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?

A single front-loaded sentence with zero filler; the resource is named first and the scope qualifiers follow. Nothing is repeated from the title or annotations.

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 one-parameter read-only tool this is nearly sufficient, and the annotations cover safety. The gap is the absence of any indication of the return shape (tag names/values) or validation outcomes, which the description must carry since no output schema exists.

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?

There is a single required parameter with 100% schema description coverage ('Base64-encoded ZATCA TLV QR string'), so the schema carries the semantics. The description adds no format detail, encoding caveats, or examples beyond what the schema states, so the baseline of 3 applies.

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 uses specific verbs (decode, validate) on a named resource (Saudi ZATCA Phase 1/2 Base64 TLV QR payload) and enumerates tag ranges for each phase. The verb 'decode' inherently separates it from the encode_zatca_tlv sibling, though the description never names that counterpart 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?

Usage is only implied: an agent can infer this is the tool for turning an existing ZATCA QR string into readable fields, and the Phase 1 vs Phase 2 tag ranges hint at applicability. There is no explicit statement of when not to use it or of which sibling to pick when a payload needs to be produced or VAT needs checking.

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.