Skip to main content
Glama

PrivateByte

Proxy spend by tier

proxy_spend
Read-only

Read the proxy traffic, request count and amount charged over the last 1, 7 or 30 days, in total and for each tier used.

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

Input Schema

NameRequiredDescriptionDefault
daysNo1, 7 or 30; defaults to 1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true, destructiveHint=false, openWorldHint=false, so safety is covered. The description adds genuinely new behavior: that results are aggregated both as a total and broken out per tier, and that the window is a rolling lookback rather than a fixed period.

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?

One sentence, verb-first, with the data returned stated before the time-scope qualifier. There is nothing redundant or padded.

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?

With no output schema, the description carries the return-value burden and does so by naming all three metrics and the total-plus-per-tier breakdown. Minor gaps remain: units for "traffic" and the currency of the charged amount are unstated.

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?

Schema coverage is 100% and the single parameter already documents its allowed values and default of 1. The description restates those values and adds only the mild clarification that the window is measured backwards from now, so the schema does most of the work.

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?

"Read the proxy traffic, request count and amount charged" names a specific verb and the exact resources returned, plus the aggregation scope (total and per tier). It does not, however, distinguish this reporting tool from the sibling proxy_status, leaving the agent to infer the boundary from the name alone.

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?

The description scopes usage to rolling windows of the last 1, 7 or 30 days, which implies a reporting/consumption-check use case, but it never states when to pick this over proxy_status or any other proxy tool, nor any exclusions.

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