Skip to main content
Glama

Open agent account

stack_open_account

Open an agent account: a new agent with its Passport, a standing Mission, and its pieces (inbox, phone, models, tools, workspace, browser, card, wallet; skip leaves out optional ones). Requires an account admin; opens at once, with no approval. Prepaid credit is the account's limit; monthly_budget_cents is an optional per-agent limit and needs controls (BUDGET_NEEDS_CONTROLS otherwise). A repeated call with the same idempotency key and the same request returns the same account. Returns the account with each piece's state: pending, ready, paused, failed, closing or closed. For a wallet, agent_public_key is the public half of a P-256 key the agent generated itself. When refused CONTROL_DENIED with reason review_required, ask again with the same input and control_ref set to the ref once the owner approved.

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": {
      "name": "<name>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "stack_open_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
skipNo
inboxNo
phoneNo
walletNo
control_refNoThe ref of a refusal that held this action for the owner, sent as X-Control-Ref once the owner approved it; omit on the first request
descriptionNo
idempotency_keyYesStable key for this exact request. A repeated call with the same key and request returns the same account.
monthly_budget_centsNo
governance_approval_idNoAccepted for older callers and sent as X-Governance-Approval; opening an account asks for no approval.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare it is a non-read-only, non-destructive, closed-world write; the description adds what is created, that admin rights are needed, that no approval gate exists, that prepaid credit is the hard limit with BUDGET_NEEDS_CONTROLS as the failure mode, and that idempotent retries return the same account. Return-state vocabulary (pending, ready, paused, failed, closing, closed) is disclosed despite no output schema. Only the exact refusal/error surface beyond BUDGET_NEEDS_CONTROLS and CONTROL_DENIED is left implicit.

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?

Dense but front-loaded: creation scope first, then prerequisites, limits, idempotency, return states, and the refusal flow. Every clause carries information, though the idempotency sentence restates the idempotency_key schema description and the P-256 key sentence could be tightened.

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 10-parameter mutation with nested objects and no output schema, the description covers prerequisites, limits, idempotency, error codes, retry-after-approval behavior, and the shape of the returned piece states. Little 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 only 30% across 10 parameters (several nested), so the description has to compensate and largely does: it explains skip as opting out of optional pieces, monthly_budget_cents as an optional per-agent limit that requires controls, idempotency_key as a same-request/same-result key, control_ref as the retry token after owner approval, and agent_public_key as a self-generated P-256 public key. It leaves name, description, inbox.domain, phone country/area_code/number_type and the wallet caps to the schema.

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 ("Open an agent account") and immediately enumerates what gets created: a Passport, a standing Mission, and named pieces (inbox, phone, models, tools, workspace, browser, card, wallet). That level of detail lets an agent distinguish it from account-lifecycle siblings like stack_register_agent or stack_setup_agent without opening another schema.

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 prerequisites ("Requires an account admin"), the approval posture ("opens at once, with no approval"), and a concrete retry procedure for CONTROL_DENIED with reason review_required. It does not say when to choose this over sibling creation tools, which is the only gap.

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.