Skip to main content
Glama

FlexYield — blockchain RPC gateway

get_usage

Read-onlyIdempotent

Your account's usage in one of three views. view='report': requests, weighted units, errors and latency per key, method and chain over a look-back window (hours, default 24; optional chain). view='stats': one console report — report='latency' | 'errors' | 'spend' | 'cache' — for a window ('24h', '7d', '30d'). view='volume': request counts over time (optional chain). Use it to answer 'how much did we use, where, and how fast'. Not for invoices (use get_statement), balances (use get_billing_status) or one key's settings (use list_api_keys). Returns JSON: report → since, total_requests, weighted_units, by_class, cache_hits, success_rate, p50/p95_duration_ms, by_key, by_method, by_chain; stats → window, buckets, series, summary and report-specific totals; volume → window, bucket_seconds, buckets. Read-only. Needs your API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
viewYes'report' (per-key usage), 'stats' (a console report), or 'volume' (over time)
chainNoFilter by chain, e.g. 'eth_mainnet' (report, volume)
hoursNoLook-back window in hours for view='report' (default 24)
reportNoFor view='stats': 'latency' | 'errors' | 'spend' | 'cache'
windowNoFor view='stats' and 'volume': '24h' (default), '7d', '30d'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true. The description reinforces read-only status and mentions authentication ('Needs your API key'). It also discloses the return structure per view, which is behavioral detail beyond annotations. Since no output schema exists, this is valuable context. However, it does not describe edge cases or error behavior, so a small gap remains.

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 longer than typical but every sentence earns its place. It is front-loaded with the main purpose, then details each view, exclusions, return format, and safety note. It is well-structured with clear delineations, avoiding redundancy. It could be slightly more succinct, but the density of useful information justifies the length.

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?

Considering the tool's complexity (three views, five parameters) and the absence of an output schema, the description is exceptionally complete. It explains each view's purpose, parameter usage, return JSON fields, exclusions, and read-only nature. There is no significant missing information an agent would need to correctly invoke the 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?

Schema coverage is 100% with descriptions for each parameter, so the baseline is 3. The description adds value by mapping parameters to specific views (e.g., 'view=report uses hours', 'view=stats uses report and window', 'view=volume uses window'), which the schema does not do. This clarifies which parameters are relevant in each mode, going beyond the schema's individual 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 states a clear purpose: 'Your account's usage in one of three views' and further explains each view in detail. It explicitly distinguishes this tool from siblings by naming alternatives (get_statement, get_billing_status, list_api_keys) and what they are for, leaving no ambiguity about the tool's specific function.

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 when-to-use guidance: 'Use it to answer how much did we use, where, and how fast' and clearly states exclusions: 'Not for invoices (use get_statement), balances (use get_billing_status) or one key's settings (use list_api_keys)'. It also breaks down usage by view, telling the agent which parameters apply to which mode, which is excellent routing guidance.

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.

Resources