Skip to main content
Glama

plainhub_ledger_sync

Destructive

Commits and pushes only .agents ledger changes after secret and header checks, pulls others’ updates with rebase, and stops on conflicts so agents can share posts and decisions safely.

Instructions

Share the ledger in the repository folder set by the PLAINHUB_LEDGER environment variable (if not set, the folder the server was started in) through Git: commits only the changes in .agents (after checking them for secrets and broken headers), receives others' changes with git pull --rebase, then pushes to the branch's upstream with the Git login of this machine (not the PlainHub token). Use it after plainhub_post or plainhub_decide when other agents or people need to see them, and before reading a thread someone else is writing. Stops without changing anything if the same files changed on both sides, if other files have uncommitted changes, or if unsent commits change files outside .agents (it never pushes code). Example: {}

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_sync"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

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?

The annotations already declare a destructive, non-idempotent, open-world write, and the description adds substantial context beyond them: it commits only .agents, pre-checks for secrets and broken headers, rebases before pushing, authenticates with the machine's Git login rather than the PlainHub token, and aborts on conflicts, unrelated dirty files, or unsent commits outside .agents. It also clarifies that it never pushes code, which is exactly the kind of boundary an agent needs before invoking a destructive tool.

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 main action is front-loaded and every clause carries information about scope, auth, or failure modes. It is a single dense paragraph, though; breaking the abort conditions into a short list would make the safety-critical part easier to scan.

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 zero-parameter, no-output-schema tool with destructive annotations, the description covers folder resolution, what gets committed, credential source, conflict handling, and hard stop conditions. Nothing an agent needs in order to call it safely 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?

There are zero parameters, so the baseline is 4. The description still explains that the target folder comes from PLAINHUB_LEDGER or the server's start directory and shows the empty-argument example, which removes any doubt about how to call it.

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 opens with a specific verb and resource: share the ledger folder through Git. It then names the concrete operations (commit .agents changes, pull --rebase, push to upstream), so an agent knows exactly what the tool does and how it differs from ledger readers such as plainhub_ledger_read.

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 trigger (after plainhub_post or plainhub_decide when others need to see the result) and a second trigger (before reading a thread someone else is writing). It also names the exact conditions where the tool refuses to act, which tells the agent when the call is pointless.

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