Skip to main content
Glama
AskBase

AskBase

Official

get_collection_stats

Retrieve document, chunk, and token counts for a single collection to assess its size and content coverage before searching or maintaining the knowledge base.

Instructions

Document, chunk and token counts for one collection.

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": {
      "collection_id": "<collection_id>"
    },
    "name": "get_collection_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
collection_idYesCollection ID

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description must carry the behavioral load alone. 'Counts' implies a non-mutating read and the output schema covers the return shape, but the description says nothing about permissions, scope, or whether counts are cached/fresh.

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?

One tight sentence, front-loaded with the returned metrics. Nothing is wasted, though the terseness means some useful context was never added.

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?

The tool is simple, the parameter is fully documented, and an output schema exists, so the minimal description is close to sufficient. It falls short only in omitting usage and behavioral context that an agent would otherwise have to guess.

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?

Schema coverage is 100% with a single required collection_id documented in the schema, so the baseline is 3. The description adds no meaning beyond the schema—it never states how a collection ID is obtained or that only one collection can be queried at a time.

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 (one collection) and concrete outputs (document, chunk and token counts), which is enough to separate it from list_documents or list_collections. It lacks an explicit verb but the meaning is unambiguous.

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 when-to-use guidance: nothing says whether this is for a quick size check, for verifying ingestion completed, or for choosing between collections. No alternatives or preconditions are mentioned.

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