Skip to main content
Glama

Get the tokens left

get_tokens
Read-only

Reads the account's tokens, the one unit everything Marsell makes is paid in (100 tokens are 1 US cent): plan, can_spend and, when it cannot, reason; tokens_left (this month's plan tokens with any bought or coupon tokens, which carry over); used_this_month and held_now for work under way (the token history's own count, so used can pass the allowance once bought or coupon tokens are spent); monthly_allowance and renews (when it renews). Read it before quoting a spend; what a piece costs comes from its own quote (make_pictures, series_quote, picture_price).

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_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNoThe project's id or exact name. Optional when the account has one project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true/openWorldHint=false, so safety is covered and the description correctly doesn't restate it. Instead it adds real behavioral context an agent could otherwise misread: tokens_left includes carried-over bought/coupon tokens, used_this_month can exceed the allowance after those are spent, and held_now covers work under way. It stops short of saying whether the read is cached or how fresh the numbers are, which is the only meaningful gap.

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?

No filler, and the primary purpose is front-loaded, but the first sentence is a lengthy run-on threading multiple nested parentheticals (plan/status fields mixed with allowance and carry-over caveats), which makes it harder to scan than it needs to be. Content earns its place; the packaging is dense.

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, so the description must carry the return values — and it does, enumerating plan, tokens_left, used_this_month, held_now, monthly_allowance and renews with their edge-case semantics. Only the mutation/pricing distinction across sibling tools and any freshness guarantee are left implicit.

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?

The single 'project' parameter is fully documented in the schema (100% coverage, including the 'optional when the account has one project' case), so the schema does the work. The description never mentions the parameter and adds no scoping detail beyond the schema baseline.

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?

Opens with a specific verb and resource — 'Reads the account's tokens' — and immediately defines the unit (100 tokens = 1 US cent). It also draws a hard line against the quote tools ('what a piece costs comes from its own quote (make_pictures, series_quote, picture_price)'), which are actual siblings in the list, so an agent can route without opening a 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?

Gives an explicit trigger ('Read it before quoting a spend') and names the alternatives that handle a different question (pricing a piece). When-to-use and when-to-use-something-else are both stated, not inferred.

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.