Skip to main content
Glama

peppol.sh

Get the UBL of a document

get_document_ubl
Read-onlyIdempotent

Gives a link to the UBL XML of a sent document (the Peppol BIS 3.0 file), as the resource peppol://documents/{id}/ubl; read the resource for the XML. The UBL exists once the status is sending or delivered. It does not put the XML in the result, to save tokens.

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": {
      "document_id": "<document_id>"
    },
    "name": "get_document_ubl"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_idYesThe document ID, for example doc_8sK2mQ9xTb4Lw7Ne1Ry3.

Output Schema

NameRequiredDescriptionDefault
uriYes
mime_typeYes
size_bytesYes
document_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses two non-obvious behaviors: the result is a resource URI (peppol://documents/{id}/ubl) rather than the payload, deliberately to save tokens, and a two-step read is required. It also notes the availability window tied to sending/delivered status, which an agent cannot infer from annotations alone.

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?

Three short sentences, front-loaded with what is returned and immediately followed by the retrieval instruction and the availability condition. Nothing is redundant, though the 'to save tokens' aside is a minor flourish.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 need no explanation, and the description covers the remaining essentials: the URI shape, the need to dereference it, and the status precondition. For a single-parameter read tool this is complete.

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% and the single document_id parameter is fully documented with a pattern and example, so the schema carries the load. The description adds only the implicit mapping of the id into the resource URI template, which is a modest supplement.

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?

The description gives a concrete verb and resource: it returns a link to the UBL XML (Peppol BIS 3.0 file) of a sent document, and explicitly says the XML is not inlined. That clearly separates it from a plain document-fetch, but no sibling tool is named or contrasted, so it stops short of full differentiation.

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?

It states the precondition that makes the tool usable ('the UBL exists once the status is sending or delivered') and tells the agent the required follow-up step ('read the resource for the XML'). What is missing is explicit guidance on when to prefer this over get_document or search_docs when an agent just wants document content.

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