Skip to main content
Glama
nbrain-egypt-eta-mcp

nbrain-egypt-eta-mcp

compute_eta_document_uuid

Canonicalizes Egyptian Tax Authority B2B e-invoice or B2C e-receipt JSON and returns its 64-hex UTF-8 SHA-256 UUID/CAdES signing digest for ETA compliance.

Instructions

Canonicalize an Egyptian Tax Authority (ETA) B2B E-Invoice or B2C E-Receipt JSON per sdk.invoicing.eta.gov.eg and return the 64-hex UTF-8 SHA-256 UUID / CAdES signing digest.

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": {
      "document_json": "<document_json>"
    },
    "name": "compute_eta_document_uuid"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoereceipt
document_jsonYesRaw ETA E-Invoice or E-Receipt JSON string

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the canonicalization ruleset reference and the exact output encoding, and the 'return' wording implies a pure computation rather than a mutation. It is silent on determinism guarantees, behavior on malformed JSON, and whether the input document is validated before digesting — meaningful gaps for a cryptography-adjacent tool.

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 dense sentence with the operation, the standard, and the return value front-loaded; no filler. It is jargon-heavy and the output clause is slightly packed, but every clause contributes information.

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?

Because there is no output schema, the description must describe the return, and it does so precisely (64-hex UTF-8 SHA-256 UUID / CAdES digest). It is nonetheless thin on failure modes and on the mode parameter's effect, which matters for a two-parameter tool whose input is an opaque raw JSON string.

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 50%: document_json is documented in the schema, but the mode parameter's meaning is only inferable from the description's mention of 'B2B E-Invoice or B2C E-Receipt', which maps loosely onto einvoice/ereceipt. The bounds are not spelled out for mode — whether it changes canonicalization rules for the digest or merely selects a schema variant.

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 ('Canonicalize') plus a specific resource (ETA B2B E-Invoice / B2C E-Receipt JSON) and names the exact output (64-hex SHA-256 UUID / CAdES signing digest), which is far more than the name alone conveys. It does not explicitly contrast itself with siblings like verify_eta_ereceipt_chain, but the compute-digest framing is distinct enough to separate them.

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 statement of when to use this versus the sibling verification/validation tools, and no prerequisites (e.g., must the document already be schema-valid?). The only contextual hint is the reference to the ETA SDK domain, which implies a signing/submission workflow but leaves the agent to infer the trigger conditions.

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