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) or a photo (street side, heating, type plate). JPG, PNG, WebP or PDF as base64, at most 10 MB, 20 files per order. Bills are read and compared with the entered consumption after the customer has ordered; the Energieberater checks the photos. Usually the customer takes the photos on our page after the confirmation email. Orders nothing.

Input Schema

NameRequiredDescriptionDefault
kindYesrechnung (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
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
size_bytesYes
document_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: size and count limits (10 MB, 20 per order), what happens afterwards (bills are parsed and compared to entered consumption, an Energieberater reviews photos), and 'Orders nothing', which reassures the agent this is not a committing action. It does not address what happens on re-upload of the same file despite idempotentHint=false, which is a minor gap.

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?

Four compact sentences: what it does, allowed inputs and limits, downstream processing, and the no-commit guarantee. Front-loaded and free of filler.

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?

Given an output schema and fully described parameters, the description covers the workflow position, limits and downstream effects an agent needs to call it correctly. Only duplicate-upload behavior is unaddressed.

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 each parameter is already documented, including the kind enum values and the base64 size cap. The description reinforces the accepted formats and size but adds no semantics absent from the schema; baseline 3 applies.

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 specific verb and resource ('Uploads a file to a draft order') and immediately enumerates what a file can be (energy bill, Heizkostenabrechnung, photo types). This clearly separates it from siblings like start_order or update_order, which never accept binary content.

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?

Explains the intended context: files attach to a draft order before/around ordering, and photos are usually taken by the customer after the confirmation email. It does not name an alternative tool or state exclusions explicitly, so it stops short of a 5.

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