Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

download_contract_attachment

Download a contract attachment by contract number and document ID, returning the file content as a base64-encoded string for retrieval or processing.

Instructions

Download a specific contract attachment by its document ID. Returns the attachment content as a base64-encoded string.

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": {
      "contractNumber": "<contractNumber>",
      "documentId": "<documentId>"
    },
    "name": "download_contract_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentIdYesThe unique document ID of the attachment to download.
contractNumberYesThe unique contract number that owns the attachment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses the return encoding ('base64-encoded string'), which the agent would otherwise have to discover, but it says nothing about permissions, attachment size limits, or what happens when the ID is unknown or the document is missing.

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?

Two sentences, zero filler. The operation and its selection key come first, and the return-format note is placed immediately after, so the reader gets the essentials upfront.

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?

The tool is simple (two required scalar params, no nested objects) and lacks an output schema, yet the description covers both the action and the return shape, which is the key missing piece. Only minor gaps remain, such as error behavior and how to obtain the document ID.

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 both parameters are already documented in the schema with type and meaning. The description restates the document ID concept without adding format, constraint, or provenance detail beyond the schema, making the baseline 3 appropriate.

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?

The description names a specific verb and resource ('Download a specific contract attachment') and a selection key ('by its document ID'), which clearly separates it from the sibling listing tool get_contract_attachments. It stops short of naming that sibling explicitly, so differentiation is implied rather than stated.

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?

Usage is only implied: the phrase 'by its document ID' suggests the caller must already know the ID, which hints that a listing call comes first. There is no explicit when-to-use, when-not-to-use, or named alternative such as get_contract_attachments.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools