Skip to main content
Glama

List period drafts

list-period-drafts
Read-onlyIdempotent

List all draft closing entries in a fiscal period with full line item detail.

WHEN TO USE:

  • After drafting closing entries, BEFORE calling close-period

  • When the user asks "what's pending" or "show me the drafts"

  • To review exactly what will be committed on close

WORKFLOW:

  1. Draft entries come into being two ways — there is no create-closing-entry tool:

    • Schedule-derived (depreciation, amortization, prepaid roll-off): call promote-obligations to draft every matured schedule entry for the period in one sweep (the on-demand form of the background promoter), or create-event-block(event_type='schedule_entry_due') to draft a single schedule's entry.

    • Manual adjustments: create-event-block(event_type='journal_entry_recorded').

  2. Use this tool to review every draft with DR/CR detail

  3. Summarize to the user — total debits/credits, balance check, per-schedule amounts

  4. close-period posts these drafts and closes the period atomically

PARAMETERS:

  • period: YYYY-MM format (e.g., "2026-03")

  • entity_id (optional): the entity whose drafts to list; omit for the group parent

RETURNS:

  • draft_count, total_debit, total_credit, all_balanced

  • drafts: full list with entry_id, posting_date, memo, source schedule name, line items (element name/code, debit/credit in cents), per-entry balance check

  • will_publish_to_qb (per draft): whether closing the period will publish this draft to QuickBooks (vs. post locally only)

  • qb_publish_count / local_only_count: how many drafts publish to QuickBooks on close vs. post locally only

  • qb_writeback_connection_id / qb_write_policy: the QB connection close would publish to, or null when the graph has no qb_authoritative/hybrid QB connection

NOTES:

  • Read-only — no side effects, safe to call repeatedly

  • Returns an empty list if no drafts exist for the period

  • This tool's line amounts are integer cents (divide by 100 for dollar display). Graph queries (read-graph-cypher) return dollars; never apply this conversion to them

  • This is the close-review outbox: surface will_publish_to_qb + the qb_publish_count/local_only_count summary so the user sees what close will write to QuickBooks before committing

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>"
    },
    "name": "list-period-drafts"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodYesFiscal period in YYYY-MM format
entity_idNoThe entity whose books this acts on, by id (get-graph-info lists them). Omit for the group parent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover readOnlyHint/idempotent/destructive, but the description adds real behavior beyond them: empty-list behavior, integer-cents units with an explicit warning not to apply the conversion to read-graph-cypher output, and the QuickBooks writeback semantics (will_publish_to_qb, qb_publish_count/local_only_count) plus the framing of the result as a close-review outbox. No contradiction with the annotations.

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?

Purpose is front-loaded and sections are labeled and scannable, but the workflow section spends several lines on how drafts come into existence, which belongs to the sibling drafting tools, and 'read-only, no side effects' partially duplicates annotations. Still ordered well with little true filler.

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 fully documents return fields (draft_count, totals, balance flag, per-draft line items and balance check, QB publish fields) and the cents-vs-dollars caveat. For a two-parameter read tool this leaves nothing an agent needs to call or interpret it correctly.

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 PARAMETERS section essentially restates the schema (YYYY-MM period, optional entity_id omitted for the group parent). It confirms the semantics but adds no meaning the schema does not already carry, so 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 (list draft closing entries in a fiscal period) with explicit scope: 'full line item detail' and per-entity vs group parent. It clearly separates itself from close-period, list-journal-entries and the drafting tools, so an agent can identify it without opening 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 Guidelines5/5

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

The WHEN TO USE block gives three concrete trigger conditions ('what's pending', post-drafting pre-close, review before commit) and the workflow names the alternatives that create drafts (promote-obligations vs create-event-block) and explicitly states no create-closing-entry tool exists. This is exactly the when/when-not/alternatives guidance the dimension rewards.

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.