Skip to main content
Glama

get_token_stats

Query token usage statistics for a specified working directory, with optional session ID to filter results.

Instructions

查询 Coding Bridge MCP 的 token 用量统计。 必选参数:cd(工作目录)。 可选参数:SESSION_ID(指定会话,空字符串或不传则汇总当前进程所有会话)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cdYes
SESSION_IDNoSession ID to inspect. Empty returns the global total across all sessions.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description must carry the full burden. It discloses that SESSION_ID can be empty to return global totals, which is a behavioral trait. However, it does not explicitly state that the operation is read-only or safe, nor does it mention any side effects or permissions needed.

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?

The description is extremely concise with two sentences: the first declares the purpose, the second lists parameters. No extraneous information — every word contributes valuable context for tool selection and invocation.

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?

Given the tool's simplicity (2 parameters, output schema exists), the description adequately covers purpose and parameter semantics. It aligns with the sibling context (chat, review tools) and provides enough detail for an AI agent to understand when and how to use it.

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?

Schema description coverage is 50% (only SESSION_ID has a description). The description adds meaning to both parameters: 'cd' is explained as '工作目录' (working directory), and for SESSION_ID, it adds that empty string or omission returns global total across sessions. This compensates well for the missing schema descriptions.

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 clearly states the tool's purpose: '查询 Coding Bridge MCP 的 token 用量统计' (query token usage statistics). It uses a specific verb and resource, which distinguishes it from sibling tools like chat, review_code, and review_plan.

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?

The description provides no guidance on when to use this tool vs alternatives. It only lists required and optional parameters without any context about appropriate use cases or scenarios to avoid.

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/htmambo/coding-bridge-mcp'

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