Skip to main content
Glama

External Invoices Update

tiendanube_external_invoices_update
Idempotent

Updates an external invoice for a Tiendanube order using the order ID and 44-digit fiscal key, with optional XML, invoice number, series, and issue date.

Instructions

Update an external invoice (unstable API). HTTP: PUT /orders/{order_id}/invoices/external/{key} Required scope: write_orders API version: unstable

Input Schema

NameRequiredDescriptionDefault
keyYesInvoice fiscal key (44 digits, e.g. NFe access key or CAE)
xmlNoFiscal XML
numberNoInvoice number
seriesNoInvoice series
order_idYesOrder ID
issued_atNoIssue timestamp (ISO 8601)
additional_fieldsNoExtra raw API body fields not covered above; merged into the request body

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare non-read-only, idempotent, non-destructive, open-world. The description adds genuinely new behavioral information: required OAuth scope (write_orders), the HTTP verb PUT (implying replacement semantics, consistent with idempotentHint), and the warning that the API version is unstable. It stops short of explaining what happens to invoice fields omitted from the payload under PUT.

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?

Four terse, front-loaded lines with zero filler — the warning, endpoint, scope and version are all immediately scannable. Slightly telegraphic rather than prose, but nothing is wasted.

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 7-parameter mutation with no output schema, the description covers auth and endpoint but leaves open whether this is a full replacement or a partial update (PUT vs merge, relevant to additional_fields) and what the response contains. Adequate but with meaningful gaps for a write operation.

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 100%, so every field (key, xml, number, series, issued_at, additional_fields) is already documented in the schema; baseline 3 applies. The description adds only the small detail that order_id and key are path parameters via the URL template, which is marginal added value.

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 and resource ("Update an external invoice") and gives the exact endpoint, so the agent knows exactly what is being modified. It does not differentiate itself from the sibling external_invoices_create/get/list/delete tools or say why one would update rather than create.

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?

There is no guidance on when to use this versus tiendanube_external_invoices_create or the orders_invoices_* siblings, and no prerequisites beyond the scope string. The only contextual hint is the "unstable API" warning, which tells the agent to be careful but not when to choose this tool.

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

Deploy Server

Other Tools