Skip to main content
Glama

get_credits

get_credits

Get user balance (guide credits + AI tokens)

Returns the authenticated user's full balance.

SERPmantics has TWO distinct currencies:

  • credits (credits): how many NEW GUIDES the user can still create. Consumed once per guide creation. "unlimited" if the user's plan grants unlimited guide creation (hasUnlimitedCredits: true).

  • AI tokens (tokens): pool consumed by every AI feature (meta, outline, intent, internal-links, EEAT, EEAT competitors…). Each feature has its own cost — call /api/v1/tokens-usage to get the per-feature pricing.

Do not confuse the two: running out of credits blocks new guides; running out of tokens blocks AI features inside existing guides.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavior disclosure. It reveals that the tool returns the authenticated user's balance (implying auth requirement) and details the unlimited credits case via hasUnlimitedCredits. It also clarifies the meaning of the two currencies, providing valuable context beyond a plain 'get balance'. However, it does not mention response format or error conditions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured, opening with a concise statement of purpose and using markdown bullets to clearly separate the two currencies. It is moderately long but every sentence contributes valuable semantic detail without redundancy. The front-loaded core purpose allows an agent to quickly grasp the tool's function.

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?

Given the absence of an output schema, the description compensates by explaining the meaning of credits and tokens, the unlimited credits scenario, and pointing to a separate endpoint for pricing. It does not detail the exact JSON response structure or error behavior, but for a simple zero-parameter balance check, it is reasonably complete and actionable.

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 has zero parameters and schema coverage is 100% (empty schema). The description adds meaning by interpreting the response semantics (credits vs tokens), which helps the agent understand the output. No parameter documentation is needed since there are none, matching the baseline for 0 params.

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 clearly states the tool's purpose: 'Get user balance (guide credits + AI tokens)' and explains it returns the authenticated user's full balance. It distinguishes the two currencies and differentiates from sibling tools like get_credit_ledger or get_tokens_usage by focusing on the aggregate balance.

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

Usage Guidelines3/5

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

The description provides implied usage context by explaining when credits vs tokens matter (blocking new guides vs AI features), but it does not explicitly name alternative tools or state when to use this tool instead of them. It references /api/v1/tokens-usage for pricing, but absence of direct alternative guidance leaves room for improvement.

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.

TDQS

B3.4/5.0
Disambiguation4/5

Most tools target distinct resources (guides, eeat, intent, internal_links, meta, outline, score, credits, tokens). However, some pairs like create_eeat and create_eeat_competitors are very similar and could cause confusion, though their descriptions clarify the difference.

Naming Consistency4/5

Tools consistently use a verb_noun pattern (create_, get_, delete_). Minor inconsistencies include 'get_aissistant_tokens' (typo) and 'get_credit_ledger' (singular vs plural), but overall the pattern is clear.

Tool Count4/5

28 tools is on the higher end but justifiable for a comprehensive SEO analysis platform covering guides, multiple AI features, EEAT, credits, and tokens. A few tools could be merged (e.g., get_credits and get_aissistant_tokens), but the count is still reasonable.

Completeness4/5

The tool surface covers CRUD for guides and most AI features, plus token/credit management. A notable gap is the lack of a get_score tool after create_score, and some features like updating EEAT analysis are absent. Overall, the core workflows are supported.

Resources