Skip to main content
Glama

Ask to turn on pay as you go or change its monthly limit

turn_on_pay_as_you_go

Asks to turn on pay as you go for the workspace with a monthly limit, or to change the monthly limit of one that is already on (raising and lowering both ask). It is the person's agreement to be charged, so it only asks: Nothing happens until you approve it in CodeGene: the answer gives a link to the request, which waits there for 15 minutes. Send the person that link; you cannot approve it. Then call get_approval with the requestId to learn how it ended. The request states the price rule, the limit and the terms it agrees to, and nothing is agreed until the person approves it there; say it waits for them, never that it is on. First call get_pay_as_you_go and tell the person how it works. Use only a monthly limit the person named. Only owners and admins can; the answer says so for anyone else.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "monthly_limit_usd": "<monthly_limit_usd>"
    },
    "name": "turn_on_pay_as_you_go"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspace_idNoWorkspace id from whoami; omit when there is one.
monthly_limit_usdYesThe most pay-as-you-go work may be charged in one calendar month (UTC), in US dollars with at most two decimal places (150 or 12.50).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say it is a non-read-only, non-destructive, closed-world operation; the description adds substantial context beyond that: nothing takes effect until the person approves in CodeGene, the link waits 15 minutes, the request carries the price rule, limit and terms, and the agent must phrase the outcome as pending rather than active. That is exactly the behavioral detail an agent could not infer from readOnlyHint/destructiveHint.

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?

It is front-loaded with what the tool does, then the workflow, then the eligibility caveat, and nearly every clause carries an instruction. There is mild redundancy between 'Nothing happens until you approve it' and the later 'nothing is agreed until the person approves it there; say it waits for them, never that it is on', which repeats the same pending-state warning twice.

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?

For a two-parameter mutation-by-request tool with no output schema, the description covers the entire lifecycle: pre-call, the returned link and its 15-minute expiry, the approval handoff via get_approval, permission gating, and the required framing of the result. Nothing an agent needs to invoke and narrate this correctly is missing.

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%, so the baseline is 3, but the description adds policy semantics the schema does not: use only a monthly limit the person named (i.e., never invent or default a value). It adds nothing extra about workspace_id beyond the schema's 'omit when there is one' note.

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 a specific action pair — asking to turn on pay-as-you-go with a monthly limit, or changing the limit of one already on (including both raising and lowering) — scoped to a workspace. An agent can distinguish this from get_pay_as_you_go and turn_off_pay_as_you_go purely from the text without opening the 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 gives an explicit prerequisite (first call get_pay_as_you_go and explain how it works), an explicit follow-up (call get_approval with the requestId to learn how it ended), a hard exclusion (you cannot approve it yourself), and an eligibility rule (only owners and admins; the answer says so for anyone else). Usage conditions are fully specified rather than implied.

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