Skip to main content
Glama

Preview schedule

preview-schedule
Read-onlyIdempotent

Generate a schedule from a definition without keeping it: the same generator and guards as creating one (block_type='schedule' on create-information-block), run and rolled back. Returns the envelope create would leave (its ids provisional) and the period-by-period roll-forward: the balance the schedule carries on the account it credits (a loan's: the note), opening, the period's amount, closing, and for a loan the interest, payment, principal and current portion. Show it to the person before asking to create. A definition create would refuse (a roll-forward that climbs where it should fall, legs that do not balance) is refused here with the period that breaks. warnings names any active schedule already posting the same accounts in the same months. With replaces_structure_id, replaces says what the schedule being edited or recreated has posted, by month, and the path the change takes: rebuild (the schedule regenerated in place from the new definition) while nothing has posted, terminate_and_succeed after.

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": {
      "name": "<name>",
      "element_ids": "<element_ids>",
      "period_start": "<period_start>",
      "period_end": "<period_end>",
      "entry_template": "<entry_template>"
    },
    "name": "preview-schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesSchedule name
entity_idNoThe entity whose books the schedule belongs to, by id. Omit for the group parent. Its facts, obligations and closing entries land in that entity's books, against that entity's own accounts.
period_endYesLast period end
element_idsYesCoA element ids the schedule touches (the `id` from get-unmapped-elements, not taxonomy qnames) — typically the same debit + credit ids used in entry_template.
taxonomy_idNoTaxonomy ID (auto-creates if omitted)
period_startYesFirst period start
closed_throughNoWatermark for onboarding. Facts with period_end ≤ this date are flagged 'historical' and their schedule_entry_due obligations are emitted 'voided', so the close workflow starts drafting at the first open period. Defaults to the calendar's history end: the last day of its closed_through month (calendar '2026-05' → '2026-05-31'), or the day before its first month when nothing has closed yet. An earlier date is raised to it, since an obligation there could never post; set a later one only to treat more months as already booked.
entry_templateYes
monthly_amountNoMonthly amount in cents. Required for a straight-line schedule; a custom or loan schedule takes its amounts from its curve.
schedule_metadataNo
replaces_structure_idNoThe schedule this definition would replace, when editing or recreating one: the preview then says what its posted entries mean for the change.
source_transaction_idNoFree-form reference to the originating GL transaction (e.g. an import ID, ledger entry ID, or external system key). Stored in artifact_mechanics for audit; no FK constraint.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, so the description doesn't need to re-establish safety; instead it adds real behavioral detail beyond them: validation failures are refused with the offending period, `warnings` reports overlapping active schedules, and `replaces` reports what has posted plus the rebuild vs terminate_and_succeed path. It stops short of covering pagination or how the provisional ids should be reused, but for a preview tool this is rich.

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 critical instruction ('Show it to the person before asking to create') sits mid-paragraph rather than up front, and the second sentence is a long dense list of return fields. Every sentence does carry information, but the return-shape detail could be trimmed or bulleted for faster scanning.

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?

For a 12-parameter nested-schema preview tool with no output schema, the description supplies the return shape, the failure mode, the warnings and the replace-path semantics — everything an agent needs to call it and interpret the result. Minor gaps: no explicit note that nothing is persisted as a side effect beyond 'without keeping it', and no guidance on what to do with the provisional ids.

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 83%, so the baseline is 3; the description goes further by naming the semantic roles of `replaces_structure_id` output (`replaces`, `rebuild`, `terminate_and_succeed`) and by explaining that an invalid roll-forward is rejected at the breaking period, which is meaning the schema cannot convey. The remaining parameters (e.g. source_transaction_id, closed_through) are left to their already-detailed schema 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?

States a specific verb and resource ('Generate a schedule from a definition without keeping it') and ties it to the sibling create path ('block_type=schedule' on create-information-block) as a dry run. It also spells out the return payload (envelope with provisional ids plus period-by-period roll-forward), so an agent can distinguish it from create/rebuild/terminate siblings immediately.

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?

Explicit when-to-use: 'Show it to the person before asking to create.' It also names the alternatives implicitly by equating itself to create-information-block minus persistence, and explains the replaces_structure_id path selection (rebuild vs terminate_and_succeed) so the agent knows which case it is in.

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.