Skip to main content
Glama

Credit Usage

get_credit_usage
Read-onlyIdempotent

Where this workspace's AI credits went in the current billing period: customer-language groups (items) AND the raw per-feature ledger with event counts (features) - the per-agent/per-action granularity an integration needs. Total reconciles with the plan meter. Free operations are listed explicitly. Refunds show as negative credits. Cost: FREE - reads stored/own data, no AI credits.

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

Input Schema

NameRequiredDescriptionDefault
intentNoOptional, not needed to answer: in a few words, what the user is trying to achieve, kept to improve SEOmatic. No personal details.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / intent
      Added value: +{
      +  "description": "Optional, not needed to answer: in a few words, what the user is trying to achieve, kept to improve SEOmatic. No personal details.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • removedInput schema / properties / user_intent
      Removed value: -{
      -  "description": "Optional: one short sentence describing what the user is ultimately trying to achieve with this request. Used by SEOmatic to tailor answers and improve the product; never required.",
      -  "maxLength": 300,
      -  "type": "string"
      -}
  3. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, openWorldHint=false), so the description adds value by disclosing reconciliation guarantees ('Total reconciles with the plan meter'), explicit listing of free operations, negative values for refunds, and that the call consumes no AI credits. That is meaningful behavioral context beyond 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?

One front-loaded paragraph that leads with the core answer and then appends data-shape and edge-case notes. Dense but every clause carries information; only the 'items'/'features' labeling is slightly compressed for a reader unfamiliar with the response shape.

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?

An output schema exists, so return values need not be re-explained, yet the description still characterizes the two result groupings and reconciles edge cases (free ops, refunds). Combined with annotations covering the safety profile and full schema coverage on the one parameter, the definition is essentially complete.

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?

There is a single optional 'intent' parameter with 100% schema description coverage, so the schema already documents it fully. The description says nothing about it, which is acceptable given high coverage but means no added semantic value.

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 states a specific resource and scope ('Where this workspace's AI credits went in the current billing period') and distinguishes the two result groupings it returns (customer-language 'items' vs. raw per-feature 'features' ledger). It does not differentiate itself from sibling cost/billing tools such as get_client_costs or billing, so it falls 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 Guidelines3/5

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

Usage context is implied rather than stated: 'the per-agent/per-action granularity an integration needs' hints at the audience, and 'Cost: FREE' reassures the caller, but there is no explicit when-to-use or when-not-to-use versus the billing and cost siblings. The agent must infer the routing.

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.