Skip to main content
Glama

Calls and refunds

everyinfra_requests
Read-only

The account's call records, newest first: request_id, capability, status code, latency, rows returned, whether it was charged, and the amount. Pass request_id (the request_id / X-Request-Id of any call) to look up one call, including its charge's final state (charged, refunded or partly refunded) and any async job it started. failed_only=true lists failures only. Needs the account read permission "requests:read" on this key: keys not limited to product lines have the three read permissions by default; for a key limited to product lines, the account owner turns it on in the console (API Keys → permissions). Free.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoRows, default 20
offsetNoRows to skip, default 0
request_idNoLook up one call; the other params are ignored when given
failed_onlyNoList failed calls only, default false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / failed_only / description
      Previous value: -"只列失败的调用,默认 false"New value: +"List failed calls only, default false"
    • changedInput schema / properties / limit / description
      Previous value: -"条数,默认 20"New value: +"Rows, default 20"
    • changedInput schema / properties / offset / description
      Previous value: -"跳过条数,默认 0"New value: +"Rows to skip, default 0"
    • changedInput schema / properties / request_id / description
      Previous value: -"查单次调用;给了它其余参数忽略"New value: +"Look up one call; the other params are ignored when given"
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/non-destructive annotations, the description discloses ordering (newest first), the exact fields returned, that single-call lookup includes the charge's final state and any async job, and precise auth requirements (requests:read, default behavior for unrestricted vs. product-line-limited keys). It also notes the tool is free, which is meaningful operational context.

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 front-loaded with the return fields and lookup mode, and every clause is relevant. It is somewhat dense and the permission explanation is verbose, but it contains no filler or repetition.

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?

With no output schema, the description fully describes the return fields and ordering, covers both list and single-lookup modes, and explains the permission model and cost. Nothing essential for correct invocation is missing, and the schema handles limit/offset details.

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 already 100%, so baseline is 3. The description adds genuine meaning for request_id (where it comes from: request_id / X-Request-Id of any call, and what it returns: charge state and async job), though it adds little beyond the schema for limit, offset, and failed_only.

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 states a specific resource and scope: the account's call records, with enumerated fields (request_id, capability, status code, latency, rows returned, charged flag, amount). It also distinguishes two modes (listing vs. single-call lookup via request_id) and names the charge/refund and async-job context, making it clearly separable from siblings like usage or billing.

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

Usage Guidelines4/5

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

It gives clear usage contexts: pass request_id to look up one call, use failed_only=true to list failures only, and otherwise list records. It does not, however, name alternative tools or explicitly state when not to use this tool versus everyinfra_usage or everyinfra_billing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.