Skip to main content
Glama

tmh_kb_next

Fetches the next batch of unwritten or stale living knowledge pages with grounded code-graph facts so an agent can author or refresh them.

Instructions

Fetch the next batch of unwritten or stale living knowledge pages with grounded code-graph facts so an agent can author or refresh them.

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": "tmh_kb_next"
  }
}

Input Schema

NameRequiredDescriptionDefault
whoNoAuthor identifier (default: tmh-ai).tmh-ai
limitNoNumber of pages to claim (default: 3).
queryNoOptional topic filter for prioritizing pages.
repoPathNoLocal repository path (optional if server started with --repo).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose real substance: the tool mutates state by 'claiming' pages, it selects by staleness/written status, and it returns grounded facts. It does not say whether claims are exclusive or time-limited, what happens when no pages qualify, or how a claim is released.

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

Conciseness5/5

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

A single front-loaded sentence that packs selection criteria, payload contents, and intended downstream use with no filler. Nothing is wasted or buried.

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 four-parameter, all-optional tool with no output schema and no annotations, the definition covers what the tool returns conceptually (pages plus grounded facts) and why. The main remaining gap is claim lifecycle semantics, which matters for a state-mutating fetch but is arguably out of scope for one sentence.

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 100%, so the schema already documents all four parameters including the 'claim' semantics of limit and the topic filter of query. The description adds only the notion of a batch/claim, not per-parameter meaning such as how query prioritizes or how who affects claiming.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a concrete verb ('Fetch') and a specific resource ('the next batch of unwritten or stale living knowledge pages') plus the payload ('grounded code-graph facts'). It implicitly positions itself as the intake step of an authoring workflow, though it never names a sibling like tmh_kb_commit or tmh_kb_status to contrast against.

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

Usage Guidelines3/5

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

The trailing clause 'so an agent can author or refresh them' implies this is the first step in an author-then-commit loop, but there is no explicit when-to-use, when-not-to-use, or prerequisite statement. An agent must infer the workflow ordering from the sibling names.

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