Skip to main content
Glama

create_e_invoice

Issues an existing sales invoice as an e-Fatura to a known recipient inbox address, with scenario and VAT exemption options for Turkish e-invoicing.

Instructions

Low-level: issue a sales invoice as an e-Fatura to a known inbox address (to). Prefer issue_e_document.

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": {
      "sales_invoice_id": "<sales_invoice_id>",
      "to": "<to>"
    },
    "name": "create_e_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesRecipient e-Fatura inbox address (e_invoice_address from check_einvoice_inbox)
scenarioNoe-Fatura scenariobasic
sales_invoice_idYesID of an existing sales invoice to issue as an e-Fatura
vat_exemption_reasonNoVAT exemption reason text (when code is 250 or 350)
vat_exemption_reason_codeNoVAT exemption reason code (for 0% VAT items)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.7/5.0
Behavior2/5

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

With no annotations, the description carries full burden. It identifies this as a write operation ('issue') to an external e-Fatura inbox, but omits key behavioral details: idempotency, permissions required, what happens if the invoice is already issued, whether the action is reversible, error handling, or rate limits. The 'low-level' hint is minimal.

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?

Two short sentences, front-loaded with the core purpose and the preference. Every sentence earns its place; no redundancy beyond the necessary reference to `to`.

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 5-parameter mutation tool with no annotations or output schema, the description is minimal but covers the essentials of purpose and alternative. However, it leaves gaps in behavioral context (side effects, error conditions) that an agent would need to invoke it safely.

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 100%, so parameters are well-documented. The description only reiterates that `to` is a 'known inbox address', which is already in the schema. No additional meaning is added for other parameters like scenario or VAT exemption.

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 specific verb 'issue' and resource 'sales invoice as an e-Fatura', and explicitly differentiates from sibling issue_e_document by recommending it. The 'Low-level' label further clarifies its niche.

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?

Explicitly says 'Prefer issue_e_document', naming the alternative, and implies this tool is for cases where a known inbox address is already available. However, it doesn't fully explain when to choose this low-level tool over the preferred one (e.g., specific scenarios or constraints).

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