Skip to main content
Glama

delimit_ledger_health

Run a one-shot ledger health check returning totals, P0 status, stale items, duplicates, garbage, and overall health with pre-formatted next actions for AI agents. Read-only, for session start or nightly review.

Instructions

One-shot ledger health check — totals + P0 + stale + duplicates + garbage.

When to use: at session start (orchestrator session ritual) or nightly review to get a traffic-light verdict on the ledger. When NOT to use: to apply changes (use delimit_ledger_bulk) or inspect a single item (delimit_ledger_query).

Sibling contrast: delimit_ledger_groom proposes archives; delimit_ledger_context returns top-5 open; this composes them into a one-shot health verdict with pre-formatted next_actions.

Side effects: read-only. Internally calls list_items + groom + P0 quota helpers.

LED-1145 capstone — closes the loop on the entire ledger-tooling refactor. Designed for nightly/weekly review or session-start status snapshot. Returns:

  • totals (unresolved / open / in_progress / blocked)

  • p0 (count vs quota + health)

  • stale (count >stale_days + health)

  • duplicates (group count + total items + health)

  • garbage_venture (count + health)

  • overall_health (worst-of: green / yellow / red)

  • next_actions: pre-formatted list of {reason, tool, args, follow_up}

All Phase 1+2 tools are referenced in the suggested actions, so the response is self-contained for an AI agent that wants to act on it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ventureNoproject name or path. Auto-detects if empty.
stale_daysNostale-detector threshold passed to groom_proposal.
dup_min_countNoduplicate-detector threshold passed to groom_proposal.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

No annotations are provided, so the description carries full burden. It declares read-only, details internal calls (list_items, groom, P0 quota helpers), and comprehensively describes the return structure, including overall_health and next_actions.

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 well-structured with a succinct summary, usage guidelines, sibling contrast, and detailed return fields. It is somewhat lengthy but each sentence adds value. Slightly verbose but effective.

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 complexity (3 parameters, output schema exists), the description covers the return values comprehensively—totals, P0, stale, duplicates, garbage_venture, overall_health, and next_actions. It provides a complete picture for an AI agent.

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 baseline is 3. The description adds context: venture auto-detects, stale_days and dup_min_count are thresholds passed to groom_proposal. This adds meaning beyond the schema.

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 explicitly states 'One-shot ledger health check — totals + P0 + stale + duplicates + garbage,' clearly specifying the verb and resource. It contrasts with sibling tools like delimit_ledger_groom and delimit_ledger_context, making the purpose unambiguous.

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 description provides explicit guidance: use 'at session start (orchestrator session ritual) or nightly review' and not for changes (use delimit_ledger_bulk) or single item inspection (delimit_ledger_query). It also contrasts with sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/delimit-ai/delimit-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server