Skip to main content
Glama
Context-MCP Document Server

Context-MCP Document Server

by lxgbrl

get_server_stats

Retrieve document server statistics, including total documents, document types, and index size, to monitor indexed content and storage usage.

Instructions

Get statistics about the document server (total documents, types, index size)

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_server_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/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 discloses what the response contains (totals, types, index size), which implies a read-only, aggregate operation, but it says nothing about cost/latency, whether stats are cached or computed live, or any permission requirements for a server-wide query.

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?

A single sentence with the resource stated first and the returned metrics in a compact parenthetical. Nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter, read-only stats tool with no output schema, the description covers the essentials by naming the metrics returned. It could be stronger by indicating whether the numbers are live or periodically refreshed, but nothing critical to invoking it correctly is missing.

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 there is no parameter meaning to explain. Baseline of 4 applies; the description correctly avoids inventing parameter discussion and instead spends its words on the return payload.

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 ('Get') and resource ('statistics about the document server') and enumerates the metrics returned: total documents, types, index size. This clearly separates it from the per-document CRUD siblings like get_document, list_documents, and search_documents, which all operate on individual documents.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer this is the server-wide aggregate view rather than a per-document operation. There is no explicit statement of when to prefer it (e.g., 'use when you need a corpus overview instead of listing documents'), no prerequisites, and no exclusions.

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