Skip to main content
Glama

Get the knowledge base status

rhebok_get_status
Read-onlyIdempotent

Check index status to distinguish an empty, stale, or building knowledge base from a real search miss. Reports counts, pending embeddings, unreadable files, last publish time, and config issues.

Instructions

Get the state of the user's rhebok knowledge base: document and section counts, sections waiting for an embedding, the embedding model, when the index was last published, whether an index run is in progress, the sources, the files the index could not read and why, saved memories by kind, and config problems.

Use it when a search finds nothing you expected, to tell an empty, stale or still-building index from a real no-match; before rhebok_update_index, to see whether a run is already going; or when the user asks what rhebok holds. It lists no documents or memories: use rhebok_search_knowledge and rhebok_list_memories for those.

Parameters: skipped_limit caps the list of unreadable files at 20 by default. Raise it, up to 200, when skipped_total is larger and you need every file, for example to explain why a folder is missing; set it to 0 when only the counts matter.

Behavior: it reads only local files and makes no network call, so it cannot tell whether the embedding server is up; a failing search reports that. During an index run it answers from the index that is live.

Returns: documents 0 with last_indexed null means nothing is indexed yet. vectors_pending above 0 means search by meaning misses those sections until a backfill embeds them. When the index cannot be read, error says why and the counts read 0.

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

Input Schema

NameRequiredDescriptionDefault
skipped_limitNoHow many skipped files to list: 0 to 200. The default is 20.

Output Schema

NameRequiredDescriptionDefault
errorYesWhy the index could not be read, and what to do. The counts read 0 when this is set. Null on every normal answer, an empty index included.
modelYesThe embedding model the index was built with. Null when nothing is indexed.
chunksYesSections in the index, across every document.
skippedYesFiles the last index run could not read, with the reason: at most `skipped_limit` of them, 20 by default. Files the user chose to ignore are not listed.
sourcesYesThe folders and files the user configured as sources, as absolute paths.
versionYesThe version of rhebok that answered.
indexingYesTrue while an index run or a backfill is in progress. Search answers from the previous index until it finishes.
memoriesYesSaved memories by kind ("lesson", "fact", "episode"). Empty when memory is disabled or nothing is saved.
sessionsYesTrue when past agent sessions are indexed beside the sources.
documentsYesDocuments in the index.
last_indexedYesWhen the index in use was published, in Unix seconds. Null when nothing is indexed yet.
skipped_totalYesHow many files the last index run could not read, the ones not listed included.
config_problemsYesProblems in the config file. The hook ignores a setting it cannot read, so each one is a setting that is not in effect.
vectors_pendingYesSections not embedded yet. Keyword search finds them; search by meaning does not until they are embedded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.4

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered, and the description still adds meaningful behavior: it reads only local files, makes no network call, therefore cannot detect whether the embedding server is up, and answers from the live index during a run. The one gap is the Returns section, which largely restates output-schema field meanings (documents, vectors_pending, error) rather than adding behavioral disclosure.

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?

It is long but deliberately structured with labeled Parameters, Behavior and Returns segments, and the purpose plus usage triggers are front-loaded ahead of the details. The Returns paragraph is the weakest part, restating field interpretations that an output schema could carry, which keeps it short of a 5.

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 one optional parameter at full schema coverage, rich annotations and an output schema, this is as complete as an agent needs: it knows the triggers, the parameter trade-off, the offline limitation, the concurrency behavior during an index run, and how to read the degenerate states (no index, pending vectors, unreadable index error).

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, but the description goes beyond the schema's range/default by explaining the decision rule: raise it toward 200 when skipped_total exceeds the listed files, and set it to 0 when only counts matter. That is genuine operational guidance a schema cannot express.

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?

The opening sentence names a specific verb and resource ('Get the state of the user's rhebok knowledge base') and enumerates exactly what that state covers: counts, pending embeddings, model, last publish time, in-progress runs, sources, unreadable files, memories by kind, and config problems. It explicitly distinguishes itself from rhebok_search_knowledge and rhebok_list_memories by stating it lists no documents or memories.

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?

Three concrete triggers are given: when a search returns nothing expected, before rhebok_update_index to check for a running job, and when the user asks what rhebok holds. The exclusions are explicit, routing the agent to sibling tools for document and memory listing, so there is no ambiguity about when this tool is the wrong choice.

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