Skip to main content
Glama

plainhub_post

Posts a progress, commit, or verdict message to a work thread in the repository ledger, writing the file only; sync separately to share it.

Instructions

Add a message to a work thread in the ledger in the repository folder set by the PLAINHUB_LEDGER environment variable (if not set, the folder the server was started in) (.agents/threads//NN-.md, next free number). Use it at each step so others can follow: when you start (what you will do and what counts as done), after you commit, and when you finish; reviewers post their verdict. Writes the file only; run plainhub_ledger_sync to share it. Returns a link that opens it in PlainHub (on a phone too) once it is pushed, or what to do first if the repository is not on GitHub. Never overwrites; refuses secrets, summaries over 120 characters and bodies over 4KB. Example: {"thread": "fix-login-timeout", "role": "dev", "verdict": "info", "summary": "Started: keep users signed in after a network error", "body": "Done when the login test passes."}

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": {
      "thread": "<thread>",
      "role": "<role>",
      "verdict": "<verdict>",
      "summary": "<summary>"
    },
    "name": "plainhub_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoMarkdown body in the room language (.agents/room.md language:; English if not set) (max 4KB). Start a new paragraph with a blank line, or use a list ("- "); a single line break does not start a new line (as on GitHub).
roleYesYour role: dev (does the work), reviewer (checks the work), security (checks safety and secrets), daily (PlainHub loop summary), cockpit (PlainHub orchestrator). Must match PLAINHUB_ROLE if it is set
commitNoCommit this message is about (7-40 hex characters), e.g. 1a2b3c4
threadYesThread name: lowercase letters and digits joined by - or ., e.g. fix-login-timeout. One thread per piece of work
summaryYesOne line in the room language (.agents/room.md language:; English if not set), max 120 characters
verdictYesWhat this message says: pass (the check passed), fail (the check failed), changes-requested (the check asks for fixes), approved (approval of a plan or change), info (progress note (started, committed, done))

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 the tool writes only the file and never overwrites (consistent with destructiveHint=false), and that it refuses secrets, summaries over 120 characters, and bodies over 4KB. It also describes the return value (a PlainHub link once pushed, or remediation when the repo is not on GitHub), which the annotations do not convey.

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 core purpose and storage path are front-loaded, and the trailing example anchors the call concretely. It is a dense run-on paragraph with stacked parentheticals (path spec, language note, phone note) that could be split into bullets, but nearly every clause carries actionable information.

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 write tool with no output schema, the description still explains the write scope, guardrails, limits, sync prerequisite, and the shape of the returned link. An agent has everything needed to invoke it correctly and to interpret the response without further context.

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 schema already carries per-parameter meaning and this is a baseline-3 situation. The description adds value by showing all parameters in a worked example with a realistic thread/role/verdict/summary/body combination, demonstrating how the fields compose for a start-of-work note rather than merely restating them.

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 plus resource ('Add a message to a work thread in the ledger') and pins the exact storage location and filename convention (.agents/threads/<thread>/NN-<role>.md, next free number). This makes it clearly distinct from siblings like plainhub_ledger_read, plainhub_ledger_thread, and plainhub_ledger_sync without opening any of their schemas.

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 explicitly prescribes the moments to call it — when starting (with what counts as done), after committing, and when finishing — plus that reviewers post their verdict here. It also routes the agent to the alternative action for sharing ('run plainhub_ledger_sync'), so both when-to-use and what-this-does-not-do are covered.

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