Skip to main content
Glama

estimate_generation

Read-onlyIdempotent

Get server pricing for exactly one owned upload or result. Does not spend credits.

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": {
      "parameters": "<parameters>"
    },
    "name": "estimate_generation"
  }
}

Input Schema

NameRequiredDescriptionDefault
parametersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / $defs / GenerationParameters / properties / keep_color
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "boolean"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Keep Color"
      -}
  2. Changed3 schema fields changed
    • removedInput schema / $defs / GenerationParameters / properties / detail
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "enum": [
      -        "1",
      -        "2",
      -        "3"
      -      ],
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Detail"
      -}
    • addedInput schema / $defs / GenerationParameters / properties / detail_enhance
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Detail Enhance"
      +}
    • removedInput schema / $defs / GenerationParameters / properties / sharpness_mode
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "boolean"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Sharpness Mode"
      -}
  3. Changed1 schema field changed
    • addedInput schema / $defs / GenerationParameters / properties / sharpness_mode
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Sharpness Mode"
      +}
  4. Changed1 schema field changed
    • changedInput schema / $defs / GenerationParameters / properties / resolution / enum
      Previous value: -[
      -  "720p",
      -  "1080p",
      -  "2K",
      -  "4K"
      -]New value: +[
      +  "720p",
      +  "1080p",
      +  "2K",
      +  "4K",
      +  "6K",
      +  "8K",
      +  "10K",
      +  "12K"
      +]
  5. First observed

TDQS

A3.7/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 safety is covered structurally; the description still earns credit by adding two things annotations cannot express — that the call incurs no credit charge, and that the target must be an owned upload or result (an authorization constraint). It omits what the pricing response contains, which is a smaller gap.

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 short sentences, front-loaded with the core action and immediately followed by the most decision-relevant fact (no credits spent). No filler or restatement of the title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Adequate for a cheap read-only estimate call, but with no output schema the description should at least indicate what pricing is returned (credit amount? per-resolution breakdown?), since an agent calling this needs to know how to interpret the result. The parameter object also remains largely opaque.

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 0% for a nested object with eight fields (fps, resolution, upload_id, source_result_id and four boolean toggles), so the schema alone leaves much undefined. The phrase 'exactly one owned upload or result' is genuinely additive because it conveys the mutual exclusivity between upload_id and source_result_id that the anyOf schema does not enforce, but no field-level meaning is supplied.

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?

States a specific verb and resource ('Get server pricing') and scopes it precisely to 'exactly one owned upload or result', which clearly separates it from the create_generation sibling that actually renders. It stops short of naming siblings explicitly, but the read-only pricing framing is unambiguous.

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?

'Does not spend credits' implies the intended use case — checking cost before committing to a generation — but the description never says when to reach for this versus create_generation or list_credit_transactions, nor does it state prerequisites such as the upload/result already existing and being owned by the caller.

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