Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

create_contract_attachment

Upload a base64-encoded document to a contract and configure whether it is sent to the customer with invoice emails or displayed in the customer center.

Instructions

Upload and attach a document to a contract. The document must be provided as a base64-encoded string. Can be configured to be sent to the customer with invoices and/or shown in the customer center.

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>",
      "document": "<document>",
      "fileName": "<fileName>",
      "mimeType": "<mimeType>"
    },
    "name": "create_contract_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentYesThe document content as a base64-encoded string.
fileNameYesThe file name of the attachment (e.g. "terms.pdf").
mimeTypeYesThe MIME type of the attachment (e.g. "application/pdf").
contractNumberYesThe unique contract number to attach the document to.
sendToCustomerNoWhether to send this attachment to the customer with invoice emails.
sendPermanentlyNoWhether to send this attachment permanently with every invoice email.
showInCustomercenterNoWhether to show this attachment in the customer center portal.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose two meaningful traits: content must be base64-encoded, and the attachment can be pushed to customers via invoice emails and the customer center — an externally visible side effect. It omits permissions required, size limits, duplicate-file behavior, and whether the call is idempotent, which are significant for an unannotated mutation tool.

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?

Three short sentences, front-loaded with the action and followed by the data-format constraint and the delivery configuration. The base64 point duplicates the schema description slightly, but nothing is padded or out of order.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a seven-parameter mutation tool with no annotations and no output schema, the description covers the action, input format, and customer-facing side effects reasonably. It leaves open what is returned (e.g., an attachment identifier), permission requirements, and failure conditions, which an agent would need to invoke this confidently.

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 the schema already documents all seven parameters, including the three boolean delivery flags. The description restates the base64 requirement and summarizes what the flags control at a high level, adding orientation but no syntax or format detail beyond the schema; baseline 3 applies.

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 states a specific verb and resource — 'Upload and attach a document to a contract' — which is immediately distinguishable from the sibling download_contract_attachment and from create_contract itself. It stops short of explicitly naming any sibling or scoping the operation further, so it is clear but not maximally differentiated.

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 through the upload/attach framing and the note about invoice delivery and customer-center display, which hints at when the optional flags matter. However, there is no explicit when-to-use vs. alternative guidance, no prerequisites (e.g., the contract must already exist), and no exclusions such as file size or type restrictions.

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