Skip to main content
Glama

A knowledge entry's versions

list_knowledge_versions
Read-only

The saved versions of a knowledge entry, newest first, a deleted entry's too, without their content: each version's number, what it did (created, edited, deleted, restored), its title, who saved it, when, and a fingerprint of its content (two versions with the same fingerprint have the same content). The first row is the newest version, whose number restore_knowledge_version needs. Long histories come a page at a time: send nextBefore from the answer as before.

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>"
    },
    "name": "list_knowledge_versions"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoWhich level to read: a project's knowledge (needs project_id), the workspace's, or CodeGene's platform guidance (read only). Leave it out for the project when project_id is sent, otherwise the workspace. A search hit names the level its entry is on.
limitNoMost versions to answer.
beforeNoOnly versions numbered below this: the nextBefore of the previous page. Leave it out for the newest page.
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.6/5.0
Behavior5/5

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

Annotations only cover read-only/non-destructive; the description adds substantive behavior beyond them: deleted entries are included, content is excluded, ordering is newest-first, results are paginated with a cursor field named nextBefore, and fingerprint equality implies content equality. That is exactly the context an agent needs before calling.

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 resource and ordering, with no filler sentences. It is dense and slightly run-on across its three sentences (the return-field list reads as a clause chain), but every clause carries information.

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?

With no output schema, the description carries the burden of describing the return shape and does so field by field (number, action, title, author, timestamp, fingerprint). Combined with the pagination protocol and the restore handoff, nothing essential is missing for a 6-parameter read tool.

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 100%, so the baseline is 3; the description earns above that by tying the `before` cursor to the response's nextBefore field and by explaining why the newest version number matters. It does not touch level/workspace_id/project_id resolution, but the schema already documents those thoroughly.

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 ("The saved versions of a knowledge entry") plus scope qualifiers: newest first, includes deleted entries, omits content. This distinguishes it from list_knowledge (entries, not versions), read_knowledge_version (one version with content), and restore_knowledge_version (which consumes its output).

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?

It gives a concrete downstream use case ("The first row is the newest version, whose number restore_knowledge_version needs") and explains the pagination flow ("send nextBefore from the answer as before"). It does not explicitly state when to prefer read_knowledge_version or list_knowledge instead, but the conditions are strongly implied by the content-omission framing.

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