Skip to main content
Glama

flow_estimate_cost

Estimate image or video generation costs before running a job, including model, resolution, size, count, and duration, so you can plan budgets without generating content.

Instructions

Estimate the cost of a generation before running it (nothing is generated).

Args: kind: 'image' or 'video'. model: Image model alias/id (ignored for video). count: Number of images. image_size: '1K', '2K' or '4K'. duration_seconds: Video length. resolution: '360p', '720p', '1080p' or '4k'.

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

Input Schema

NameRequiredDescriptionDefault
kindNovideo
countNo
modelNo
image_sizeNo1K
resolutionNo720p
duration_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are present, so the description carries the full behavioral burden. It does disclose that nothing is generated and that 'model' is ignored for video, but it never says what the estimate actually returns (cost value? currency? units?), whether there is any rate limit, or how the estimate relates to final billing.

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 leading sentence is front-loaded and does the most work; the Args block is a compact, scannable enumeration with no filler. Slightly list-like rather than explanatory, but nothing is wasted.

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?

For a six-parameter, all-optional tool with no output schema and no annotations, the definition covers inputs reasonably but leaves the return value undefined. An agent knows how to call it but not what it will get back or how to interpret the figure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it largely does: it maps kind, model, count, image_size, duration_seconds and resolution to their meanings and enumerates the accepted values for kind, image_size and resolution. It stops short of stating defaults, units, or that count only applies to images and duration only to video.

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 — 'estimate the cost of a generation' — and adds the critical qualifier '(nothing is generated)', which separates it from the flow_generate_* siblings. It does not name a specific sibling, so it lands at 4 rather than 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?

The phrase 'before running it' implies the usage window (pre-flight check ahead of a generation call), which is useful implicit guidance. There is no explicit when-not, no mention of what to do with the estimate, and no named alternative.

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