Skip to main content
Glama
Sifende MCP Server
by ithdev

Consultar estado de un documento

consultar_documento
Read-only

Check the status of a Paraguayan electronic document by its 44-digit CDC, including SIFEN authorization protocol and rejection reasons.

Instructions

Consulta el estado de un documento electrónico por su CDC: PENDIENTE o un estado terminal, que puede ser APROBADO, APROBADO_OBSERVACION (también es éxito), RECHAZADO, CANCELADO o ERROR. Incluye el protocolo de autorización de SIFEN y, si fue rechazado, el motivo (mensajeRechazo).

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": {
      "cdc": "<cdc>"
    },
    "name": "consultar_documento"
  }
}

Input Schema

NameRequiredDescriptionDefault
cdcYesCDC (Código de Control del Documento Electrónico): 44 dígitos.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description is consistent with a read-only external query. It adds real value by disclosing what is returned: the SIFEN authorization protocol and, for rejected documents, the mensajeRechazo reason. It does not mention rate limits, retry expectations for PENDIENTE, or response shape beyond the status fields.

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 front-loaded sentence with the key resource first and the outcome space immediately after. The state enumeration is dense but every item earns its place because it defines what callers must branch on.

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 one parameter, no output schema, and light annotations, the description carries most of the burden of describing returns and does so well by naming the state space plus the authorization protocol and rejection reason. It stops short of describing the full response structure or whether PENDIENTE should be re-queried.

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% and the single cdc parameter is fully documented in the schema with its 44-digit pattern. The description only restates 'por su CDC', adding no format, validation, or acquisition guidance (e.g., how to obtain a CDC) beyond the schema. Baseline 3 applies.

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+resource: consulting the status of an electronic document identified by its CDC. The enumeration of possible states (PENDIENTE, APROBADO, APROBADO_OBSERVACION, RECHAZADO, CANCELADO, ERROR) makes the output domain unambiguous. It does not explicitly contrast itself with siblings such as consultar_evento, so it falls short of a 5.

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?

There is no explicit statement of when to use this versus alternatives like consultar_evento or descargar_kude. Usage is only implied: the distinction between PENDIENTE and terminal states hints that the caller should poll until a terminal state is reached. That implication is genuinely useful but never stated as guidance.

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