Skip to main content
Glama

hub_law

Rule on project laws: accept a candidate or dictated rule to add a line to the project card, reject it, or retire a law with a reason.

Instructions

A head's verdict on a candidate for its project's laws (hub_reflect with promote lists them, each with an id), or on a law the head dictates: give rule (the text itself) instead of id, and nothing has to have grown it first. accept: the rule becomes a law, a line in the card's Laws section that hub_context returns to every role of the project. reject: it leaves the list until it is said often enough again after the rejection. A project with a head on record is that head's to rule on, or a fleet role's. Every verdict is a journal line; a law said again is refused with the one the card already holds. retire takes a law out of the card into the project's history, with its reason.

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": {
      "project": "<project>",
      "verdict": "<verdict>",
      "by": "<by>"
    },
    "name": "hub_law"
  }
}

Input Schema

NameRequiredDescriptionDefault
byYesthe head ruling on it
idNothe candidate's id, as hub_reflect with promote lists it
ruleNothe rule's own text, when the head dictates a law instead of accepting a candidate — one of id or rule
sinceNothe window the candidate was listed over; default 7d
reasonNowhy, for a reject above all
projectYes
verdictYesretire: a law that no longer holds leaves the card for the project's history, by its id (hub_reflect laws list them) or its text, with a reason

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.88

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the auth model (the project's head, or a fleet role), the effect of accept (a line in the card's Laws section returned to every role by hub_context), the consequence of reject (leaves the list until said often enough again), duplicate refusal, journaling, and that retire moves a law into project history. It does not describe what a verdict call returns or how errors surface.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Every sentence carries real information and the purpose leads, but the prose is tangled — multiple clauses spliced with em-dashes and colons — which slows parsing for an agent. Tighter segmentation of accept/reject/retire behavior would improve it without losing content.

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

Completeness4/5

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

For a 7-parameter mutation with no annotations and no output schema, the description covers authorization, side effects, duplicate handling, and history semantics — the riskiest gaps. The remaining omission is return/error shape, which would matter given the absence of an output schema.

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 86%, so the baseline is 3; the description still adds meaning by explaining the id-vs-rule exclusivity (dictate text when nothing has grown the rule) and the downstream effect of each verdict value rather than just restating the enum. It leaves `by`, `since`, and `reason` mostly to the schema.

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 act (a head's verdict) on a specific resource (a candidate law or a dictated rule) and names the sibling that supplies candidates (hub_reflect with promote) and the one that surfaces results (hub_context). An agent can distinguish this from hub_rules or hub_reflect without opening any schema.

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

Usage Guidelines4/5

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

Clearly says candidates come from hub_reflect with promote, and that a head may instead dictate a rule directly without anything having grown it first — an explicit alternative path. It does not state when not to use it (e.g. reading existing laws vs. ruling on them would be hub_rules/hub_context).

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