Skip to main content
Glama

submit_invoice

Submit a signed invoice to ZATCA for reporting or clearance. Use reporting for simplified invoices (B2C) and clearance for standard invoices (B2B).

Instructions

Submit a signed invoice to ZATCA for reporting or clearance.

Sends the signed invoice to ZATCA's Fatoora API. Use "reporting" mode for simplified invoices (B2C) and "clearance" mode for standard invoices (B2B).

Args: signed_invoice_xml: Signed UBL 2.1 XML invoice string invoice_hash: Base64-encoded SHA-256 hash of the invoice invoice_uuid: Invoice UUID certificate: Base64-encoded compliance/production certificate secret: API secret from ZATCA mode: "reporting" (simplified) or "clearance" (standard) environment: "sandbox" or "production"

Returns: JSON with ZATCA's response (status, validation results)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoreporting
secretYes
certificateYes
environmentNosandbox
invoice_hashYes
invoice_uuidYes
signed_invoice_xmlYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description fully explains the action (sending to ZATCA's Fatoora API) and key behaviors like mode selection and environment. It lacks details on side effects, authentication beyond parameters, or failure handling, but for a submission tool it is sufficiently transparent.

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?

The description is well-structured with a clear purpose sentence followed by a bulleted Args list and Return statement. It is slightly verbose but every sentence adds value; could be a bit more concise without losing clarity.

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 complexity (7 params, 5 required) and absence of structured output schema, the description covers all parameters, mode distinctions, environment, and return format. It provides sufficient context for an agent to invoke the tool correctly, though sibling relationships are not elaborated.

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

Parameters5/5

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

The description provides detailed explanations for all 7 parameters (e.g., signed_invoice_xml as 'Signed UBL 2.1 XML invoice string', invoice_hash as 'Base64-encoded SHA-256 hash'), compensating fully for the 0% schema coverage. Each parameter's purpose and format are clearly defined.

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 clearly states the verb 'Submit' and the resource 'signed invoice to ZATCA for reporting or clearance'. It distinguishes the tool from siblings like generate_invoice, validate_invoice, and sign_invoice by focusing on submission to ZATCA.

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 explicitly specifies when to use 'reporting' mode for B2C and 'clearance' mode for B2B, providing clear context. However, it does not directly state when not to use this tool or offer alternatives among siblings, though the implied usage is clear.

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

Install Server

Other Tools

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/DoubleH10/zatca-mcp'

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