Skip to main content
Glama

finisma – ZUGFeRD e-invoices

Upload-Link für PDF anfordern

request_upload_link

Erzeugt einen kurzlebigen Upload-Link für eine PDF-Rechnung. Nötig für Chat-Clients (ChatGPT, Claude), die eine angehängte Datei nicht zuverlässig als pdf_base64 an ein Tool übergeben können. Zwei Wege: Der Nutzer lädt die PDF über upload_url im Browser hoch, ODER der Client mit Shell und Netzzugriff lädt sie selbst hoch, per POST als Multipart-Feld 'file' an upload_api_url (curl -F "file=@rechnung.pdf"). Für den direkten Weg muss die Domain finisma.de erreichbar sein; in Claude-Umgebungen mit Netz-Sandbox heißt das, finisma.de in der Domain-Allowlist einzutragen. Die zurückgegebene upload_id kann danach bei create_zugferd/verify_zugferd anstelle von pdf_base64 verwendet werden.

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": {
      "confirmed": "<confirmed>"
    },
    "name": "request_upload_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmedYesMuss true sein, und zwar erst, nachdem der Nutzer genau diesen Aufruf im Gespräch bestätigt hat: sagen, was erzeugt wird und was es kostet (Tageskontingent, Credit oder Abo), sein Ja abwarten, dann mit confirmed: true aufrufen. Ein Aufruf ohne confirmed: true wird abgelehnt und ändert nichts.

Output Schema

NameRequiredDescriptionDefault
upload_idYesAn create_zugferd/verify_zugferd als 'upload_id' übergeben.
expires_atYesISO-8601-Zeitpunkt, ab dem der Link verfällt.
upload_urlYesDem Nutzer zum Öffnen im Browser geben, dort die PDF hochladen.
upload_api_urlYesDirekter Upload-Endpunkt für Clients mit Netzzugriff auf finisma.de: die PDF per POST als Multipart-Feld 'file' hierher senden, dann entfällt der Browser-Schritt.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / confirmed
      Added value: +{
      +  "description": "Muss true sein, und zwar erst, nachdem der Nutzer genau diesen Aufruf im Gespräch bestätigt hat: sagen, was erzeugt wird und was es kostet (Tageskontingent, Credit oder Abo), sein Ja abwarten, dann mit confirmed: true aufrufen. Ein Aufruf ohne confirmed: true wird abgelehnt und ändert nichts.",
      +  "type": "boolean"
      +}
    • addedInput schema / required
      Added value: +[
      +  "confirmed"
      +]
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, idempotent=false, destructive=false), the description discloses that the link is short-lived, that finisma.de must be reachable and may need to be added to a sandbox domain allowlist, and that the resulting upload_id substitutes for pdf_base64 later. It also surfaces the cost/consent gate tied to 'confirmed'. No contradiction with the annotations: a fresh non-idempotent write that returns a link is consistent with openWorldHint=false.

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?

The description is front-loaded with the action, then rationale, then the two upload paths, then the network prerequisite, then the return value's reuse. It is dense but every sentence carries operational information; the 'Zwei Wege' enumeration could be slightly tighter, keeping it from a 5.

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?

An output schema exists, so return values need no prose, and the description still explains how upload_id is consumed downstream. For a single-parameter tool with a consent gate, network prerequisite, and two invocation paths, nothing an agent needs in order to call it correctly is missing.

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% and the 'confirmed' parameter is already documented in the schema, but the description reinforces the consent sequencing ('erst nachdem der Nutzer genau diesen Aufruf bestätigt hat') and adds the cost dimension behind it. That is modest added meaning rather than new parameter mechanics, so a 4.

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?

The description gives a concrete verb and resource ('Erzeugt einen kurzlebigen Upload-Link für eine PDF-Rechnung') and explains the purpose (chat clients can't reliably pass pdf_base64). It also names the downstream consumers (create_zugferd/verify_zugferd), so an agent can place the tool against its siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly states when the tool is needed (chat clients like ChatGPT/Claude that cannot hand over a file as pdf_base64) and lays out both execution paths with their respective preconditions (browser upload via upload_url vs. client-side POST to upload_api_url with curl example). Nothing about choosing this tool over direct pdf_base64 submission is left to inference.

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