Skip to main content
Glama

get_rag_status

Read-onlyIdempotent

Check index state for one or all sources, including freshness, chunk count, last update, and drift. Use it before deciding whether to rebuild the index.

Instructions

Index state for one or all sources: freshness, chunk count, last update, drift. Check it before considering a rebuild.

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

Input Schema

NameRequiredDescriptionDefault
sourceNoSource to inspect; omit for all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.12.0
    • removedInput schema / properties / source / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / source / default
      Removed value: -null
    • addedInput schema / properties / source / type
      Added value: +"string"
  2. Changed4 schema fields changedv1.9.0
    • changedInput schema / properties / source / description
      Previous value: -"Source name to inspect (see `list_sources`). Omit to report the status of every configured source."New value: +"Source to inspect; omit for all."
    • removedInput schema / properties / source / title
      Removed value: -"Source"
    • removedInput schema / title
      Removed value: -"get_rag_statusArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "get_rag_statusOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv1.5.1

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare this a read-only, idempotent, non-destructive, closed-world operation, so safety is covered. Beyond that, the description adds real value by disclosing the shape of the response (freshness, chunk count, last update, drift), which matters because there is no output schema. It does not explain what 'drift' means or how the fields are formatted, which is the remaining gap.

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?

Two short sentences, front-loaded with the purpose and followed by the usage cue. Every clause carries information and nothing is repeated from the schema verbatim.

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 simple single-parameter read tool with rich annotations, this covers purpose, scope, key returned fields, and the reason to call it. The absence of an output schema is compensated by the explicit field enumeration.

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?

The single parameter is fully documented in the schema ('Source to inspect; omit for all'), so the structured data does the heavy lifting. The description's 'one or all sources' merely restates that omit-for-all semantics without adding format or naming examples; baseline 3 applies at 100% coverage.

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 names a specific resource and verb ('Index state for one or all sources') and enumerates what the state contains: freshness, chunk count, last update, drift. It is not differentiated from a possibly-overlapping sibling like list_sources, but the content listing makes the resource unmistakable.

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?

'Check it before considering a rebuild' gives a clear decision context that implicitly links this read tool to the index-update path (update_source_index). It stops short of naming an explicit alternative or a when-not-to-use condition, so it is strong context rather than a full routing rule.

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