Skip to main content
Glama

tmh_kb_commit

Write or update .tmh/knowledge pages with automatic source-citation validation and code-fingerprint anchoring so documentation stays tied to verified code.

Instructions

Write or update a living knowledge page (.tmh/knowledge/) with automatic source-citation validation and code-fingerprint anchoring.

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": {
      "pageId": "<pageId>",
      "title": "<title>",
      "summary": "<summary>",
      "content": "<content>"
    },
    "name": "tmh_kb_commit"
  }
}

Input Schema

NameRequiredDescriptionDefault
whoNoAuthor identifier (default: tmh-ai).tmh-ai
titleYesHuman-readable page title.
pageIdYesKnowledge page ID returned by tmh_kb_next or tmh_kb_status.
contentYesMarkdown body of the knowledge page.
summaryYesConcise one-line summary of the page.
repoPathNoLocal repository path (optional if server started with --repo).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/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 burden, and it does disclose two meaningful behaviors: automatic source-citation validation (implying the call can fail on uncited content) and code-fingerprint anchoring. However, it omits critical mutation semantics: whether an existing page is overwritten or merged, what happens on validation failure, and what the call returns. Partial credit for real behavioral disclosure, but a mutation tool without annotations should say more.

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?

A single sentence with the verb and resource front-loaded and no filler wording. It is efficiently sized, though the two trailing clauses (validation, fingerprinting) are packed on without elaboration.

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

Completeness3/5

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

For a six-parameter mutation tool with no annotations and no output schema, the description covers purpose and two side behaviors but leaves overwrite semantics, failure modes, and return expectations unaddressed. Adequate as a minimum-viable definition, not complete for a write operation.

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 description coverage is 100%, so pageId, title, summary, content, repoPath and who are already documented in the schema. The description adds nothing parameter-specific beyond implying repoPath ties to the .tmh/knowledge/ location. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

Names a specific verb pair (write or update) and a specific resource (a living knowledge page at .tmh/knowledge/), so an agent can distinguish this from the read-only siblings like tmh_kb_status or tmh_read. It stops short of explicitly naming which sibling it complements, but the resource itself is unique enough to route correctly.

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

Usage Guidelines2/5

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

The sentence never states when to reach for this tool versus alternatives, nor any prerequisite such as having obtained a pageId first (that sequencing only appears in the schema, not the description). 'Living knowledge page' hints at the workflow but no explicit when/when-not guidance is given.

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