Skip to main content
Glama

Close the books

gl_close_period
Destructive

Close the books through a day: the period's journal is kept as it stands, and its figures stop moving. Later changes land as corrections in the next open period. HUMAN-ONLY: this act is refused to you whatever your role — Closing the books is the person's or the accountant's sign-off on what the period says. Ask your human to do it. Refused to you whatever your role. Show the person the checklist (gl_checklist): what blocks the close and what is open. They close it in the app. Effects: period closed; its journal kept with its totals and a hash.

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": {
      "through": "<through>",
      "reason": "<reason>"
    },
    "name": "gl_close_period"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhat the close is: "September close, reviewed with Dana".
throughYesThe last day of the period being closed. ISO date, YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Adds real context beyond the destructiveHint=true annotation: later changes land as corrections in the next open period, the journal is preserved with totals and a hash, and the call is refused regardless of role. It does not say what error/response the refusal produces, which keeps it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The refusal is front-loaded appropriately, but it is stated three times ('HUMAN-ONLY... refused to you whatever your role', 'Refused to you whatever your role', 'They close it in the app') — one of those repetitions could be cut without losing meaning.

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?

Given a destructive, non-idempotent, human-only mutation with full schema coverage and no output schema, the description covers effects, the refusal, and the correct human workflow. Minor gap: it doesn't describe what happens procedurally if an agent invokes it anyway (error shape or next step).

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 description adds nothing about `through` or `reason` beyond what the schema already documents in detail. Baseline 3 applies since the schema does the work.

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 first sentence names the verb and resource (close the books through a day) and defines the resulting state (journal kept as it stands, figures stop moving). It is unmistakable against siblings like gl_checklist, gl_closes, and gl_reopen_period.

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?

Explicitly states the agent must not call it under any role and routes to the alternative workflow: show the human gl_checklist, and they close it in the app. No inference required about when to use versus avoid.

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.