Skip to main content
Glama

estimate_cost

Calculate image generation costs before processing based on quality settings and output quantity to manage media production budgets.

Instructions

Estimate the cost of an image generation before executing. Cost: $0.18

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qualityNoGeneration quality levelstandard
num_outputsNoNumber of images to generate

Implementation Reference

  • The `estimate_cost` tool (listed in the header comment) is not explicitly handled in `handle_tools_call`. Instead, it is caught by the default case and forwarded to the remote MCP API server via `make_request`.
    if tool_name == "estimate_video_cost":
        return _handle_estimate_video_cost(arguments)
    
    if tool_name == "get_task":
        return _handle_get_task(arguments)
    
    # Default: forward to MCP API
    response = make_request("/tools/call", {
        "name": tool_name,
        "arguments": arguments
    })
    return response
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions the cost ('$0.18') but doesn't specify if this is per image, per request, or how it varies with parameters. No information about rate limits, authentication needs, or what happens when invoked is provided.

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?

The description is brief and front-loaded with the core purpose. However, the cost information ('Cost: $0.18') could be better integrated or explained, making it slightly less than perfectly structured.

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

Completeness2/5

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

For a cost estimation tool with no annotations and no output schema, the description is incomplete. It doesn't explain what the tool returns (e.g., cost breakdown, total estimate) or how the cost calculation works with the parameters, leaving significant gaps for agent understanding.

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 the schema fully documents both parameters. The description doesn't add any parameter-specific information beyond what's in the schema, maintaining the baseline score of 3 for high schema coverage.

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 clearly states the tool's purpose: estimating cost before image generation execution. It specifies the resource (image generation) and verb (estimate cost), but doesn't distinguish from sibling tools like 'estimate_music_cost' or 'estimate_video_cost' beyond mentioning 'image' in the description.

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?

The description implies usage context ('before executing') suggesting this should be used prior to actual generation, but doesn't explicitly state when to use this versus alternatives like 'generate_image' or provide exclusion criteria. The context is implied rather than explicitly defined.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/elestirelbilinc-sketch/vap-showcase'

If you have feedback or need assistance with the MCP directory API, please join our Discord server