Skip to main content
Glama

Upload a bill or photo

add_document

Uploads a file to a draft order: an energy bill or Heizkostenabrechnung (rechnung), Verbrauchsausweis photos (fassade_strasse, heizung, typenschild), or Bedarfsausweis Hausrundgang/plant photos (fassade with compass sector, fenster, dachboden, kellerdecke, heizkoerper, treppenhaus, dach, heizung, typenschild, ofen, solarthermie, pv, pv_leistung, lueftung, klima, zweite_heizung) or sonstiges. JPG, PNG, WebP or PDF as base64, at most 10 MB, 20 files per order. Usually the customer takes the photos on our page after the confirmation email. Orders nothing.

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": {
      "order_id": "<order_id>",
      "order_token": "<order_token>",
      "kind": "<kind>",
      "content_base64": "<content_base64>"
    },
    "name": "add_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesrechnung (energy bill), fassade_strasse, heizung, typenschild (Verbrauchsausweis), or Bedarfsausweis Hausrundgang/plant photos: fassade (with sector), fenster, dachboden, kellerdecke, heizkoerper, treppenhaus, dach, ofen, solarthermie, pv, pv_leistung, lueftung, klima, zweite_heizung, or sonstiges
sectorNoonly for kind fassade (Bedarfsausweis): compass sector N, NO, O, SO, S, SW, W or NW matching photo_tasks
filenameNothe file's name, for your reference
order_idYesthe order_id start_order returned
order_tokenYesthe order_token start_order returned; it opens only this order, keep it private
content_base64Yesthe file, base64-encoded: JPG, PNG, WebP or PDF, at most 10 MB

Output Schema

NameRequiredDescriptionDefault
kindYes
mimeYes
checkNo
sectorNo
size_bytesYes
document_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / kind / description
      Previous value: -"rechnung (energy bill or Heizkostenabrechnung), fassade_strasse (photo of the street side), heizung (photo of the boiler or heat pump), typenschild (photo of its type plate) or sonstiges"New value: +"rechnung (energy bill), fassade_strasse, heizung, typenschild (Verbrauchsausweis), or Bedarfsausweis Hausrundgang/plant photos: fassade (with sector), fenster, dachboden, kellerdecke, heizkoerper, treppenhaus, dach, ofen, solarthermie, pv, pv_leistung, lueftung, klima, zweite_heizung, or sonstiges"
    • addedInput schema / properties / sector
      Added value: +{
      +  "description": "only for kind fassade (Bedarfsausweis): compass sector N, NO, O, SO, S, SW, W or NW matching photo_tasks",
      +  "type": "string"
      +}
    • addedOutput schema / properties / sector
      Added value: +{
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / kind / description
      Previous value: -"rechnung (energy bill or Heizkostenabrechnung), fassade_strasse (photo of the street side), fassade_garten, heizung (photo of the boiler or heat pump), typenschild (photo of its type plate) or sonstiges"New value: +"rechnung (energy bill or Heizkostenabrechnung), fassade_strasse (photo of the street side), heizung (photo of the boiler or heat pump), typenschild (photo of its type plate) or sonstiges"
  3. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare this is a non-readonly, non-destructive, non-idempotent write, and the description adds concrete operational limits the annotations lack: 10 MB cap, 20 files per order, accepted MIME types, and base64 encoding. It does not address what happens on a duplicate upload or a failed validation, which would complete the picture for a non-destructive-but-non-idempotent write.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core statement is front-loaded, but the bulk of the description is a single sprawling enumeration of photo kinds that duplicates the schema's own kind description nearly verbatim. Trimming that redundancy would leave a much tighter definition without losing information the agent needs.

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 the description needn't explain return values, and it covers the practical essentials: which files are valid, size/count limits, encoding, and that the draft order must already exist with its id and token. The main gap is that it never explains the effect of the upload on the order lifecycle or how duplicates are handled.

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%, so the schema already documents kind, sector, filename, order_id, order_token and content_base64. The description largely re-lists the same kind values as the schema without adding syntax, defaults, or edge cases (e.g. whether sector is mandatory when kind is fassade), so the baseline 3 applies.

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?

Opens with a specific verb and resource ("Uploads a file to a draft order") and enumerates exactly which document kinds are accepted, so an agent can immediately tell this is an upload tool rather than a query or order-mutating one. It does not explicitly contrast itself with siblings such as update_order or review_order, which keeps it short of a 5.

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 line "Usually the customer takes the photos on our page after the confirmation email" implies the agent normally should not call this itself, which is useful implied guidance, but it never states a clear when-to-use/when-not condition or names an alternative. The trailing "Orders nothing." hints the tool has no side effect on order state but is too cryptic to function as real routing guidance.

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