Skip to main content
Glama

get_embedding_cache_stats

Monitor embedding cache performance metrics including hit rates, memory usage, and reuse frequency to optimize system efficiency and debug performance issues.

Instructions

获取有关嵌入缓存性能的详细统计信息。 使用场景:

  • 检查缓存命中率以查看系统是否高效工作

  • 监控缓存的内存使用情况

  • 了解嵌入的重用频率

  • 调试性能问题

返回: 有关嵌入缓存性能的详细统计信息。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly indicates this is a read-only operation (获取/获取) and describes what kind of information will be returned. However, it doesn't mention potential limitations like whether this requires specific permissions, if there are rate limits, or how frequently the statistics are updated. The description adds useful context about the types of metrics available but doesn't fully cover behavioral aspects.

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?

The description is well-structured with a clear purpose statement followed by specific usage scenarios and a brief return statement. Each sentence earns its place by providing distinct value. It could be slightly more concise by combining the purpose and return statements, but overall it's efficiently organized.

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?

Given that the tool has 0 parameters, an output schema exists, and the description provides clear purpose and usage guidance, this is reasonably complete. The description doesn't need to explain return values since an output schema exists, and it adequately covers when and why to use this tool. The main gap is the lack of behavioral details that would be helpful for a monitoring tool.

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 has 0 parameters with 100% schema description coverage, so the baseline would be 3. However, the description explicitly states '使用场景' (usage scenarios) that help the agent understand when to invoke this parameterless tool, adding meaningful context beyond the empty schema. This elevates the score above baseline.

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 clearly states the tool's purpose as '获取有关嵌入缓存性能的详细统计信息' (get detailed statistics about embedding cache performance), which is a specific verb+resource combination. It distinguishes itself from siblings like 'get_knowledge_base_stats' and 'get_vector_database_stats' by focusing specifically on cache performance. However, it doesn't explicitly contrast with 'clear_embedding_cache_tool' beyond the obvious read vs. write difference.

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

Usage Guidelines5/5

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

The description provides explicit usage scenarios in a bulleted list: checking cache hit rates, monitoring memory usage, understanding reuse frequency, and debugging performance issues. These give clear guidance on when to use this tool versus alternatives like 'get_vector_database_stats' for broader system monitoring or 'clear_embedding_cache_tool' for cache management.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kalicyh/mcp-rag'

If you have feedback or need assistance with the MCP directory API, please join our Discord server