Skip to main content
Glama

What an image would cost

estimate_image_cost
Read-onlyIdempotent

Says what generating would cost in credits, without generating. Use it when the user asks what something would cost. You do not need it before generating: the confirmation prompt already states the price.

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

Input Schema

NameRequiredDescriptionDefault
countNoHow many images. Defaults to 1.
modelNoA model from list_image_models. Defaults to the workspace one.
resolutionNo1K, 2K or 4K. Larger costs more at some models.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered structurally. The description still adds genuinely new context: that the call consumes nothing ('without generating') and that pricing is also surfaced at the confirmation prompt, which prevents redundant calls. No contradiction with the annotations.

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?

Three short sentences, each earning its place: what it does, when to call it, and when not to. The key distinction ('without generating') is front-loaded in the first clause.

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?

With zero required parameters, full schema coverage and a no-op safety profile, the only remaining ambiguity is the shape of the return value (a bare credit figure versus a breakdown), which is not addressed and there is no output schema to cover it. For a simple read-only estimator this is a minor gap rather than a blocking one.

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%, so count, model and resolution are already documented, including the default behaviours and the resolution/cost relationship. The description adds nothing parameter-level beyond the general notion of cost, 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 states a specific verb and resource: it reports the credit price of an image generation without performing one. It is distinguishable from generate_image (which actually spends credits) and from the sibling estimators by tool name and title, though the body text says only 'generating' rather than 'image generation', so the resource specificity leans on the title.

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?

It gives both the trigger ('when the user asks what something would cost') and an explicit exclusion ('You do not need it before generating: the confirmation prompt already states the price'), which pre-empts a very likely wrong invocation. This is exactly the when/when-not guidance the dimension rewards.

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