Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

get_contract_custom_fields

Retrieve all custom fields for a contract by contract number to access user-defined key-value metadata.

Instructions

Retrieve all custom fields associated with a contract. Custom fields are user-defined key-value pairs that can store arbitrary metadata on a contract.

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_custom_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
contractNumberYesThe unique contract number whose custom fields to retrieve.

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 carries the full burden, but 'Retrieve all' does communicate a non-destructive read that returns the full set of custom fields. It also explains that custom fields are user-defined key-value metadata, though it omits behavior such as empty-result handling, ordering, or pagination.

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, front-loaded with the action and resource, followed by a compact definition of custom fields. Nothing is redundant, and the glossary sentence earns its place by clarifying a potentially ambiguous term.

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?

This is a simple one-parameter read operation with full schema coverage and no output schema, so the description is largely complete. A minor gap is that it does not state what happens when no custom fields exist, but the core behavior is clear.

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%, and the schema already defines contractNumber as the unique contract number whose fields are retrieved. The description adds no parameter syntax or formatting details beyond that, so the baseline score of 3 is 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 uses a specific verb ('Retrieve') and resource ('custom fields associated with a contract'), making the operation easy to identify. It implies a contract-scoped read and thereby differs from customer/item custom-field siblings, though it does not explicitly name those alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It says what the tool retrieves but gives no explicit when-to-use guidance, prerequisites, or comparison to set_contract_custom_fields or patch_contract_custom_fields. The read-only intent is only implied by the verb 'Retrieve'.

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