Skip to main content
Glama

Get period close status

get-period-close-status
Read-onlyIdempotent

Get an overview of what schedule-derived work has been done for a fiscal period.

WHEN TO USE:

  • At the start of a close session to see what's pending

  • After creating entries to verify progress

  • To generate a close summary for the user

  • To read the receipt after close-period — including when it handed back status: "in_progress" and the close is still finishing on the worker

PARAMETERS:

  • period_start / period_end (required): The fiscal period dates

  • entity_id (optional): the entity whose schedules to read; omit for the group parent

RETURNS:

  • Period status (open/closed)

  • close_receipt: what the close recorded about itself — entries posted, the QuickBooks/local split, statements stamped, rule outcomes. Null while the period is open, and for months closed before receipts were persisted

  • List of schedules with their status (pending/drafted/posted) and amounts

  • Count of draft and posted entries

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_start": "<period_start>",
      "period_end": "<period_end>"
    },
    "name": "get-period-close-status"
  }
}

Input Schema

NameRequiredDescriptionDefault
entity_idNoThe entity whose books this acts on, by id (get-graph-info lists them). Omit for the group parent.
period_endYesFiscal period end date (YYYY-MM-DD)
period_startYesFiscal period start date (YYYY-MM-DD)

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 already declare readOnly/idempotent/non-destructive/closed-world, and the description goes well beyond them: close_receipt is null while the period is open and for months closed before receipts were persisted, and the tool remains readable while a close is still finishing on the worker. Those are exactly the edge cases an agent would otherwise misread as errors.

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?

Front-loaded one-line purpose followed by labeled WHEN TO USE / PARAMETERS / RETURNS sections makes it scannable. There is minor duplication between the parameter block and the already-complete schema, but no filler prose.

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?

With no output schema, the description carries the return contract itself and does so thoroughly: period status values, receipt contents and its null conditions, per-schedule statuses with amounts, and draft/posted counts. An agent can call it and interpret the result without further information.

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's parameter block largely restates it, including 'omit for the group parent' which is already in the entity_id schema text. It adds only the grouping framing (period_start/period_end as 'the fiscal period dates'), so the baseline 3 applies.

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 — 'Get an overview of what schedule-derived work has been done for a fiscal period' — and immediately scopes it to schedule-derived work plus close receipts. That framing distinguishes it from sibling reads like get-trial-balance or list-period-drafts without needing the 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?

The WHEN TO USE block gives four concrete trigger scenarios (start of close, post-entry verification, summary generation, post-close receipt read) and even covers the tricky in_progress case. It never names a sibling as an alternative or states when not to use it, which keeps it short of a 5.

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.