Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

set_customer_custom_fields

Replaces all custom fields for a specified customer, removing any fields not included in the request. Use the patch alternative when only specific fields need updating.

Instructions

Set all custom fields on a customer, replacing any existing custom fields entirely. Any custom fields not included in the request body will be removed. Use patch_customer_custom_fields instead if you only want to update specific fields.

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": {
      "customerNumber": "<customerNumber>",
      "customFields": "<customFields>"
    },
    "name": "set_customer_custom_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
customFieldsYesThe complete set of custom fields as key-value pairs. This replaces all existing custom fields.
customerNumberYesThe unique customer number whose custom fields should be replaced.

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 burden and delivers the most important behavioral fact: this is a destructive whole-object replacement, and any fields omitted from the request will be removed. It does not cover error behavior for an invalid customerNumber or whether the resulting field set is returned, which keeps it below a 5.

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, each earning its place: purpose, destructive consequence, then the routing alternative. The destructive warning is front-loaded before the redirect, which is the right ordering for a data-loss risk.

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, no-output-schema mutation, the definition covers what an agent needs: the replacement contract, the loss semantics, and the safer alternative. Only failure modes and confirmation of the returned state are absent, which are minor given the schema's clarity.

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 parameters are already documented in the schema, including that customFields replaces all existing fields. The description restates that semantics rather than adding new meaning such as key constraints, value types, or size limits, so the baseline 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 a customer') plus the crucial scope modifier: full replacement. This immediately distinguishes it from the patch_customer_custom_fields sibling named in the same breath.

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 tool and the exact condition that selects it ('Use patch_customer_custom_fields instead if you only want to update specific fields'). The when-to-use decision is fully specified rather than implied.

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