Skip to main content
Glama
holded-mcp-server

holded-mcp-server

holded_get_purchase_pdf

Retrieves a purchase invoice PDF as base64 data by document ID; call once per ID from the purchase list for batch downloads.

Instructions

Obtiene el PDF de una factura de compra (devuelve datos en base64). Para descargas por lote, el cliente debe invocar esta tool una vez por cada ID previamente obtenido con holded_list_purchases.

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": {
      "documentId": "<documentId>"
    },
    "name": "holded_get_purchase_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentIdYesID de la factura de compra

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses that the response is base64-encoded PDF data and that the tool is single-document scoped, but says nothing about payload size, permissions, or error behavior for invalid IDs. Adequate for a simple read getter, with clear gaps.

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 sentences, no filler: the first front-loads what the tool returns, the second handles the batch case. Every clause earns its place and nothing needs trimming.

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 and one required parameter, the description covers the essentials: what is produced (PDF as base64) and how to iterate for bulk retrieval. It could add a note on auth or size limits, but for a single-ID getter it is close to complete.

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

Parameters4/5

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

Schema coverage is 100%, so documentId is already documented as the purchase invoice ID. The description adds meaning beyond the schema by establishing where the ID comes from (holded_list_purchases) and that one call handles exactly one ID, which is real semantic value for the single parameter.

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 ("Obtiene el PDF de una factura de compra") and adds the return format (base64). Naming "factura de compra" separates it from the sales-invoice sibling holded_get_invoice_pdf, so an agent can pick correctly without opening the 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 explicit workflow guidance: for batch downloads, call this once per ID obtained beforehand from holded_list_purchases. That names a concrete upstream sibling and the intended call pattern. It stops short of saying when not to use it or what to do on a failed/empty ID, so it is strong but not exhaustive.

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