Skip to main content
Glama

Confirm a knowledge entry

confirm_knowledge
Idempotent

Records that the person confirms a knowledge entry's newest version is right, so it reads confirmed for CodeGene's agents and the person's assistants. Call it only when the person has read that version, here or on CodeGene's Knowledge page, and told you in this conversation that it is right; never on your own judgement. It saves no new version and clears an out-of-date flag. If the person wants it changed instead, use update_knowledge (their next confirmation confirms the new text). Send the version you showed them; if a newer version was saved since, nothing is confirmed and the answer is version_moved with the newest number: show them that version first.

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": {
      "knowledge_id": "<knowledge_id>",
      "version": "<version>"
    },
    "name": "confirm_knowledge"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionYesThe version the person read and confirmed: the entry's newest (read_knowledge gives it).
project_idNoThe project the entry is in. May be left out: the entry's id finds its own project or the workspace.
knowledge_idYesThe entry (list_knowledge and search_knowledge give ids).
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Goes well beyond the annotations: it states that no new version is saved, that an out-of-date flag is cleared, and details the version_moved failure path with the recovery step of showing the newest version first. The annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false) are consistent with a non-destructive state flag toggle, and the description reinforces idempotency implicitly. It stops short of describing return shape for the success case.

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?

Front-loaded with the effect, then precondition, then prohibition, then alternative, then edge-case handling. No filler sentences; each one carries either a constraint or a recovery instruction.

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?

For a non-destructive state mutation with 100% schema coverage and no output schema, the description covers the confirmation invariant, the alternative tool, and the only significant failure mode, so an agent has everything needed to call it correctly.

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 already 100%, but the description adds real meaning: which version to pass ('the version you showed them') and exactly what happens when it is stale (nothing confirmed, version_moved plus newest number). That is operational semantics the schema does not convey.

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: recording that a person confirms a knowledge entry's newest version, and describes the visible effect (reads confirmed for agents and assistants). It also distinguishes itself from the sibling update_knowledge, so an agent can tell the two apart 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 precondition (the person has read that version, here or on the Knowledge page, and said in this conversation it is right), an explicit prohibition (never on your own judgement), and names the alternative tool update_knowledge for the change-instead case.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources