Skip to main content
Glama

cf_meter

Inspect current DoboCache judgment/recall quality with a snapshot of hit rate, average score, value-grade distribution, projected hit tokens, and cumulative hit/miss token billing trends.

Instructions

输出测量仪表快照:判定命中率、平均分、价值分级分布、预计命中 token/比例;v0.2.1 新增按请求累计计费相对值曲线(累计命中/未命中 tokens)。注意:此处的 hitRate 是「cf_judge 判定命中率」(DoboCache 内部召回判定口径),且无判定样本时为 null(未判定,勿读作 0%);厂商 usage 回传的真实缓存命中率请看 cf_report 的 hitRate / judgedCalls。【何时调】用户问「当前判定/召回质量」时;问「真实缓存命中多少」请改用 cf_report(读落盘日志、跨进程累计)。

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

Input Schema

NameRequiredDescriptionDefault
resetNo是否清空计数器后输出空快照

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A4.4/5.0
Behavior4/5

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

The annotations declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, which slightly lowers the burden. The description still earns credit for disclosing two behavioral details beyond the structured fields: hitRate is the cf_judge internal recall metric, and returns null rather than 0% when there are no samples; however, it doesn't mention the destructive side-effect of reset (clearing counters), which stays only in the schema param text.

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 content is front-loaded: the output fields come first, then the false-null caveat, then the routing guidance. The v0.2.1 changelog note is slightly self-indulgent for an agent-consumed definition, but it is short and relevant to the newly added curve field.

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

Completeness5/5

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

Even without an output schema, the description lists every returned metric and warns about the primary misreading risk (null vs 0%). Combined with the explicit pointer to cf_report for vendor-reported rates, an agent has everything needed to call this tool and interpret its output correctly.

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?

There is only one parameter (reset) and its schema description already explains it fully (100% coverage), so the schema does the work. The description never mentions reset or its consequences, adding no meaning beyond the structured data, which makes the baseline 3 appropriate.

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?

The description gives a concrete action and resource ('输出测量仪表快照') and then lists the exact outputs: judgment hit rate, average score, value-tier distribution, estimated hit tokens/ratio, and the new cumulative billing curve. It explicitly distinguishes itself from the sibling tool cf_report, so an agent can separate the two without opening any schema.

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 【何时调】 section gives the trigger condition itself ('用户问当前判定/召回质量时') and an explicit alternative path: use cf_report when the question is about the real cache hit rate. Both the when and the when-not/alternative are stated, leaving nothing to inference.

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