Skip to main content
Glama

Get pay-as-you-go

getPayAsYouGo
Read-only

Pay as you go on this workspace: whether usage past the allowances is billed, the monthly limit and what extras cost so far, the current billing period, the limits that can be chosen and the rates of the plan of this workspace. While it is on it also bills every API and MCP request a key or a connected app makes, per 1,000,000 at the rate of its plan ($0.50 on Starter, $0.30 on Pro and $0.20 on Max), apart from requests refused for the rate limit, requests that failed on our side and the ones made before it started. Only the owner of the workspace reaches billing, through a client connected with every address.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description's job is to add access and scope context — and it does: billing is reachable only by the workspace owner, through a client connected with every address. It also documents billing exclusions (rate-limited refusals, server-side failures, requests before activation), which meaningfully shapes how an agent should interpret the numbers. It does not describe the shape of the response, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is dense and earns most of its length, but it is delivered as three long run-on sentences with the crucial access restriction (owner only, fully connected client) buried at the very end. Front-loading what is returned and moving the permission caveat earlier would markedly improve scanability.

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?

There is no output schema and no parameters, so the description must carry the retrieval surface — and it does, listing the fields returned and the per-million request rates by plan tier. With annotations covering the safety profile and the access constraint documented, an agent has enough to call it correctly, though response formatting details are absent.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; the empty schema fully covers the input contract. The description's rate and scope details are useful but are not parameter semantics, so the baseline of 4 applies.

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?

The description names the specific resource (pay-as-you-go status for this workspace) and enumerates what is retrieved: whether overage is billed, the monthly limit, extras accrued so far, the billing period, selectable limits and plan rates. That is a clear verb-plus-resource statement. It stops short of explicitly distinguishing itself from billing siblings such as getBilling or getBillingUsage, so it is 4 rather than 5.

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?

Usage is implied by the content (use it to inspect overage billing status, limits and accrued extras), but there is no explicit when-to-use statement, no exclusion, and no pointer to alternatives like getBilling or setPayAsYouGoLimit. An agent can infer the context but must reason about sibling selection itself.

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.