Skip to main content
Glama

Attach an account as a member

attach_account_as_member
DestructiveIdempotent

Staff only. Moves account B so its users become seats of account A. They keep their logins, seat ids and sessions and now land in A. B's numbers, SIMs, payments, wallet cash and credit join A; A's holds are never touched. Refused when the brands or currencies differ, a user is already on A, A's plan has no room for the seats, or a unique clash has no safe resolution. Pass source_consumer_user_id or source_consumer_id, and target_consumer_user_id or target_consumer_id. Optional role defaults to Account User. Without confirm it returns what would move and what blocks it. With confirm it runs in one transaction and is safe to repeat. Removing B's emptied consumer and legal account is a separate call with hard_delete and confirm, after the attach; B's users and seats are never deleted.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "attach_account_as_member"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNoRole on the target. Default Account User.
confirmNoRuns it.
hard_deleteNoRemove the emptied consumer and legal account. Needs a confirmed attach first.
idempotency_keyNoA repeat with the same key changes nothing.
source_consumer_idNoThe account that moves, instead of a seat.
target_consumer_idNoThe account they join, instead of a seat.
source_consumer_user_idNoA seat on the account that moves.
target_consumer_user_idNoA seat on the account they join.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the destructive/idempotent annotations it enumerates exactly what transfers (logins, seat ids, sessions, numbers, SIMs, payments, wallet cash, credit) and what is protected (A's holds are never touched). It discloses the transactional, repeat-safe execution and the specific reasons for refusal, which is what an agent needs before authorizing a destructive merge.

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?

One dense paragraph with no filler; the "Staff only" gate and the state transformation are front-loaded. It would read faster split into lines for the id pairing, the refusal list and the confirm behavior, but every sentence carries information.

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?

There is no output schema, and the description compensates by stating what the unconfirmed call returns (what would move and what blocks it). Combined with the transfer scope, refusal conditions and follow-up deletion note, nothing material is missing for an 8-parameter destructive merge.

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; the description earns above that by explaining the either/or semantics of the source and target id pairs, the role default, and the dry-run-versus-confirm behavior. It loses a point because hard_delete appears in this tool's schema yet the description frames removal as "a separate call with hard_delete and confirm," leaving it ambiguous whether that call is a second invocation of this same tool or a different one.

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?

"Moves account B so its users become seats of account A" names a concrete verb, both resources and the resulting state change. It is immediately distinguishable from sibling membership tools like invite_member or add_connected_account, which do not merge whole accounts.

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

Usage Guidelines5/5

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

It gates the tool ("Staff only"), states the required id pairing (source_consumer_user_id or source_consumer_id, and target_* likewise), and splits dry-run from execution via confirm. It also names the refusal conditions and points out that deleting B's emptied account is a follow-up call, so the agent knows this tool does not finish the job.

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.