Skip to main content
Glama

Where pay as you go stands

get_pay_as_you_go
Read-only

Where the workspace's pay as you go stands, in plain words: off, or on with its monthly limit, what has been charged so far this month, what is set aside for work already approved or under way, and what is left for new work. Also how it works, to tell the person before they decide: what work done at a pay-as-you-go price costs, that each job shows an "at most" price it is never charged above, that work that fails is free, and that the monthly limit only stops new pay-as-you-go work and never a live site; with the link to the terms that turning it on agrees to. Only owners and admins see it; anyone else is told so. Turning it on or changing the limit is turn_on_pay_as_you_go; turning it off is turn_off_pay_as_you_go.

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

Input Schema

NameRequiredDescriptionDefault
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, and the description adds genuine behavioral context on top: permission gating by role, what the returned figures mean, and policy semantics such as failed work being free and the monthly limit never interrupting a live site. It also discloses the terms link that enabling the feature agrees to.

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 status summary is front-loaded and useful, but the body is one long run-on sentence with embedded quotation marks and semicolons that is hard to parse. Much of the billing-policy explanation is legitimate context, yet it is compressed into an undifferentiated block rather than ordered into status, permission, and policy segments.

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 carries the return-value burden and does so by enumerating the fields in plain language. Combined with the permission note and sibling routing, an agent has everything needed to call and interpret this tool correctly.

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?

There is a single optional workspace_id parameter with 100% schema description coverage ('Workspace id from whoami; omit when there is one'), which is the baseline-3 case. The description adds nothing about the parameter itself, though it does not need to since the schema handles it.

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 names the resource and its exact state surface: the workspace's pay-as-you-go status, whether off or on with a monthly limit, charged so far, reserved for in-flight work, and remaining balance. It explicitly separates itself from turn_on_pay_as_you_go and turn_off_pay_as_you_go, so an agent can choose it without opening a sibling schema.

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?

It states the use case (retrieving status, and explaining the model to a person before they decide) and names the alternatives with their triggering conditions: turning on or changing the limit routes to turn_on_pay_as_you_go, turning off routes to turn_off_pay_as_you_go. It also adds an access precondition: only owners and admins see it, others are told so.

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