Skip to main content
Glama

Preview file

get_preview

A preview of the output. In a job without an API key it is free and covers an unpaid file's first 5 pages with bookings or first 125 bookings (all bookings of a smaller file; PDF bookings without a page are left out). Its file name marks it as not for bookkeeping; it serves only to check the result. With an API key it runs the export: the first export of a final file uses up the plan's units. Returns a download link valid for 1 hour, at most until the job ends.

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": {
      "job_token": "<job_token>"
    },
    "name": "get_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
datevNoDATEV header data from the user's tax office. Required for DATEV files of anonymous jobs: berater_nummer (4-7 digits) and mandanten_nummer (1-5 digits). Optional fiscal_year_start (YYYY-MM-DD, first day of a month; default 1 January of the first booking's year).
formatNoOutput format; default: the job's target_format.
file_idNoA file_id from get_job_status; optional when the job has one file.
languageNoLanguage of messages (default de).
job_tokenYesThe job_token returned by upload_statements.
account_ibanNoMT940 only: IBAN of the statement's account.
closing_balanceNoMT940 only: balance after the last booking; with opening_balance KP checks a statement without balances for completeness.
opening_balanceNoMT940 only: balance before the first booking, e.g. 1234.56; omit when the statement shows it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / closing_balance / description
      Previous value: -"MT940 only: balance after the last booking; with opening_balance it proves a statement without balances complete."New value: +"MT940 only: balance after the last booking; with opening_balance KP checks a statement without balances for completeness."
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations it discloses cost semantics (free without a key, first export of a final file consumes plan units), scope limits (first 5 pages or first 125 bookings, smaller files in full), an exclusion (PDF bookings without a page are omitted), a side effect on the artifact (filename marked not for bookkeeping), and a time-bounded return (link valid 1 hour, at most until job end). This is exactly the kind of billing, limit and expiry context the annotations cannot convey.

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?

It is front-loaded with the core concept and every sentence carries distinct information about limits, cost, or return. The long nested parentheticals make it dense and slightly hard to scan, but no sentence is filler.

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 8 parameters, a nested DATEV object, and no output schema, the description supplies the missing return contract (a download link with a 1-hour/job-end expiry) and the cost/limit model an agent needs before calling. Combined with the fully documented schema, nothing material is left unstated.

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%, including the nested datev object and the MT940 balance fields, so the schema already carries parameter meaning. The description adds no parameter-level guidance (e.g., when file_id is required, how format interacts with the job's target_format), so it stays at the baseline.

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?

"A preview of the output" plus "With an API key it runs the export" makes clear this produces a preview file of a job's export result, distinct from fetching job state or downloading a finished result. It is slightly soft on naming the resource (job/file) and never states a verb, so it stops short of a crisp verb+resource statement.

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 clearly frames the two modes of use (no API key = free limited preview; with API key = real export that consumes plan units) and states the intent constraint: "it serves only to check the result." It does not explicitly name siblings like download_result or get_job_status as alternatives, so routing is implied rather than spelled out.

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