Skip to main content
Glama

Close agent account

stack_close_account
Destructive

Close an agent account. Its agent is refused at once, in-flight charges settle, then every piece is closed at its provider. Requires an account admin. Returns the account in its closing or closed 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>"
    },
    "name": "stack_close_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
account_idYesAgent account id (acct_*)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only say destructive/not-read-only; the description adds real semantics: the agent is refused immediately, in-flight charges settle before provider-side teardown, and the call returns a partially completed (closing) state. That sequencing plus the admin authorization requirement is exactly the behavior an agent needs before committing to an irreversible action.

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 the action, followed by consequence, prerequisite, and return shape in that order. No filler and nothing repeated from the schema or annotations.

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?

Covers action, side effects, authorization, and return state, which is strong for a single-parameter destructive tool with no output schema. It does not say what happens if the account is already closed or how an agent should poll out of the intermediate closing state, which are the remaining practical gaps.

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

Parameters3/5

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

Schema coverage is 100% and the sole parameter (account_id, acct_* format) is fully documented in the schema, so the description carries no additional parameter burden. It adds no format or constraint detail beyond the schema, which is the expected baseline here.

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 ("Close an agent account") and then defines what closing actually means at this provider (agent refused, charges settle, pieces closed). An agent can distinguish this high-level account-level close from per-piece or per-identity operations on the sibling list without opening a 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?

Gives a clear prerequisite ("Requires an account admin") and implies the operation is the account-level teardown as opposed to piece-level disconnects. It stops short of naming when to prefer close over retire/release-style siblings in the catalog, so the alternative routing is left implicit.

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.