Skip to main content
Glama

export_contracts_excel

Destructive

Export the contracts — ALL types (rental, service, maintenance, lease, insurance, …) unless contract_type narrows it — as an Excel file (Vertraege-.xlsx; Mietvertraege-… with contract_type=rental). Sheets: Verträge (one row per contract: type, status, our role, our company, counterparty, linked organisation and person, then the extracted fields incl. calculated €/m² for rentals, then one column per custom field); the tenant's own sheets from set_contract_scan_rules.export_sheets, if any (each contract on the sheet that matches its 'blatt' custom field, with the columns defined there); Fristen (every deadline by date); Zu prüfen (low-confidence fields, contradictions, unreadable pages, unassigned files); Dateien (every file and its contract). Optional: scan_id (adds unassigned files of that scan), only_extracted (default true), write_to {bridge, folder, path} — also writes the .xlsx into that folder on the connected computer. Returns a download link (7 days).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "export_contracts_excel"
  }
}

Input Schema

NameRequiredDescriptionDefault
scan_idNoID of the scan
write_toNoAlso write the .xlsx into this folder on a connected computer
contract_typeNoOnly contracts of this type, e.g. rental
only_extractedNoOnly contracts with extracted facts (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / contract_type / description
      Added value: +"Only contracts of this type, e.g. rental"
    • addedInput schema / properties / only_extracted / description
      Added value: +"Only contracts with extracted facts (default true)"
    • addedInput schema / properties / scan_id / description
      Added value: +"ID of the scan"
    • addedInput schema / properties / write_to / description
      Added value: +"Also write the .xlsx into this folder on a connected computer"
    • addedInput schema / properties / write_to / properties / bridge / description
      Added value: +"Bridge slug of the connected computer"
    • addedInput schema / properties / write_to / properties / folder / description
      Added value: +"Allowed folder of that bridge"
    • addedInput schema / properties / write_to / properties / path / description
      Added value: +"Subfolder inside folder"
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, destructiveHint=true, idempotentHint=false, so the description does real work: it discloses the generated filename pattern, the full sheet layout (Verträge, tenant sheets from set_contract_scan_rules.export_sheets, Fristen, Zu prüfen, Dateien), and that the returned link expires after 7 days. It never explains what 'destructive' means here (e.g., overwriting an existing file at the write_to path), which is the one behavioral gap.

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?

Purpose and scope are front-loaded before the sheet enumeration, and nearly every clause carries information an agent needs to interpret the output. It is a single dense run-on paragraph, though, and the column-by-column inventory of the Verträge sheet is more detail than tool selection requires.

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?

For a 4-parameter export with no output schema, the description covers everything that matters: scope, filename, sheet contents, the optional parameters' effects, the side-effecting write_to behavior, and the 7-day link lifetime. An agent can call this correctly without further context.

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 already 100%, so the baseline is 3, but the description adds real meaning: contract_type changes the output filename (Mietvertraege-…), scan_id is specifically for adding unassigned files from a scan, only_extracted defaults to true, and write_to targets a bridge/folder/path on a connected computer. The nested write_to semantics are largely repeated from the schema, which keeps this from a 5.

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 opens with a specific verb and resource (export the contracts as an Excel file) and immediately scopes it: ALL contract types unless contract_type narrows it. It also gives the concrete artifact name (Vertraege-<date>.xlsx), which together with the contract-specific resource distinguishes it from the other export_* siblings (leads, brevo contacts, cue cards, brain).

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 explains when each option applies: contract_type narrows the export, scan_id pulls in that scan's unassigned files, only_extracted defaults to true, and write_to additionally drops the file into a folder on a connected computer. What's missing is explicit when-not guidance or a named alternative tool (e.g., a non-Excel contract export) to route to instead.

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.