Skip to main content
Glama

Update company

update_company
DestructiveIdempotent

Changes the data of a company (the seller). Only the given fields change; a nested object (address, vat, contact) changes only its given keys. document_theme sets the colour theme of new documents. The electronic address, the country, the logo and KSeF are not changed by this tool: the electronic address is changed by change_payment_details, the others are set only in the app.

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": {
      "company_id": "<company_id>"
    },
    "name": "update_company"
  }
}

Input Schema

NameRequiredDescriptionDefault
vatNoThe VAT settings of the company; only the given keys change, null removes all VAT settings.
nameNoThe name of the company as printed on documents (one line).
typeNoThe legal form of the company.
notesNoInternal notes about the company, never printed on documents; null means no notes (on update it removes them).
addressNoThe address of the company; only the given keys change. The country can't be changed.
contactNoThe contact data printed on documents; only the given keys change, null removes it.
timezoneNoThe time zone of the company (an IANA name of its country, e.g. Europe/Ljubljana); it sets the dates of documents.
company_idYesThe id of the company, from list_companies.
tax_numberNoThe tax number of the company, digits only; null clears it.
pdf_einvoiceNoWhether the PDF of issued invoices embeds the e-invoice data (ZUGFeRD / Factur-X); null means automatic (on for companies in Germany).
document_themeNoThe colour theme new documents of the company take, a DOCUMENT_THEME value of get_reference_data; null means the default SLATE. A theme other than SLATE needs the theme feature of the plan of the company owner. Existing documents keep their theme.
invoice_prefixNoThe prefix of the invoice numbers. It must differ from the proforma prefix: equal prefixes, or one being the other followed by digits only, would share one number counter, so proformas would take numbers from the invoice series; such a value is a validation error.
proforma_prefixNoThe prefix of the proforma numbers. It must differ from the invoice prefix and the corrective invoice prefix: equal prefixes, or one being the other followed by digits only, would share one number counter, so proformas would take numbers from the invoice series; such a value is a validation error.
registration_numberNoThe company registration number, digits only; null clears it.
proforma_validity_daysNoHow many days a proforma is valid by default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare the mutation as destructive, idempotent, and not read-only, but the description adds meaningful behavior: only supplied fields change, nested objects update only provided keys, and document_theme affects only new documents. It also lists fields that are intentionally untouched and where the electronic address can be changed instead.

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?

The description is front-loaded, compact, and organized around the update scope, nested-object behavior, and excluded fields. Every sentence contributes useful guidance without repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the 15-parameter nested schema, rich parameter descriptions, and annotations, the definition provides enough context to invoke the tool correctly. It covers the important behavioral boundaries and directs the agent elsewhere for the main excluded field.

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 the schema already documents all 15 parameters in detail. The description reinforces partial nested updates and document_theme scope, but does not add parameter syntax or constraints beyond what the schema provides.

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?

The description uses a specific verb and resource: it changes the data of a company, identified as the seller. It also distinguishes the tool from nearby operations by naming change_payment_details for the electronic address and stating that country, logo, and KSeF are not changed here.

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?

It clearly establishes the update context and gives explicit exclusions: electronic address, country, logo, and KSeF cannot be changed here. It also routes one excluded field to change_payment_details, though it does not explicitly discuss create_company or get_company as alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources