Skip to main content
Glama

get_semantic_stats

Retrieve semantic search statistics, including tool and category counts, initialization status, and embedding cache metrics, to inspect search readiness and cache behavior.

Instructions

Get Semantic Search Statistics / 获取语义搜索统计信息.

Returns statistics about the semantic search system including: 返回语义搜索系统的统计信息,包括:

  • Total number of tools / 工具总数

  • Number of categories / 分类数量

  • Initialization status / 初始化状态

  • Embedding cache statistics / 嵌入缓存统计

Returns: Statistics about the semantic search system / 语义搜索系统的统计信息

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the disclosure burden; it does signal that this is a read/statistics operation and names the metric buckets, which implies a cheap, side-effect-free diagnostic call. It says nothing about cost, latency, whether initialization status can change as a side effect, or permission requirements, so a diagnostic agent gets only a partial picture of behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The front-loaded title line is good, but the content is then duplicated verbatim in English and Chinese, and the trailing 'Returns: Statistics about the semantic search system' merely restates the opening sentence. The bilingual mirroring is defensible for the audience, yet roughly a third of the text adds no information.

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 statistics tool with an output schema already documenting the return shape, the definition supplies enough for a correct call. The missing piece is the diagnostic framing — what the numbers mean and when they are worth fetching — rather than any structural gap.

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, which is the baseline-4 case, and the empty properties object makes the no-argument contract unambiguous. There is no parameter meaning left to convey.

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 opens with a specific verb and resource ('Get Semantic Search Statistics') and enumerates the four things counted (tools, categories, initialization status, cache stats), which is clear. It does not differentiate itself from lookalike siblings such as get_server_capabilities or get_connection_status, so an agent must infer from the name alone that this one concerns the semantic search subsystem.

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 statement of when to call this tool, what question it answers (e.g. troubleshooting empty search results, checking whether embeddings are initialized), or what alternative to use. The agent is left to infer usage purely from the resource name.

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