Skip to main content
Glama

Get Plan and Allowances

getWorkspacePlan
Read-onlyIdempotent

The workspace's plan and tier, when the billing period starts and renews, purchased credit left (total in cents, currency, and display as the amount to quote, or null), a custom deal's summary (state, dates, and quota granted, used and remaining each with display; or null), and each free allowance with what is used. Quote an amount by its display text exactly as returned; never add or convert amounts. Use when: someone asks what plan they are on, what it includes, when it renews or how much credit is left. Owner or billing admin only; other roles get 403. Only a person signed in to the nopaque web app can call this; an API key is refused.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
dealYesA custom deal's summary, or null when there is no deal. Quota amounts are minor units of `currency`; quote their `display`. Per-minute rates are not included.
planYesThe plan the workspace is on (auth's effectiveTier).
tierYesThe stored subscription tier.
creditYesPurchased credit left, as the Billing page shows it, or null when the workspace has no billing account yet. Quote `display`.
freePoolsYesThe Free tier's monthly free allowances. Empty on any other plan, where they are not counted down.
periodEndNo
balanceLeftYesWhat is left to draw usage from, one line per name as the Billing page lists it: a plan's licence, a free allocation, a pack. Drained lines are left out. Quote `display`.
periodStartNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / workspaceId
      Removed value: -{
      -  "description": "Workspace identifier. Must be the caller's current workspace.",
      -  "format": "uuid",
      -  "type": "string"
      -}
    • removedInput schema / required
      Removed value: -[
      -  "workspaceId"
      -]
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already mark this read-only and idempotent, and the description layers genuinely new behavior on top: role-gated access with a 403 outcome, refusal of API-key auth, and the fact that nullable fields return null for absent credit/deal data. The instruction to quote a returned `display` string verbatim and never convert amounts is an operational constraint that appears nowhere in structured fields.

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?

Information-dense and front-loaded, with the response fields first, then quoting rules, then when-to-use, then auth gates. The opening sentence is long and parenthesis-heavy, nesting four separate payload descriptions in one breath, which costs some readability but no sentence is wasted.

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 zero-parameter, read-only tool that already ships an output schema and safety annotations, this covers everything an agent needs: it clarifies which returned fields matter, how to render amounts, and whether the current caller is entitled to invoke it at all. No material gap remains.

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 no parameter semantics to explain and the baseline of 4 applies. The description correctly spends no words on inputs and instead redirects its detail to the response fields.

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 enumerates precisely what the tool returns: plan and tier, billing period start/renewal, remaining purchased credit, custom deal summary, and per-allowance usage. It is a clear read of a specific resource, though it is framed as a list of returned data rather than a verb+object statement, and it never contrasts itself with the sibling usage tools (getWorkspaceUsage, getWorkspaceUsageThisPeriod).

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?

Explicit 'Use when' clause names the concrete user intents that select this tool (what plan am I on, what does it include, when does it renew, how much credit is left). It also states exclusion-by-role (owner or billing admin only; others get 403) and an auth-path precondition (signed-in web app user, API key refused), leaving nothing about eligibility to inference.

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.