Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

patch_item_custom_fields

Partially update an item's custom fields by changing only the key-value pairs you specify, leaving all other existing custom fields unchanged.

Instructions

Partially update custom fields on an item. Only the fields specified in the request body are updated; existing custom fields not included in the request are left unchanged. Use set_item_custom_fields if you want to replace all custom fields entirely.

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": {
      "itemNumber": "<itemNumber>",
      "customFields": "<customFields>"
    },
    "name": "patch_item_custom_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemNumberYesThe unique item number (SKU) whose custom fields should be patched.
customFieldsYesThe custom fields to update as key-value pairs. Only the specified fields are changed; others remain untouched.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A4/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 behavioral burden. It does disclose the key semantic — merge/partial-update behavior leaves unspecified fields untouched — but says nothing about required permissions, behavior when the item or a field key doesn't exist, type constraints on values, 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 the merge rule, ending with the sibling routing. No filler or restatement of the title alone.

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 two-parameter mutation tool with no annotations and no output schema, the merge-vs-replace distinction is exactly the information an agent most needs, and it is present. Remaining gaps (value types accepted by the free-form customFields map, error conditions, return payload) are modest but real.

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 itself already documents itemNumber and the customFields merge semantics, so the description adds essentially no parameter meaning beyond structured data. Baseline 3 applies; the nested arbitrary key-value object is described only as well as the schema already does.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Partially update custom fields on an item') and immediately disambiguates from the sibling set_item_custom_fields, which does a full replace. An agent can distinguish patch vs set behavior without opening either schema.

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

Usage Guidelines4/5

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

Explicitly names the alternative (set_item_custom_fields) and the condition that selects it (replace all custom fields entirely). It does not mention reading current values first via get_item_custom_fields, nor any prerequisites, so guidance is strong but not exhaustive.

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