Skip to main content
Glama
RecurPost MCP Server
by dinwal

ai_credits

Read-only

Check workspace AI post and image credits—total, used, remaining, add-ons, and reset timing—before generating content or images.

Instructions

Show the workspace owner's AI post and AI image credits: total, used, remaining, add-ons and when they reset. Check it before generating content or images.

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

Input Schema

NameRequiredDescriptionDefault
workspace_idNoWorkspace to act in (ws_id from workspace_list). Omit to use your default workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so safety is covered structurally; the description adds genuine value by specifying that these are the workspace owner's credits and by listing the returned breakdown including reset timing, which matters with no output schema. It stops short of noting any caching, rate, or freshness behavior, so it is not fully transparent.

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?

Two sentences, front-loaded with the resource and its field breakdown, then the action trigger. No redundant restatement of the title or name and every clause carries information.

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 one-parameter read-only lookup with annotations and a fully documented schema, the description covers what the tool returns and when to call it. The only meaningful omission is that units/limits and behavior at zero credits are not described, though an agent can still call this correctly.

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?

Schema description coverage is 100% and the single optional workspace_id is fully documented in the schema itself ('ws_id from workspace_list', omit for default). The description adds no further parameter meaning, so the baseline 3 applies.

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 opens with a specific verb and resource ('Show the workspace owner's AI post and AI image credits') and enumerates exactly what is exposed: total, used, remaining, add-ons, and reset timing. It implicitly separates itself from the generation siblings via the 'check before generating' framing, but never names an alternative tool explicitly, which keeps it just short of a 5.

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?

The closing sentence gives a concrete trigger: 'Check it before generating content or images,' which ties usage to the generate_content_with_ai and generate_image_with_ai siblings. It supplies clear positive guidance but no exclusions or edge-case conditions (e.g., what to do when credits are zero).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.