Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

get_contract_attachments

Retrieve all attachments for a contract by contract number, returning each file's name, MIME type, and visibility settings so you can review or audit stored documents.

Instructions

Retrieve all attachments associated with a contract. Returns metadata about each attachment including file name, MIME type, and visibility settings.

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>"
    },
    "name": "get_contract_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
contractNumberYesThe unique contract number whose attachments to retrieve.

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 exist, so the description carries the full disclosure burden. It does add real value by disclosing the return shape (file name, MIME type, visibility settings) and implying metadata-only rather than file content. However, it says nothing about access permissions, pagination, or behavior when a contract has no attachments.

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 tight sentences: purpose first, return contents second. No filler, no redundancy, and the key information is front-loaded.

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?

For a simple one-parameter read tool with no output schema and no annotations, the description covers both what it does and what it returns, which is largely sufficient. Marginal gaps remain around access requirements and how results relate to the attachment download tool.

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?

The single parameter has 100% schema description coverage, so the schema already defines contractNumber as the unique contract number. The phrase "associated with a contract" reinforces the filter but adds no format, range, or lookup semantics beyond the schema.

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?

States a specific verb and resource: "Retrieve all attachments associated with a contract." An agent can immediately tell this is a read/list operation scoped to one contract. It does not explicitly contrast with siblings like download_contract_attachment or create_contract_attachment, which is the only thing keeping it from 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?

Usage is implied — you call it when you want to see what attachments exist for a contract — but no explicit when-to-use, prerequisites, or alternatives are given. The natural contrast with download_contract_attachment (fetch metadata vs. fetch content) is left for the agent to infer.

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