Skip to main content
Glama

Octobooks

Ask to lock a period

close_request
Destructive

Lock a period (YYYY-MM). Its release is asked for at once: under My AI decides with the owner's switch AI sets lock dates on (the default) it is locked now, against the checklist as it stands; otherwise it waits on the approval page. Refused while the lock of that period already waits. up_to=true asks for every open month up to and including period in one go, empty months too (a lock date), each released oldest to newest. unlock=true opens period and every later locked month again with reason, at once (the connected AI may unlock while the owner's switch 'AI may unlock a period' on the page Month end is on, as it is unless the owner switched it off; no UK or German law asks for a period lock, entries stay unchangeable either way; a closed fiscal year stays locked). withdraw=true with pending_action_id withdraws a request of this connection. The close checklist report lists the warnings that stand before a close.

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": {
      "period": "<period>",
      "reason": "<reason>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "close_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
up_toNo
periodYes
reasonYes
unlockNo
companyNo
withdrawNo
idempotency_keyYes
pending_action_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and non-idempotent, and the description adds substantial context beyond that: what happens immediately vs. deferred to approval, the refusal when a lock is pending, that unlock reopens the period and every later locked month, that a closed fiscal year stays locked, and that entries remain unchangeable regardless. The disclosure is genuinely useful for a destructive tool, though the tangled phrasing around the owner switches makes the authorization model hard to follow.

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

Conciseness2/5

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

The content is dense with real information, but it arrives as one run-on paragraph with tangled parentheticals ('under My AI decides with the owner's switch AI sets lock dates on (the default) it is locked now'). The default and exception paths are buried rather than front-loaded, forcing the agent to re-parse the authorization rules.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and the description covers the major mode behaviors of this destructive 8-parameter tool. However, with zero schema coverage it should also account for company and the mandatory idempotency_key, and it never states that the key deduplicates retries despite idempotentHint=false.

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 description coverage is 0%, so the description carries the full burden for 8 parameters. It explains period's YYYY-MM format, up_to's 'every open month up to and including period' semantics, unlock's cascade to later months, and withdraw's pairing with pending_action_id, but leaves company and the required idempotency_key entirely unexplained, and only implies reason's role.

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?

The description opens with a specific verb and resource — 'Lock a period (YYYY-MM)' — and then enumerates its variants (immediate lock, up_to, unlock, withdraw). An agent can tell this is the period-locking tool and not a report or year-close tool, though the garbled clause 'Its release is asked for at once' briefly obscures whether the tool locks or merely requests a lock.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives real usage conditions — locking happens immediately when the owner's AI switch is on, otherwise it waits on the approval page; it is refused while a lock already waits; up_to, unlock and withdraw each have stated triggers. What is missing is explicit routing against siblings: month_close, year_close_request, release and lock_date are never named, and the checklist report is referred to only obliquely as 'The close checklist report'.

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.

Resources