Skip to main content
Glama

Close account

purch_close_account
Destructive

Mark an account closed from a day, with a reason. It stays in the register and its statements stay; it leaves net worth from that day. Only when the person says it is closed. A closing balance that is not zero is named in the result, not refused: that money went somewhere worth recording. Effects: account closed from a day.

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>",
      "closed_on": "<closed_on>",
      "reason": "<reason>"
    },
    "name": "purch_close_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy, for the record.
closed_onYesThe day it closed. ISO date, YYYY-MM-DD.
account_idYesThe account. An existing purch_account id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well past the destructiveHint=true annotation by spelling out what survives ('stays in the register and its statements stay') and what changes ('leaves net worth from that day'). It also discloses non-obvious non-failing behavior: a non-zero closing balance is named in the result rather than refused, which an agent would otherwise not predict.

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?

The opening sentence is front-loaded and dense with the essentials. The trailing 'Effects: account closed from a day.' repeats what the first sentence and the annotations already establish, so one line is dead weight.

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 mutation with no output schema, the description covers the important ground: persistence of the record and statements, net-worth effect, and that surplus balance is reported rather than blocked. It omits authorization requirements and whether the action can be undone, which is the main remaining gap for a destructiveHint=true tool.

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 each parameter already carries a description, so the baseline is 3. The description adds a little semantic weight by framing closed_on as the day net-worth effect begins rather than merely a date, but it does not clarify reason format/length or what a valid account_id looks like beyond what the schema says.

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?

States a specific verb and resource ('Mark an account closed') plus the two shaping inputs (day, reason). It implicitly separates itself from purch_update_account by being about closure rather than editing, but never names that sibling, so an agent must infer the boundary.

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?

'Only when the person says it is closed' gives a real precondition that governs invocation, which is more than most mutation tools offer. It does not name alternatives (purch_update_account for correcting details, purch_add_account for a mistaken creation) or state whether closure is reversible.

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.