Skip to main content
Glama

pg_ledger

Track and update cross-window project progress, approved goals/files, decisions, pitfalls, and browser session bindings in a shared task ledger for coordinated AI coding.

Instructions

Read or update the cross-window per-project task blackboard (SESSION_LEDGER.md) with progress, Grill-Me execution contract (approved_goal/approved_files/non_goals), pending decisions, pitfalls, and browser session bindings.

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": {
      "op": "<op>"
    },
    "name": "pg_ledger"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes
goalNo
projectNo
pitfallsNo
completedNo
non_goalsNo
last_actionNo
current_stepNo
approved_goalNo
done_criteriaNo
approved_filesNo
browser_channelNo
browser_sessionNo
pending_decisionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.7.1

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses the domains written into the ledger, which is useful, but says nothing about update semantics (merge vs overwrite of fields, what stale entries persist), whether reads are safe/non-mutating, concurrency behavior across windows, or what the response contains for each op.

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?

A single front-loaded sentence that leads with the action and the resource before listing content domains. Dense but free of filler; the parenthetical file name and grouped contract fields are efficient. Slightly overloaded for one sentence, which is why it is not a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 14-parameter, three-mode tool with no annotations and no output schema, one sentence is thin. Missing are mode-specific behavior, mutation semantics, return shape, and the meaning of write-only fields. The description is a reasonable orientation but not sufficient to call the tool correctly on the first attempt.

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 description coverage is 0% across 14 parameters, so the description must compensate. It does partially: it maps pitfalls, pending_decisions, approved_goal/approved_files/non_goals, and browser session bindings to actual fields, and loosely implies progress/completed. However, op semantics (including the undocumented list_projects value), project, goal, done_criteria, current_step, last_action, and browser_channel remain unclarified.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description pairs a specific verb ('Read or update') with a concrete resource: the cross-window per-project task blackboard stored in SESSION_LEDGER.md, and enumerates the content domains it holds. An agent can form a clear picture of what the tool touches. It stops short of distinguishing itself from plausible siblings like pg_project_task or pg_memory, leaving overlap ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

'Cross-window per-project' hints at the use case (shared state across windows), but there is no explicit when-to-use statement, no when-not-to-use, and no named alternative among the many pg_* state tools. The description also never mentions the list_projects mode that the op enum exposes, so an agent gets no guidance on choosing between read, update, and listing projects.

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