Skip to main content
Glama

Add piece to agent account

stack_add_account_piece

Add one piece (inbox, phone, wallet, browser, card, making or workspace) to an agent account that was opened without it, with the same options and the same charges as stack_open_account: an inbox needs a verified own domain when inbox.domain is given, and an inbox beyond the one included needs the wallet to hold its first month (INSUFFICIENT_BALANCE otherwise); a phone number waits for a qualifying top-up; a wallet needs wallet.agent_public_key. Requires an account admin; an agent session is refused. Not metered as an action. A repeated call with the same idempotency key and request returns the account; a piece the account already has (in any state) is a 409, and so is a closed account. Returns the account with each piece's state.

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": {
      "account_id": "<account_id>",
      "piece": "<piece>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "stack_add_account_piece"
  }
}

Input Schema

NameRequiredDescriptionDefault
inboxNo
phoneNo
pieceYes
walletNo
account_idYesAgent account id (acct_*)
idempotency_keyYesStable key for this exact request. A repeated call with the same key and request returns the same account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description discloses charges parity with stack_open_account, funding preconditions per piece type, the exact failure code (INSUFFICIENT_BALANCE), 409 semantics for already-present pieces and closed accounts, and that the call is not metered. It also explains idempotency replay behavior, which annotations cannot express.

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 purpose and zero filler, but the body is one long semicolon-chained sentence that mixes preconditions, error codes, and idempotency in a single breath. It is dense and re-readable rather than skimmable, which costs it a point despite every clause being substantive.

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 nested-object mutation with no output schema, it covers preconditions, per-piece requirements, error codes, idempotency, and the return value ('the account with each piece's state'). The remaining gap is the optional wallet cap and phone selection parameters, which are neither described nor documented in 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?

With only 33% schema description coverage, the description carries real weight: it explains that inbox.domain must be a verified own domain, that wallet.agent_public_key is required, and that a phone waits for a qualifying top-up. It leaves area_code, number_type, per_payment_cap_usdc and daily_cap_usdc undocumented in both schema and description, so the compensation is strong but incomplete.

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 opens with a specific verb and resource ('Add one piece ... to an agent account') and enumerates the exact piece types (inbox, phone, wallet, browser, card, making, workspace). It also pins the scope to accounts 'that was opened without it', which separates it from stack_open_account for an agent reading only descriptions.

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 states the condition for use (account opened without the piece), the reference point for options and charges (stack_open_account), and hard prerequisites ('Requires an account admin; an agent session is refused'). It does not address the nearest alternative, stack_resume_account_piece, so the agent must infer which of the two to pick when a piece exists in a non-active state.

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.