Skip to main content
Glama

Crear una proforma de pedimento (Anexo 22)

crear_pedimento

Crea un borrador de pedimento (proforma conforme al Anexo 22; NO se transmite al SAT ni a la ANAM) y lee hasta 3 facturas (PDF/imagen en base64 o texto) para llenar proveedor, mercancías y valores. Descuenta 1 pedimento del saldo. Para más facturas use agregar_facturas_pedimento. Regresa el resumen, las partidas y la liga para terminarlo en la app.

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": {
      "encabezado": "<encabezado>"
    },
    "name": "crear_pedimento"
  }
}

Input Schema

NameRequiredDescriptionDefault
facturasNo
encabezadoYes
referenciaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only flag readOnlyHint=false and destructiveHint=false; the description adds genuinely non-derivable behavior — that nothing is transmitted to SAT/ANAM, that the call consumes one pedimento from the balance, and that the result includes resumen, partidas and a link to finish in the app. It stops short of saying whether a failed or partial call still burns the credit, which for a metered resource is the main remaining risk.

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 front-loaded sentence carries purpose, limits, side effect and return values with no filler, and the sibling routing is placed at the end where it is easy to act on. The nested parentheses make it dense enough to read twice, but nothing is redundant.

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 no output schema, the description correctly states what comes back (summary, partidas, finishing link), and it discloses the metered side effect and invoice cap for a nested-object tool with one required parameter. The gaps are the encabezado/factura field semantics rather than missing behavioral context, so it is complete for calling the tool but not for filling every field correctly.

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 reported at 0%, and while the description explains the facturas format (PDF/image as base64, or texto) and the 3-item cap that the schema leaves undocumented, it says nothing about encabezado, referencia, patente, tipo_cambio or tipo_cambio_fecha, whose only help is the terse in-schema notes. It partially compensates for the coverage gap but leaves the required encabezado fields unexplained.

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 and resource ('Crea un borrador de pedimento... proforma conforme al Anexo 22') and immediately bounds the scope ('NO se transmite al SAT ni a la ANAM'), which separates it from any transmission step. It also names the sibling it is not ('Para más facturas use agregar_facturas_pedimento'), so an agent can route correctly without opening another schema.

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?

Gives an explicit routing rule for the main ambiguity: up to 3 invoices here, more must go through agregar_facturas_pedimento. It implies the use case (starting a draft proforma), but offers no when-not-to-use guidance and does not say whether agregar_facturas_pedimento must run before or after this call.

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.

Resources