Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

set_contract_custom_fields

Replace all custom fields on a contract by passing the complete key-value object; any existing fields omitted from the object are removed.

Instructions

Set custom fields on a contract, replacing all existing custom fields. Pass a complete object of key-value pairs. Any existing custom fields not included will be removed.

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

Input Schema

NameRequiredDescriptionDefault
customFieldsYesAn object of key-value pairs representing the complete set of custom fields.
contractNumberYesThe unique contract number whose custom fields to set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A3.5/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, and it does disclose the critical destructive behavior: omitted existing custom fields are removed. It does not cover permissions, idempotency, error behavior, or what the call returns.

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?

Three short sentences, front-loaded with the core action and replacement semantics. Every sentence adds useful information with no redundant wording.

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 two-parameter setter, the core mutation semantics are adequately explained, including the important full-replacement side effect. Given the absence of annotations and an output schema, more detail on permissions, error behavior, and return values would improve completeness.

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 coverage is 100%, so both parameters are already documented in the schema. The description reinforces that customFields must be a complete key-value object, but adds no new syntax or formatting details beyond what the schema provides.

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 and resource: "Set custom fields on a contract." It also states replacement semantics, which distinguishes it in practice from a patch-style sibling, though it does not explicitly name that alternative.

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?

The replacement semantics imply when this tool is appropriate, and the requirement to pass a complete object is clear. However, it does not explicitly state when to use this versus patch_contract_custom_fields, nor any prerequisites or exclusions.

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