Skip to main content
Glama

usage_reconciliation

按需对账保存的 Codex journal、登记 agent 与外部执行;只读。

Instructions

按需对账保存的 Codex journal、登记 agent 与外部执行;只读。

输出各来源分母、未登记线程、结束无用量、计价缺口和读取截断。 不调用模型、不采账户、不扫描认证;缺失用量未知,历史无证据 ephemeral 不可恢复。 project_id 只筛登记/外部关联,journal 项目归属未知。since/until须含时区。

Input Schema

NameRequiredDescriptionDefault
limitNo每种来源最大扫描样本数,范围 1 到 500;返回摘要及每桶最多 3 例,详情走 HTTP 分页。
sinceNo含时区的 ISO 起始时间;空串不限制起点。
untilNo含时区的 ISO 结束时间;空串不限制终点。
project_idNo明确项目 UUID;空串查询所有已登记执行,journal 项目归属仍未知。
source_namespaceNoCodex home 的 SHA256 namespace;空串查询全部已保存来源。

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.15.2

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does so well: it states read-only, that it does not call models, does not collect accounts, does not scan auth, and that missing usage is unknown while evidence-free history is ephemeral and unrecoverable. These limitations go well beyond a bare verb and warn the agent about what this tool will not surface.

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?

Front-loaded with the action and read-only flag, then outputs, then behavioral limits, then parameter caveats. It is dense but every line carries distinct information; nothing is padding.

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 cross-source reconciliation tool with a full output schema present, return values need not be explained, yet the description still enumerates the output buckets (denominators, unregistered threads, ended-without-usage, pricing gaps, truncation). Combined with the behavioral limits and param caveats, an agent has enough to invoke it correctly.

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 coverage is 100%, so a baseline of 3 applies and the schema already documents all five params. The description adds real meaning on top: project_id only filters registered/external associations (journal attribution stays unknown), and since/until must carry a timezone, which is a constraint the schema text only partially conveys.

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?

States a specific verb (reconciliation) plus concrete resources (saved Codex journal, registered agents, external executions) and immediately marks it read-only. It is clear what the tool does, but it never names or contrasts with the very close sibling usage_attribution, so an agent must infer the boundary itself.

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?

'按需' (on-demand) implies this is a deliberately-triggered reconciliation rather than a routine call, which is useful context. However, there is no explicit when-to-use statement, no exclusions, and no routing to alternatives such as usage_attribution, so the agent is left to infer the distinction.

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

Deploy Server

Other Tools