Skip to main content
Glama

Estimate Cost Before a Call

estimate_cost
Read-onlyIdempotent

What a tool call will cost BEFORE you make it, and what is left: the billing kind (free, credits at actual vendor cost, credits, or a prepaid unit), the credit ceiling the product reserves, and the remaining balance (plus free questions left on the free plan). For a workspace on prepaid credits it also returns the exact price of the call from its args (prepaid_credits: tier, units, price_usd, balance_usd). Pass the tool and action you plan to call, as listed in tools/list, and its args. Cost: FREE, never charged.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tool": "<tool>"
    },
    "name": "estimate_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoThe arguments you plan to pass. With prepaid credits the exact price depends on them (keyword suggestions per seed, row-limited reads per 200 rows).
toolYesThe tool you plan to call, e.g. keyword_research or run_ai_visibility_scan.
unitsNoHow many units the call covers when it scales, e.g. keyword batches.
actionNoIts action, for consolidated tools (e.g. metrics).
intentNoOptional, not needed to answer: in a few words, what the user is trying to achieve, kept to improve SEOmatic. No personal details.
taskIdNotask_manage execute: the task to estimate.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / args
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "The arguments you plan to pass. With prepaid credits the exact price depends on them (keyword suggestions per seed, row-limited reads per 200 rows).",
      +  "type": "object"
      +}
    • 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. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive behavior, and the description adds real value on top: the estimate is never charged, it discloses a reserved credit ceiling, distinguishes billing kinds, and flags a plan-dependent variation (exact price only on prepaid credits). It spends some text re-describing return fields that the output schema already defines, which keeps it from a 5.

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-loaded with the core purpose and the free-of-charge guarantee in the first and last sentences. The middle parenthetical enumerations (billing kinds, prepaid_credits fields) are dense and partly redundant with the output schema, but the passage remains readable and every sentence is on-topic.

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 six-parameter, nested-args estimation tool with an output schema, the description covers the essential contract: what to pass, what pricing model variations exist, and that invoking it costs nothing. Details of the response object are delegated to the output schema, which is appropriate; only minor gaps remain around units/home-plan edge cases.

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 coverage is 100%, so the schema already documents args, tool, units, action, intent, and taskId. The description reinforces that 'tool' must come from tools/list and that 'action' applies to consolidated tools, but adds little beyond what the schema fields already state (including the args-pricing note, which is duplicated from the 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 ('what a tool call will cost BEFORE you make it') and enumerates exactly what comes back: billing kind, reserved credit ceiling, remaining balance, free questions left, and exact prepaid price. That scope ('before the call' / 'what is left') distinguishes it from sibling billing and credit-usage tools without needing to name them.

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?

Gives clear operating context: pass the tool and action 'as listed in tools/list' plus its args, and notes the call itself is FREE and never charged, which tells the agent it can be used liberally as a pre-flight check. It stops short of explicitly saying when-not to use it or naming the sibling tools (get_credit_usage, get_client_costs) it replaces for this purpose.

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.