Skip to main content
Glama

1ClickSiteAI

Check credits

check_credits
Read-onlyIdempotent

Returns how many site credits, Website Agent credits, and Lead Gen credits the workspace has left in its current cycle, and the name of its plan. Call it before create_site, create_lead_gen_batch, or generate_image to see whether the workspace can pay for the work, and again after a large job to see what it cost. Do not call it to learn anything about a site. It changes nothing and costs no credits. A workspace with no current plan returns 0 for all three kinds and a null plan, and can read its sites but cannot create or change anything.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
planYesName of the workspace's current plan, or null when it has none.
siteCreditsYesSite credits left in the current cycle.
agentCreditsYesWebsite Agent credits left in the current cycle.
leadGenCreditsYesLead Gen credits left in the current cycle.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotent, and non-destructive, but the description adds value beyond them: it states the call itself costs no credits and, critically, describes the degraded-workspace behavior (0 for all three kinds, null plan, read-only capability). That no-plan edge case is behavior an agent could not get from the annotations or the empty schema.

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-loads what is returned, then when to call, then the exclusion, then the edge case — a logical order with no filler. "It changes nothing and costs no credits" mildly overlaps with the readOnlyHint annotation, but the credit-consumption point is not fully implied by it.

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?

For a zero-parameter read tool with an output schema and full annotation coverage, this is nearly complete: return shape, timing, exclusions, and the zero-credit-plan case are all covered. The returned fields' structure is deferred to the output schema, which is appropriate.

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 and the schema is empty, so there is no parameter meaning to explain. The description correctly spends no words re-documenting nonexistent inputs, leaving returned fields to the output schema.

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: returns remaining site credits, Website Agent credits, Lead Gen credits for the current cycle, plus the plan name. It also draws an explicit boundary ("Do not call it to learn anything about a site"), separating it from siblings like site_status or check_page.

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 concrete when-to-use calls: before create_site, create_lead_gen_batch, or generate_image, and again after a large job to measure cost. It also gives an explicit when-not-to-use case, so an agent needs no inference to route correctly.

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