Skip to main content
Glama

hub_section_add

Append a single dated line to a specific project-card section without altering surrounding content, creating the section if missing. Use it for Gates, Metrics, Market, or hand-written headings.

Instructions

Append ONE line to ONE section of a project card, leaving everything around it untouched. This is how Gates / Metrics / Market and any hand-written section get written by a tool at all — hub_card_set only writes the digest, and the report router only reaches Decisions / Facts / Communication / Next step and your own Handoff section. For those, a normal hub_report with DECIDE:/FACT:/COMM:/NEXT:/HANDOFF: is still the right call; use this for the rest. A line set into a "Handoff " section is journaled as a handoff, as HANDOFF: is. The section is created if missing (you get created:true back — check it, a typo is how a card grows two nearly identical headings).

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>",
      "section": "<section>",
      "text": "<text>",
      "by": "<by>"
    },
    "name": "hub_section_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
byYesthe function you are performing, e.g. "dev-hubd".
modeNodefault append. `set` REPLACES the section body — right for "the one next action", wrong for anything cumulative.
textYesone line; it is stamped with the date
projectYes
sectionYesa key from hub sections (gates, metrics, market, ...) or the literal heading as it appears in the card
provenanceNowhere this came from — a URL, a file, a command, a person. Recorded next to the line so a later reader can re-check it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses the silent-creation side effect ('the section is created if missing'), the return signal (created:true), and the handoff-journaling side effect for 'Handoff <agent>' sections. It omits auth/permission requirements and any rate or concurrency behavior, which keeps it short of a 5.

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?

Front-loaded with the core action, then the routing rule, then the creation caveat — a sensible order with no filler sentences. It leans on em-dashes and parentheticals, making a few sentences denser than they need to be, but every clause carries information.

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 6-parameter mutation tool with no annotations and no output schema, the description covers the essentials: what gets written, what does not get touched, when to route elsewhere, the creation side effect, and the one return field worth checking. Missing permissions/error behavior and the meaning of mode='set' at the description level (it lives only in the schema) keep it at 4.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 83%, so the schema already documents by, text, section, and provenance; the description mostly reinforces rather than extends that. It does add real meaning around the section parameter — creation when missing and the typo-duplicate-heading risk — but says nothing extra about mode, provenance, or the required project key.

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 precise verb and resource — 'Append ONE line to ONE section of a project card' — and immediately delimits scope with 'leaving everything around it untouched.' It explicitly names what it is not (hub_card_set writes only the digest; the report router covers Decisions/Facts/Communication/Next step/Handoff), so an agent can separate it from siblings without opening 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?

Gives an explicit routing rule: for Decisions/Facts/Communication/Next step/Handoff use hub_report with DECIDE:/FACT:/COMM:/NEXT:/HANDOFF:, and 'use this for the rest.' That is a concrete when-to-use plus a when-not-to-use with the named alternative, which is exactly what guidance should do.

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