Skip to main content
Glama

wariwari

Merge two members

merge_members
Destructive

Use this when two members are the same person. participantToken is the duplicate: their expenses and payments move to intoParticipantToken and the duplicate is removed. expectedRevision is the duplicate's lockVersion from get_group. This cannot be undone.

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": {
      "groupToken": "<groupToken>",
      "participantToken": "<participantToken>",
      "expectedRevision": "<expectedRevision>",
      "intoParticipantToken": "<intoParticipantToken>"
    },
    "name": "merge_members"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupTokenYesThe group's token, from `listGroups` or `listSearchResults`.
expectedRevisionYesThe `lockVersion` the client last saw on the record it is changing. A mismatch is `409 CONFLICT` with the record as the server now has it.
participantTokenYesThe member's token, from `showGroup`.
intoParticipantTokenYesWinner participant token.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / $defs / Token / description
      Previous value: -"Resource token. 24 characters of base58 (`SecureRandom.base58(24)` —\nthe alphabet excludes the visually-confusable `0`, `O`, `I`, `l`).\nTokens are stable across edits. Most public resources receive a\nserver-generated token on creation; group creation may also accept\nclient-supplied participant tokens for offline/import flows.\n"New value: +"Resource token: 24 base58 characters (the alphabet leaves out the\nlook-alikes `0`, `O`, `I` and `l`). A token never changes. The server\ngenerates one when a create sends none; a client may choose its own for a\ntransaction, participant, category or recurring expense, so a write queued\noffline already knows the token it will have.\n"
    • addedInput schema / properties / expectedRevision / description
      Added value: +"The `lockVersion` the client last saw on the record it is changing. A mismatch is `409 CONFLICT` with the record as the server now has it."
    • addedInput schema / properties / groupToken / description
      Added value: +"The group's token, from `listGroups` or `listSearchResults`."
    • removedInput schema / properties / into
      Removed value: -{
      -  "allOf": [
      -    {
      -      "$ref": "#/$defs/Token"
      -    }
      -  ],
      -  "description": "Winner participant token."
      -}
    • addedInput schema / properties / intoParticipantToken
      Added value: +{
      +  "allOf": [
      +    {
      +      "$ref": "#/$defs/Token"
      +    }
      +  ],
      +  "description": "Winner participant token."
      +}
    • addedInput schema / properties / participantToken / description
      Added value: +"The member's token, from `showGroup`."
    • changedInput schema / required
      Previous value: -[
      -  "groupToken",
      -  "participantToken",
      -  "expectedRevision",
      -  "into"
      -]New value: +[
      +  "groupToken",
      +  "participantToken",
      +  "expectedRevision",
      +  "intoParticipantToken"
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description goes further by specifying exactly what data is relocated (expenses and payments), that the source member is deleted, and that the operation is irreversible. It also ties expectedRevision to a lock, so an agent understands the conflict failure mode before calling.

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, each carrying distinct information, with the usage trigger front-loaded and the irreversibility warning placed last for emphasis. No restatement of the name or 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 destructive merge with four required parameters and no output schema, the description covers trigger, data movement, deletion, lock requirement, and irreversibility. It omits permission requirements and edge cases such as what happens to the duplicate's pending invitations, which keeps it from a 5.

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?

With 100% schema coverage the baseline is 3, but the description adds real meaning: it assigns roles to the two tokens (participantToken is the duplicate, intoParticipantToken is the survivor) and states that expectedRevision must come from the duplicate's lockVersion. Minor inconsistency in referencing 'get_group' while the schema cites 'showGroup' for the token source slightly muddies the mapping.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource and immediately defines the semantics: the two members are the same person, expenses and payments move, and the duplicate is removed. It never names a sibling, so an agent must infer that this is not the same as claim_member or add_member, which keeps it short of a 5.

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?

'Use this when two members are the same person' gives a clear trigger condition that an agent can evaluate against group state. There is no explicit when-not clause or named alternative for the adjacent case (merging vs. claiming a member), so it stops at 4.

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