Skip to main content
Glama

plainhub_ledger_init

Idempotent

Creates a shared .agents ledger in a Git repository so AI agents and people can leave Markdown notes and decision cards; run once before the first post.

Instructions

Start a ledger: shared notes where AI agents and people leave messages and decision cards as Markdown files in .agents of a Git repository. Creates .agents/room.md (the language people read) and .agents/schema.md (the core rules) in the ledger in the repository folder set by the PLAINHUB_LEDGER environment variable (if not set, the folder the server was started in). Never overwrites existing files. Returns a link that opens .agents in PlainHub once it is pushed, or what to do first if the repository is not on GitHub. Use it once, before the first plainhub_post, in a repository that has no .agents folder yet. Example: {"language": "en"} (use the language the user writes to you in).

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": "plainhub_ledger_init"
  }
}

Input Schema

NameRequiredDescriptionDefault
languageNoBCP 47 language tag for summaries and bodies, e.g. en, ja, pt-BR (default en)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.8.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations it discloses that existing files are never overwritten, that the write target is resolved from PLAINHUB_LEDGER or the server's start folder, and that the return value is a PlainHub link or fallback instructions when the repo isn't on GitHub. These details are consistent with idempotentHint=true and destructiveHint=false and add real operational context.

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?

It is front-loaded with purpose, then target paths, then behavior, then usage and an example — a sensible order. It is a long paragraph with several nested clauses; splitting the creation targets from the usage rule would make it easier to scan, but little is genuinely redundant.

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?

For a single-optional-parameter setup tool with no output schema, everything needed is present: where files go, which files appear, non-overwrite behavior, return value, and the one-time ordering constraint. Nothing an agent needs to call it correctly 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 language parameter is already documented. The description still adds value by giving a concrete example invocation and the selection heuristic 'use the language the user writes to you in', which goes beyond the schema's BCP 47 note.

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 names a specific verb and resource ('Start a ledger') and immediately defines what a ledger is: Markdown message/decision files under .agents in a Git repository. It concretely states the artifacts created (.agents/room.md, .agents/schema.md), which distinguishes it from plainhub_post and the other ledger_* siblings.

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?

It gives an explicit precondition and ordering rule: 'Use it once, before the first plainhub_post, in a repository that has no .agents folder yet.' That tells the agent both when to invoke it and when not to, and implicitly routes subsequent posting to plainhub_post.

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