Skip to main content
Glama

Check Quota

check_quota
Read-onlyIdempotent

Check this organization's calculation allowance for the current period: included, used and remaining calculations, whether more runs are blocked or billed as overage, the remaining overage budget and whether runs are paused. Use it before starting several billable calculations with upload_and_quote or quote_part. Read-only and free.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
planNo
usedNo
bonusNoThank-you calculations granted on top of the plan this window.
windowNo'month' or 'year'.
guidanceYes
includedNoCalculations included per window.
rolloverNoUnused calculations carried in from last window.
effectiveNoCeiling this window (included + rollover + bonus).
remainingNoCalculations still available this window.
over_quotaNo
window_endNoISO 8601 end of the current quota window, exclusive: when the included calculations reset.
hard_cappedNoTrue: over-quota runs park as blocked. False: they bill as overage.
window_startNoISO 8601 start of the current quota window.
overage_centsNoPrice of one calculation beyond the included volume, in cents.
payment_blockedNoTrue when billing is suspended and nothing will run.
wallet_overdrawnNoTrue when the prepaid balance has reached its hard floor — calculations are paused and further runs park as 'blocked' until the balance is topped up.
overage_cap_centsNoOverage spend cap per billing period in cents, or null when uncapped. Bounds what over-quota runs may cost.
spend_cap_blockedNoTrue when the overage cap is reached and set to pause — further over-quota runs park as blocked.
has_payment_methodNoWhether a payment method is on file; a 'wallet' plan needs one for calculations beyond the included volume.
overage_settlementNoHow overage is paid: 'wallet' (a prepaid balance that is the ceiling) or 'invoice' (contracted, billed in arrears).
overage_spend_centsNoOverage already billed in the current billing period — the quota window from window_start to window_end — in cents.
wallet_balance_centsNoPrepaid balance in cents ('wallet' settlement only).
wallet_overdraft_centsNoHow far the prepaid balance is below zero, in cents.
wallet_funded_calculationsNoHow many more overage calculations the current balance covers; beyond it, calculations park as 'blocked'.
wallet_overdraft_floor_centsNoHard floor on the prepaid balance, in cents; the balance can never go below its negation.
overage_budget_remaining_centsNoOverage spend still inside the cap, in cents; null when uncapped.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedOutput schema / properties / overage_cap_cents / description
      Previous value: -"Monthly overage spend cap in cents, or null when uncapped. Bounds what over-quota runs may cost."New value: +"Overage spend cap per billing period in cents, or null when uncapped. Bounds what over-quota runs may cost."
    • changedOutput schema / properties / overage_spend_cents / description
      Previous value: -"Overage already billed this calendar month, in cents."New value: +"Overage already billed in the current billing period — the quota window from window_start to window_end — in cents."
    • addedOutput schema / properties / window_end
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "ISO 8601 end of the current quota window, exclusive: when the included calculations reset."
      +}
  2. Changed5 schema fields changed
    • changedOutput schema / description
      Previous value: -"This organization's remaining calculation quota and monthly overage\nbudget — check before a bulk run so you can upgrade the plan (or raise the\noverage cap) up front instead of parking calcs as 'blocked'."New value: +"This organization's calculation allowance for the current period and\nits overage budget: how many calculations are included, used and\nremaining, and what happens to a run beyond the allowance."
    • changedOutput schema / properties / has_payment_method / description
      Previous value: -"Whether a card is on file. Required before any calculation beyond the included volume on a 'wallet' plan."New value: +"Whether a payment method is on file; a 'wallet' plan needs one for calculations beyond the included volume."
    • changedOutput schema / properties / overage_settlement / description
      Previous value: -"How overage is paid: 'wallet' (prepaid — the balance is the ceiling, top up to continue) or 'invoice' (contracted, billed in arrears)."New value: +"How overage is paid: 'wallet' (a prepaid balance that is the ceiling) or 'invoice' (contracted, billed in arrears)."
    • changedOutput schema / properties / wallet_funded_calculations / description
      Previous value: -"How many more overage calculations the balance covers. Check this before a bulk run — past it, calculations park as 'blocked'."New value: +"How many more overage calculations the current balance covers; beyond it, calculations park as 'blocked'."
    • changedOutput schema / properties / wallet_overdrawn / description
      Previous value: -"True when the prepaid balance has reached its hard floor — calculations are paused and further runs park as 'blocked' until the balance is topped up. Check this before a bulk run."New value: +"True when the prepaid balance has reached its hard floor — calculations are paused and further runs park as 'blocked' until the balance is topped up."
  3. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is known. The description still adds value beyond them by declaring the call is 'free' (no allowance consumed) and by explaining the semantics of the returned state — whether runs are blocked or billed as overage and whether they are paused — which tells the agent what decision the result supports.

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?

Front-loaded with the core purpose, followed by a colon-delimited enumeration of return fields and a single usage sentence. 'Read-only and free' is compact, though 'read-only' partially repeats the readOnlyHint annotation; the sentence still earns its place for the 'free' claim.

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?

Although an output schema exists, the description usefully previews the returned state so an agent can select the tool without inspecting the schema. Combined with the usage trigger and the zero-parameter simplicity, nothing needed to call it 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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; baseline 4 applies. The description correctly signals an implicit scope ('this organization's', 'current period') which is the only semantic constraint an agent needs.

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?

States a specific verb and resource ('Check this organization's calculation allowance for the current period') and then enumerates exactly what is reported: included/used/remaining calculations, blocked-vs-overage billing, remaining overage budget, and paused state. This is clearly distinguishable from siblings like explain_cost, get_cost_breakdown or preview_cost, which concern pricing rather than allowance.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger ('Use it before starting several billable calculations') and names the concrete sibling tools that trigger it (upload_and_quote, quote_part). It lacks an explicit when-not or guidance on what to do if runs are already blocked, but the positive routing guidance is clear and actionable.

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.