Skip to main content
Glama

set_contract_parties

DestructiveIdempotent

Set ALL parties of a contract with their role — for multi-party contracts (a married couple as two tenants, a GbR plus its property manager, a group company plus a third party). Replaces the contract's party list (rows written by the folder import are replaced too). Required: contract_id, parties [{account_id | contact_id | name, role}] with role one of vermieter, mieter, auftraggeber, auftragnehmer, verwalter, vertreter, buerge, sonstige. account_id/contact_id must belong to this tenant; a party with only a name is kept as text. The contract's main counterparty (account_id/contact_id) is NOT changed — set it with update_contract. get_contract returns the list as parties.

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": {
      "contract_id": "<contract_id>",
      "parties": "<parties>"
    },
    "name": "set_contract_parties"
  }
}

Input Schema

NameRequiredDescriptionDefault
partiesYesAll parties of the contract: [{ account_id | contact_id | name, role }]; replaces the list
contract_idYesID of the contract

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / contract_id / description
      Added value: +"ID of the contract"
    • addedInput schema / properties / parties / description
      Added value: +"All parties of the contract: [{ account_id | contact_id | name, role }]; replaces the list"
    • addedInput schema / properties / parties / items / properties / account_id / description
      Added value: +"ID of the account (company)"
    • addedInput schema / properties / parties / items / properties / contact_id / description
      Added value: +"ID of the contact"
    • addedInput schema / properties / parties / items / properties / name / description
      Added value: +"Party name as text, when no account_id or contact_id is given"
    • addedInput schema / properties / parties / items / properties / role / description
      Added value: +"Role: vermieter, mieter, auftraggeber, auftragnehmer, verwalter, vertreter, buerge or sonstige"
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds important specifics: the entire party list is replaced, including rows written by the folder import, so the agent knows existing data will be overwritten. It also discloses validation behavior (account_id/contact_id must belong to this tenant) and that name-only parties are silently kept as text rather than rejected.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

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

Front-loaded with the purpose, then replacement semantics, then required-shape details, then the boundary against update_contract. It is dense but every sentence carries operational information; the repeated role list slightly duplicates the schema.

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?

For a two-parameter mutation with no output schema, the description covers replacement behavior, data loss scope, tenant ownership constraints, type-tagging of partial parties, the sibling to use for the counterparty, and how to verify the result via get_contract. Nothing an agent needs in order to call it correctly is missing.

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 would be 3; the description earns more by adding semantics the schema lacks — that account_id/contact_id must belong to the calling tenant, that a name-only party is persisted as plain text, and that the parties array is a full replacement rather than a merge. The role enumeration is repeated from the schema but serves as useful reinforcement.

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 parties of a contract with their role') and immediately scopes it to multi-party contracts with three concrete examples (married couple as tenants, GbR plus property manager, group company plus third party). It is clearly distinguished from update_contract, which is named as the tool for the main counterparty, and from get_contract, which reads the list back.

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?

The description gives clear context for use (multi-party contracts) and explicitly routes the main counterparty change to update_contract, which is a real exclusion boundary. It does not spell out when NOT to use this tool in a broader sense, but the alternative and the scope limit are both stated.

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.