Skip to main content
Glama

plainhub_decide

Idempotent

Create a pending decision card in the repository ledger when a human must approve or reject a change, spend, or permission update; sync it to PlainHub for review.

Instructions

Raise a decision card for a person (status pending) 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/decisions/.md). Use it when something needs a human choice, such as shipping a change, spending money or changing permissions; the person approves or rejects it in PlainHub. 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. Refuses if the id already exists. Example: {"id": "2026-10-08-ship-login-fix", "summary": "Ship the login fix?", "ref": ["fix-login-timeout"], "body": "- What changes: users stay signed in\n- Risk: small"}

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": {
      "id": "<id>",
      "summary": "<summary>"
    },
    "name": "plainhub_decide"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCard id: lowercase letters and digits joined by - or ., e.g. 2026-10-08-ship-login-fix
refNoBranches, commits or threads this card is about
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).
refsNoRenamed to ref. Do not use (the card is not written)
summaryYesOne line in the room language (.agents/room.md language:; English if not set), max 120 characters

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?

Annotations only say it is a non-destructive, idempotent write; the description goes well beyond that by naming the write location, the PLAINHUB_LEDGER environment override and its fallback, the refusal on duplicate ids, the fact that the file alone does not share the card, and what the return value is (an openable link, or remediation steps when the repo is not on GitHub). The duplicate-id refusal is consistent with idempotentHint=true since no second card is created.

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?

Purpose and write target are front-loaded, then usage criteria, then side effects and return value, then an example — a sensible ordering with no filler. The env-var sentence is dense and slightly run-on, which costs it a point but not readability.

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?

No output schema exists, and the description still explains what comes back (a link usable on a phone once pushed, or next steps if the repository is not on GitHub). Combined with the write location, the sync follow-up and the duplicate-id refusal, nothing an agent needs to invoke this 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 baseline is 3, and the description adds a worked example showing a realistic id, summary, ref list and Markdown body composed together, illustrating how the fields interlock. It does not add constraints beyond the schema (length limits and language rule live in the schema), so it stops short of a 5.

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 and resource (raise a decision card in the ledger), names the exact artifact it produces (.agents/decisions/<id>.md) and its initial status (pending). This is clearly separable from list/read siblings such as plainhub_ledger_decisions and from the sharing step plainhub_ledger_sync.

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?

Gives explicit when-to-use criteria with concrete triggers (shipping a change, spending money, changing permissions) and an explicit handoff: 'Writes the file only; run plainhub_ledger_sync to share it.' It also states the precondition that the id must not already exist, which is exactly the routing information an agent needs.

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