Skip to main content
Glama

knowledge_stats

Reports inventory counts by asset kind, verification, and language, plus quarantine/conflict totals, retrieval latency, and token usage for AssetRAG knowledge assets.

Instructions

Knowledge inventory by kind/verification/language, quarantine and conflict counts, retrieval latency and token stats.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It implies a read/aggregation operation but never explicitly states that it is read-only, non-destructive, or free of side effects, nor does it mention scope (whole knowledge base vs filtered), cost, or cardinality of the result.

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 compact sentence with no wasted wording, and the metric categories are front-loaded. It loses a point only because it is a sentence fragment without a leading action verb, which slightly slows parsing of what the tool actually does.

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?

With no output schema, the description must convey the shape of the response, and it does list the metric groups at a high level. It does not say whether results are returned as structured objects, maps keyed by kind/language, or scalars, leaving a real gap for an agent that needs to consume the output.

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?

The tool takes zero parameters, so the schema imposes no documentation burden and the baseline of 4 applies. The description correctly implies the tool is unfiltered and always returns the full inventory breakdown.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description enumerates what the tool reports (inventory by kind/verification/language, quarantine and conflict counts, latency, token stats), which is specific content. However, it is a noun phrase with no verb and never states the action ('return aggregated statistics'), so the agent must infer that this is a read-only reporting tool. It also does not distinguish itself from the sibling library_stats.

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?

There is no guidance on when to call this tool, no prerequisites, and no indication of when a sibling such as library_stats or find_knowledge would be preferable. The agent is left to infer usage entirely from the listed metric names.

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