Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

patch_contract_custom_fields

Update only specified custom fields on a contract, adding or changing those key-value pairs while leaving all omitted fields unchanged.

Instructions

Partially update custom fields on a contract. Only the specified key-value pairs will be added or updated; existing custom fields not included in the request are left unchanged.

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": "patch_contract_custom_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
customFieldsYesAn object of key-value pairs representing the custom fields to add or update.
contractNumberYesThe unique contract number whose custom fields to patch.

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, and it does disclose the key behavioral trait: this is a non-destructive merge, not an overwrite. It leaves several mutation-relevant behaviors unstated — how a field is removed (null? empty string?), what happens to unrecognized keys, and whether validation errors abort the whole patch or apply partially.

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?

Two sentences with no filler; the action is front-loaded and the second sentence earns its place by defining merge scope. It could be tightened slightly, but nothing is redundant.

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 mutation tool with a nested free-form object, no annotations, and no output schema, the definition explains the core contract but omits deletion semantics and failure behavior — the gaps an agent would most likely hit. Adequate for a basic patch call, not complete.

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 contractNumber and customFields are already documented in the schema, and the baseline is 3. The description reinforces that customFields is a key-value patch map with add-or-update semantics, but adds no detail on value types or on how to express a deletion, which the schema's untyped additionalProperties also fails to cover.

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+resource ("Partially update custom fields on a contract") and immediately defines the patch scope, which implicitly separates it from the replace-style set_contract_custom_fields sibling. It stops short of naming that sibling or the get_* variants explicitly, so the differentiation is inferred 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?

The merge semantics ("only the specified key-value pairs will be added or updated") imply the right context: use this when touching a subset of fields and preserving the rest. However, there is no explicit when-to-use/when-not guidance and no named alternative pointing an agent to set_contract_custom_fields for full replacement or get_contract_custom_fields for reads.

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