Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

set_item_custom_fields

Replaces all custom fields on an item with the provided key-value set. Use it to fully overwrite item metadata, since fields omitted from the request are removed.

Instructions

Set all custom fields on an item, replacing any existing custom fields entirely. Any custom fields not included in the request body will be removed. Use patch_item_custom_fields instead if you only want to update specific fields without affecting the rest.

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

Input Schema

NameRequiredDescriptionDefault
itemNumberYesThe unique item number (SKU) whose custom fields should be replaced.
customFieldsYesThe complete set of custom fields as key-value pairs. This replaces all existing custom fields on the item.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does the most important part: it discloses twice that this is a full replacement that removes any field not included in the body. It does not cover permission/auth requirements or what the response looks like, which are the remaining gaps 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the core operation and its destructive effect, then the routing advice. Every sentence carries distinct information and nothing is repeated verbatim from the schema.

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, nested-object mutation with no annotations and no output schema, the definition covers the critical risk (silent removal of omitted fields) and the alternative tool. It stops short of describing return behavior or failure modes, which is a minor gap given the otherwise thorough disclosure.

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 itemNumber and customFields are already documented in the schema, including the replacement semantics. The description adds no new detail about the free-form key-value object (e.g. expected key format, value types, validation), so the baseline of 3 applies.

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 ('Set all custom fields on an item') plus the exact scope ('replacing any existing custom fields entirely'), which distinguishes it cleanly from patch_item_custom_fields and the sibling set_* tools for contracts/customers. An agent can identify the operation without opening the schema.

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

Usage Guidelines5/5

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

Explicitly names the alternative ('Use patch_item_custom_fields instead if you only want to update specific fields without affecting the rest') and gives the condition that selects it. The when-not case is spelled out in the destructive warning about omitted fields.

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