Skip to main content
Glama
Unofficial Lexware Office MCP Server

Unofficial Lexware Office MCP Server

update_contact

DestructiveIdempotent

Updates existing Lexware Office contacts by changing only the fields you provide; read the contact first for its version, then send the contact ID and version to avoid overwriting changes.

Instructions

Change an existing contact. Only the fields you give are changed.

Writes real accounting data. Read the contact with get_contact first: it shows what is there and carries the version this needs. Two API calls.

Answers with the id and the new version, which the next update needs.

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": {
      "contact_id": "<contact_id>",
      "version": "<version>"
    },
    "name": "update_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew company name, or for a person the last name.
noteNoFree-text note on the contact, at most 1000 characters.
emailNoOne email address. On an update it replaces the ones the contact has rather than adding another.
phoneNoOne phone number. As with the email address, this replaces rather than adds.
rolesNoReplaces the contact's roles. Leave unset to keep them. Passing only one role removes the other.
versionYesThe `version` from the record as you last read it. If the record has changed since, the update is refused instead of overwriting that change.
contact_idYesThe contact's Lexware id, as returned by search_contacts or referenced by a voucher.
first_nameNoNew first name. Persons only.
salutationNoNew salutation. Persons only.
tax_numberNoNational tax number. Companies only.
billing_addressNoThe billing address. A contact has at most one.
shipping_addressNoThe shipping address. A contact has at most one.
vat_registration_idNoVAT registration id, for example 'DE123456789'. Companies only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed52 schema fields changedv0.11.0
    • changedInput schema / $defs / Address / description
      Previous value: -"One postal address.\n\nA contact holds at most one billing and one shipping address, which the\nAPI enforces: a second entry is refused with\n``addresses.billing.size: invalid_value``. Verified 2026-08-20."New value: +"One postal address."
    • removedInput schema / $defs / Address / properties / city / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / $defs / Address / properties / city / title
      Removed value: -"City"
    • addedInput schema / $defs / Address / properties / city / type
      Added value: +"string"
    • removedInput schema / $defs / Address / properties / country_code / title
      Removed value: -"Country Code"
    • removedInput schema / $defs / Address / properties / street / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / $defs / Address / properties / street / title
      Removed value: -"Street"
    • addedInput schema / $defs / Address / properties / street / type
      Added value: +"string"
    • removedInput schema / $defs / Address / properties / supplement / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / $defs / Address / properties / supplement / title
      Removed value: -"Supplement"
    • addedInput schema / $defs / Address / properties / supplement / type
      Added value: +"string"
    • removedInput schema / $defs / Address / properties / zip / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / $defs / Address / properties / zip / title
      Removed value: -"Zip"
    • addedInput schema / $defs / Address / properties / zip / type
      Added value: +"string"
    • removedInput schema / $defs / Address / title
      Removed value: -"Address"
    • addedInput schema / properties / billing_address / $ref
      Added value: +"#/$defs/Address"
    • removedInput schema / properties / billing_address / anyOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/Address"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / contact_id / title
      Removed value: -"Contact Id"
    • removedInput schema / properties / email / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / email / title
      Removed value: -"Email"
    • addedInput schema / properties / email / type
      Added value: +"string"
    • removedInput schema / properties / first_name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / first_name / title
      Removed value: -"First Name"
    • addedInput schema / properties / first_name / type
      Added value: +"string"
    • removedInput schema / properties / name / anyOf
      Removed value: -[
      -  {
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / name / minLength
      Added value: +1
    • removedInput schema / properties / name / title
      Removed value: -"Name"
    • addedInput schema / properties / name / type
      Added value: +"string"
    • removedInput schema / properties / note / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / note / title
      Removed value: -"Note"
    • addedInput schema / properties / note / type
      Added value: +"string"
    • removedInput schema / properties / phone / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / phone / title
      Removed value: -"Phone"
    • addedInput schema / properties / phone / type
      Added value: +"string"
    • removedInput schema / properties / roles / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "enum": [
      -        "customer",
      -        "vendor"
      -      ],
      -      "type": "string"
      -    },
      -    "minItems": 1,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / roles / items
      Added value: +{
      +  "enum": [
      +    "customer",
      +    "vendor"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / roles / minItems
      Added value: +1
    • removedInput schema / properties / roles / title
      Removed value: -"Roles"
    • addedInput schema / properties / roles / type
      Added value: +"array"
    • removedInput schema / properties / salutation / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / salutation / title
      Removed value: -"Salutation"
    • addedInput schema / properties / salutation / type
      Added value: +"string"
    • addedInput schema / properties / shipping_address / $ref
      Added value: +"#/$defs/Address"
    • removedInput schema / properties / shipping_address / anyOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/Address"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / tax_number / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / tax_number / title
      Removed value: -"Tax Number"
    • addedInput schema / properties / tax_number / type
      Added value: +"string"
    • removedInput schema / properties / vat_registration_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / vat_registration_id / title
      Removed value: -"Vat Registration Id"
    • addedInput schema / properties / vat_registration_id / type
      Added value: +"string"
    • removedInput schema / properties / version / title
      Removed value: -"Version"
    • removedInput schema / title
      Removed value: -"update_contactArguments"
  2. Addedv0.8.4

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructiveHint=true and idempotentHint=true; the description adds context the annotations cannot, namely that this writes real accounting data and that unmentioned fields are preserved, which tempers how an agent should read the 'destructive' flag. It also discloses the response shape (id plus new version) despite there being no output schema. It does not explain the concrete destructive behavior (email/phone/roles replacement) that justifies destructiveHint=true.

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?

Five short sentences, front-loaded with the action and its key constraint, then the required read-first workflow, then the return value. Every sentence carries information the agent needs; nothing is padding.

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 13-parameter mutation tool with no output schema, the description covers the essentials: mutation semantics, the version/read-first prerequisite, and the return payload feeding the next call. What is missing is guidance on which fields are mutually exclusive (person vs company fields) and the exact nature of the destructive replacements, both of which are pushed entirely onto the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning on top: it frames all optional fields as a partial patch ('only the fields you give are changed') and explains that the returned `version` is the input for the next update, a round-trip fact the schema alone only half-conveys. It does not walk through the replace-vs-append semantics of email/phone/roles, but the schema already documents those explicitly.

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 states a specific verb and resource ('Change an existing contact') and immediately pins down the partial-update semantics ('Only the fields you give are changed'), which is exactly the distinction an agent needs between this and create_contact or a full-record replace. The referenced sibling get_contact further anchors what this tool is not.

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 gives an explicit prerequisite workflow: read with `get_contact` first because that read supplies the `version` this call needs, and quantifies the cost ('Two API calls'). It stops short of stating when not to use this tool (e.g. bulk changes, or that a brand-new contact requires create_contact), so it is clear but not exhaustive.

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