Skip to main content
Glama

Promote obligations

promote-obligations
Idempotent

Promote matured pending schedule obligations (schedule_entry_due events whose period boundary has passed) to 'classified', and — when dispatch_handlers=true (default) — draft their closing entries in the same transaction. Also reaches stranded obligations: events already 'classified' (by an earlier flip-only sweep) whose closing entry was never drafted are dispatched in the same pass, and reported via stranded_count. This is the on-demand form of the background obligation-promotion sweep; run it before close-period when a schedule was just created or when you can't wait for the Dagster sensor. Idempotent: re-running skips already-classified obligations and reconciles to existing drafts.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "promote-obligations"
  }
}

Input Schema

NameRequiredDescriptionDefault
dispatch_handlersNoWhen True (default), also fire the schedule_entry_due handler for each promoted obligation so the draft closing entry materializes immediately (autopilot). When False, flip status only (co-pilot) — the draft is created separately.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare non-read-only, idempotent, non-destructive, closed-world, but the description adds substantial behavior beyond them: drafting happens in the same transaction, stranded obligations are swept and surfaced via stranded_count, and re-runs skip classified obligations while reconciling to existing drafts. That is exactly the operational detail an agent needs before triggering a mutating sweep.

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?

Well front-loaded — the core action and default flag appear in the first clause, with the stranded-obligation edge case and idempotency after it. Slightly dense and partially duplicative of the schema's own description text, but no filler sentences.

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?

With no output schema, the description helpfully names stranded_count as a reported result, but it does not mention what else the response contains (e.g., a promoted count) or what a no-op run returns. Otherwise complete for a single-optional-parameter, zero-required-argument tool.

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 single parameter's autopilot/co-pilot semantics are already fully documented in the schema. The description only restates the default and confirms the same-transaction drafting effect, which is a modest addition over structured data. Baseline 3 is appropriate.

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 (promote) and precise resource (matured pending schedule obligations / schedule_entry_due events whose period boundary has passed), then extends the scope to stranded already-classified obligations. An agent can distinguish this from the background Dagster sensor and from close-period 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?

Explicit when-to-use: 'run it before close-period when a schedule was just created or when you can't wait for the Dagster sensor.' It names the automated alternative (sensor tick) and the sequencing relative to close-period, so the routing decision is unambiguous.

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.