Skip to main content
Glama

set_contact_accounts

DestructiveIdempotent

Replace the organisations of a person. Required: contact_id, links [{ account_id, function?, is_primary? }]. Exactly one link may be is_primary; if none is marked, the first becomes the main organisation. The main organisation is also written to the contact (account_id). links=[] removes all.

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>",
      "links": "<links>"
    },
    "name": "set_contact_accounts"
  }
}

Input Schema

NameRequiredDescriptionDefault
linksYesOrganisations of the person: [{ account_id, function?, is_primary? }]; [] removes all
contact_idYesID of the contact

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / contact_id / description
      Added value: +"ID of the contact"
    • addedInput schema / properties / links / description
      Added value: +"Organisations of the person: [{ account_id, function?, is_primary? }]; [] removes all"
    • addedInput schema / properties / links / items / properties / account_id / description
      Added value: +"ID of the account (company)"
    • addedInput schema / properties / links / items / properties / function / description
      Added value: +"The person's function or job title in this organisation"
    • addedInput schema / properties / links / items / properties / is_primary / description
      Added value: +"Marks this organisation as the person's main organisation (at most one)"
  2. First observed

TDQS

A4.3/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 real behavioral context beyond them: the replacement destroys prior links, and the main organisation is also written back to the contact record as account_id — a cross-resource side effect an agent could not infer. It stops short of covering failure modes, such as what happens with unknown account_ids or invalid primary counts.

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?

Four short sentences, front-loaded with purpose and requirements, then constraints and edge-case behavior. Every sentence carries information an agent needs; no filler or restatement of the title.

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 destructive mutation with no output schema, the definition covers purpose, constraints, defaults, and side effects well enough to call it correctly. Minor gaps remain: no mention of validation/failure behavior for bad account_ids or what the response contains after a successful replacement.

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

Parameters5/5

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

Schema coverage is 100%, so baseline would be 3, but the description adds genuinely new semantics: the exactly-one-primary constraint, the default that the first link becomes primary when none is marked, the empty-array semantics, and the derived write to contact.account_id. These are rules not expressible in the schema's field descriptions.

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 with scope: 'Replace the organisations of a person'. The word 'Replace' (as opposed to add/update) plus the 'links=[] removes all' clause makes the semantics unambiguous and clearly distinct from read-only siblings like list_contact_accounts.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the description makes clear this is a full-set replacement operation rather than an incremental edit, which is valuable scoping. However, it never names an alternative (e.g. update_contact or list_contact_accounts to inspect current links) or states when not to use it.

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.