Skip to main content
Glama

Datei anfordern

datei_anfordern

Fordert eine Datei vom Menschen an und gibt einen Link zurück, über den er sie in Meistron hochlädt. Für Preisdateien von Lieferanten (DATANORM), PDFs, Belege und Fotos.

Die Anforderung selbst verarbeitet noch nichts. Nach dem späteren Upload wird eine DATANORM-Datei mit Zeitgrenze eingelesen und geprüft, daraus entsteht ein Prüfbericht; Einkaufspreise oder Artikel werden dabei NICHT angewendet. Reicht die Zeit nicht oder liegt eine Rabattdatei bei, macht ein Mensch in Meistron mit „Fortsetzen“ weiter. Das Anwenden startet ebenfalls ein Mensch nach dem Prüfbericht. Belege werden nur abgelegt, Bilder können dem genannten Auftrag als Foto zugeordnet werden.

Eine Datei lässt sich NICHT durch den Chat schicken — auch nicht als Text oder Base64. Das ist keine Einschränkung, sondern Absicht: Bei einer Preisdatei mit zehntausenden Artikeln zählt jedes Zeichen, und ein durchgereichter Text verliert oder erfindet welche.

Den Link dem Menschen zeigen. Er muss in Meistron angemeldet sein — ohne Anmeldung führt der Link nirgendwohin. Danach mit „datei_stand" nachsehen, ob sie da ist.

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": {
      "zweck": "<zweck>"
    },
    "name": "datei_anfordern"
  }
}

Input Schema

NameRequiredDescriptionDefault
zweckYesdatanorm = Preisdatei eines Lieferanten · dokument = PDF (Ausschreibung, Plan) · beleg = Eingangsrechnung oder Quittung · bild = Foto.
hinweisNoWas genau gebraucht wird — steht dem Menschen auf der Upload-Seite.
lieferant_idNoPFLICHT bei zweck=datanorm: von welchem Lieferanten die Preisdatei kommt. Ohne gültige Kennung wird keine Anforderung angelegt. „lieferanten_auflisten" nennt die Kennungen.
idempotency_keyNoIm vollautonomen Betrieb erforderlich. Beim ersten Aufruf weglassen: Der Server liefert dann einen UUID-Key, ohne die Aktion auszuführen. Den Aufruf mit diesem Key wiederholen und bei Retry/Reconnect denselben Key verwenden. Eine neue beabsichtigte Aktion braucht einen neuen Key.
gehoert_zu_auftragNoKennung des Auftrags, zu dem die Datei gehört. Der Vermerk am Auftrag wird gesetzt; eine Ansicht, die dort abgelegte Dateien anzeigt, gibt es zurzeit noch nicht — nur ein Bild (zweck=bild) erscheint sichtbar in den Fotos des Auftrags. Sag dem Nutzer nichts anderes zu.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Im vollautonomen Betrieb erforderlich. Beim ersten Aufruf weglassen: Der Server liefert dann einen UUID-Key, ohne die Aktion auszuführen. Den Aufruf mit diesem Key wiederholen und bei Retry/Reconnect denselben Key verwenden. Eine neue beabsichtigte Aktion braucht einen neuen Key.",
      +  "format": "uuid",
      +  "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89aAbB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$",
      +  "type": "string"
      +}
    • changedInput schema / properties / lieferant_id / description
      Previous value: -"NUR bei zweck=datanorm: von welchem Lieferanten die Preisdatei kommt. Ohne Angabe landet sie im Speicher, aber nicht in der Import-Liste. „lieferanten_auflisten\" nennt die Kennungen."New value: +"PFLICHT bei zweck=datanorm: von welchem Lieferanten die Preisdatei kommt. Ohne gültige Kennung wird keine Anforderung angelegt. „lieferanten_auflisten\" nennt die Kennungen."
  2. Changed1 schema field changed
    • changedInput schema / properties / gehoert_zu_auftrag / description
      Previous value: -"Kennung des Auftrags, zu dem die Datei gehört. Ohne Angabe wird sie nur abgelegt und nicht einsortiert."New value: +"Kennung des Auftrags, zu dem die Datei gehört. Der Vermerk am Auftrag wird gesetzt; eine Ansicht, die dort abgelegte Dateien anzeigt, gibt es zurzeit noch nicht — nur ein Bild (zweck=bild) erscheint sichtbar in den Fotos des Auftrags. Sag dem Nutzer nichts anderes zu."
  3. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is known. The description adds substantial context beyond that: the request itself processes nothing, an uploaded DATANORM file is parsed under a time limit into a Prüfbericht without applying prices or articles, and a human resumes or applies. The remaining gap is the return value's shape beyond "a link" and what happens if the human never uploads, which keeps this from a top score.

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?

Front-loaded with the core action and return value, then layered with operational caveats; sentences are dense but each carries information. It runs long and repeats the no-chat-upload rule in both a negative and a rationale form, which costs some tightness without derailing the reader.

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 no output schema, the description still names the return artifact (an upload link), the precondition that the human must be signed in to Meistron, and the required follow-up check. For a tool embedded in a human-in-the-loop handoff, nothing an agent needs 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 description coverage is 100%, so a 3 baseline applies, but the description adds downstream meaning for the zweck enum that the schema does not carry — DATANORM is parsed and checked, Belege are only stored, images become visible photos on the referenced Auftrag. The required Meistron login for the recipient is likewise call-relevant context not encoded in any 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 concrete verb and resource — requests a file from the human and returns a link for uploading it into Meistron — and immediately scopes the file types (DATANORM price files, PDFs, receipts, photos). An agent can distinguish it from datei_stand, which is explicitly named as the follow-up status check, without opening either 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?

Gives explicit routing: use this to obtain a file, show the link to the human, then verify arrival with "datei_stand". It also draws a hard boundary — a file cannot be sent through chat, not even as text or Base64 — which is exactly the kind of when-not-to-use rule that prevents a wrong invocation.

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