Skip to main content
Glama

Get document

billingo_get_document
Read-onlyIdempotent

Retrieve a single Billingo document by its document ID or your own vendor reference, so you can look up invoice details using whichever identifier you have.

Instructions

Returns a single document. Give either id (the Billingo document id) or vendor_id (your own external reference set when the document was created).

Input Schema

NameRequiredDescriptionDefault
idNoBillingo document id.
vendor_idNoYour external reference for the document.

Output Schema

NameRequiredDescriptionDefault
idYes
typeNo
itemsNo
partnerNo
summaryNo
block_idNo
currencyNo
due_dateNo
cancelledNo
paid_dateNo
gross_totalNo
invoice_dateNo
invoice_numberNo
payment_methodNo
payment_statusNo
conversion_rateNo
correction_typeNo
fulfillment_dateNo
related_documentsNo
online_szamla_statusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.3
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "block_id": {
      +      "type": [
      +        "number",
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "cancelled": {
      +      "type": [
      +        "boolean",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "conversion_rate": {
      +      "type": [
      +        "number",
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "correction_type": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "currency": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "due_date": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "fulfillment_date": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "gross_total": {
      +      "type": [
      +        "number",
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "id": {
      +      "type": "number"
      +    },
      +    "invoice_date": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "invoice_number": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "items": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "gross_amount": {
      +                "type": [
      +                  "number",
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "name": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "net_amount": {
      +                "type": [
      +                  "number",
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "net_unit_amount": {
      +                "type": [
      +                  "number",
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "quantity": {
      +                "type": [
      +                  "number",
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "unit": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "vat": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "online_szamla_status": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "paid_date": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "partner": {
      +      "anyOf": [
      +        {
      +          "anyOf": [
      +            {
      +              "additionalProperties": {},
      +              "properties": {
      +                "id": {
      +                  "type": [
      +                    "number",
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "name": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "taxcode": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            {
      +              "items": {},
      +              "maxItems": 0,
      +              "type": "array"
      +            }
      +          ]
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "payment_method": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "payment_status": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "related_documents": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "id": {
      +                "type": [
      +                  "number",
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "invoice_number": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "summary": {
      +      "anyOf": [
      +        {
      +          "anyOf": [
      +            {
      +              "additionalProperties": {},
      +              "properties": {
      +                "gross_amount_local": {
      +                  "type": [
      +                    "number",
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "net_amount": {
      +                  "type": [
      +                    "number",
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "vat_amount": {
      +                  "type": [
      +                    "number",
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            {
      +              "items": {},
      +              "maxItems": 0,
      +              "type": "array"
      +            }
      +          ]
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "type": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "id"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered and the description's job is lighter. It adds the lookup-mode distinction, but says nothing about error behavior when neither identifier is given, precedence when both are given, or auth requirements.

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, the action first and the parameter rule second, with no filler. Every clause carries information an agent needs before calling.

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 an output schema present, return values needn't be described, and the identifier semantics are handled. The only gap is edge-case behavior (no identifier supplied, or both supplied), which is minor for a simple read tool.

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 baseline is 3, but the description adds real meaning the schema lacks: it explains that the two parameters are mutually exclusive alternatives rather than both-optional fields, and clarifies vendor_id is a reference set at creation time. That resolves an ambiguity the bare schema leaves open.

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 ("Returns a single document"), which cleanly separates it from the plural billingo_list_documents sibling. It doesn't name adjacent document tools like download_document or get_document_public_url, but the singular-retrieval framing is unambiguous.

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?

The alternation rule "Give either `id` or `vendor_id`" gives usable calling guidance, but there is no explicit statement of when to pick this over list_documents, get_document_public_url, or download_document, nor what happens if neither argument is supplied. Usage is implied rather than directed.

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