Skip to main content
Glama

List journals still to post

well_list_unposted_journals
Read-only

List the transactions AND invoices of a fiscal period whose journal entry a posting retry can still clear on its own — the re-triggerable posting gap. An empty list with scan_truncated: false means no re-triggerable row remains in the rows scanned. That is NOT proof the period is posted: this read omits rows halted on a substantive reason a repost cannot clear (a missing ledger account, a tax gate, a locked period), so never declare the period posted on an empty read alone. If the close still reports an unposted blocker for this period, those rows need an accounting decision, not a re-trigger.

This is NOT the categorization surface. For a row that still needs a category or a ledger account, use well_list_unposted_transactions. This read carries only the rows that are ready to post and simply have not yet: the posting pipeline did not run. It never lists a row halted on a substantive reason (a missing ledger account, a tax gate, a locked period) — a retry only re-fails those, and the categorization and hydration steps own them.

Each row carries source_id, source_kind (transaction or invoice), name (the counterparty composite), amount, and period_date.

in_flight_processing: true means Well is still processing these rows — enrichment (classification, matching, re-extraction) is in flight, so wait and re-read rather than reposting. Re-read on the close's wait cadence until it is false; only then is the (i)-set settled enough to re-trigger. The paired write is well_repost_journals.

scan_truncated: true means the (i)-set was read from a bounded slice of the workspace's rows, not all of them. An empty list under this flag means "no re-triggerable row was found in the rows scanned", NOT "every row is posted" — do not tell the user the close can skip this step on a truncated empty read.

The period is named in FISCAL terms, and a workspace's fiscal calendar need not follow the calendar year. Take fiscal_year and fiscal_period from a well_list_periods entry, or from the months the user already selected this session; never derive them from a calendar month yourself.

success: false means the period is UNKNOWN, not clear. The read failed, so no count exists, and an empty records on a failed read is not "everything posted".

When the token authorizes one workspace, call this directly — no other tool call is needed first. When it authorizes several, this read will not guess which one you mean: pass workspace_id on the call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax rows to return.
fiscal_yearYesThe fiscal year of the period to read.
workspace_idNoTarget workspace. Omit when the token authorizes one workspace. Required when it authorizes several: this read reports one workspace's own figures and will not choose which.
fiscal_periodYesThe fiscal period, 1-12 for a month; 13 is the adjustment period and resolves to no rows.
conversation_idNoThe conversation id returned by the previous Well result, in its meta under well/conversation_id, in its structuredContent, or in its JSON text block. Pass it back on every call in the same conversation, including a call a card makes, so the chosen workspace and the earlier answers still apply. It decides the conversation on its own: nothing the host states about the session replaces it. Omit it only on the first call of a conversation.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
recordsYes
successYes
returnedNo
scan_truncatedYes
conversation_idNoThe conversation this result belongs to. Pass it back as the conversation_id argument on every later Well call in the same conversation.
resolved_workspaceNoThe workspace that answered, when the caller named none and the token authorizes several.
conversation_id_noteNoPresent only when the server opened a fresh lane, stating that no choice recorded earlier was read.
in_flight_processingYes
conversation_id_sourceNoWhere the conversation id came from: the host's own request meta, the caller's argument, or a fresh lane the server opened.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnlyHint and destructiveHint annotations, the description discloses critical behaviors: an empty read is not proof the period is posted, scan_truncated means only a bounded slice was read, success:false means the period is unknown, and rows halted on substantive reasons are intentionally omitted. These nuances materially change how an agent interprets results.

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 description is lengthy but front-loaded with the core purpose and the most dangerous misinterpretation, then uses bolded flags and short paragraphs to structure caveats. There is some repetition of the 'not proof posted' warning, but the redundancy reinforces a high-risk semantic and does not obscure the message.

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?

Given the tool's complexity, the description covers purpose, failure semantics, flags, sibling routing, workspace authorization behavior, paired write, and interpretation of empty results. The existence of an output schema and complete input-schema descriptions further reduce the burden, and nothing essential for correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaningful guidance beyond the schema: fiscal_year and fiscal_period must come from well_list_periods or session selections, never derived from calendar months, and workspace_id behavior is tied to token authorization. This exceeds the schema's parameter descriptions.

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 description states a precise verb and resource: it lists transactions AND invoices of a fiscal period whose posting gaps a retry can clear. It distinguishes itself from the sibling categorization surface, well_list_unposted_transactions, so an agent can tell exactly which tool to pick.

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?

Usage guidance is explicit: it names the alternative tool for categorization needs, identifies well_repost_journals as the paired write, instructs the agent to re-read on the close's wait cadence when in_flight_processing is true, and explains when to pass workspace_id based on token scope. This is direct, actionable routing guidance.

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