Skip to main content
Glama

compute_eta_document_uuid

Read-onlyIdempotent

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.

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 Egypt ETA E-Invoice or E-Receipt JSON

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/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 usefully adds the canonicalization rule (per sdk.invoicing.eta.gov.eg) and the exact output encoding, which annotations cannot express. It stops short of stating error behavior for malformed or non-conforming JSON, which matters for a tool whose entire job is spec-conformant normalization.

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 sentence with zero filler, front-loading the action and resource and ending on the concrete return contract. Nothing redundant and nothing that merely restates the title.

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?

With only two parameters and no output schema, the description does the essential work of specifying the return value and the governing spec, so an agent knows what comes back. The remaining gaps are the mode semantics and failure behavior on invalid input, which are minor but real for a spec-conformance tool.

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 coverage is 50%: document_json is documented, but the mode parameter has only an enum and default with no explanatory text. The description partially compensates by naming both document flavors (B2B E-Invoice / B2C E-Receipt), yet it never maps mode values 'einvoice'/'ereceipt' to those flavors or states whether mode affects canonicalization.

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?

States a specific verb pair (canonicalize ... and return) plus the exact resource (Egyptian Tax Authority B2B E-Invoice / B2C E-Receipt JSON) and the precise output (64-hex UTF-8 SHA-256 UUID). This is unmistakably distinct from the sibling validation, TLV encode/decode, and ZATCA tools.

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 by the mention of the ETA spec and the two document types, so an agent can infer this is the hashing step for ETA submission. However, there is no explicit when-to-use statement, no when-NOT-to-use (e.g. validation vs. UUID generation), and no named alternative among the siblings.

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.