Skip to main content
Glama

Estimate Google Flow credits

flow_estimate_cost
Read-only

Estimates the credits a Google Flow generation will use before generating and lists the current model's allowed video lengths, resolutions, and formats without spending credits.

Instructions

Shows how many credits a generation will use BEFORE generating (Flow's own 'Generating will use N credits'), plus the live options for the current model: allowed video length range, resolutions and formats. Configures Flow's settings panel but never submits, so it spends no credits.

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
modelNoOptional model name as shown in Flow (e.g. 'Veo 3.1 - Fast', 'Veo 3.1 - Quality', 'Nano Banana Pro'). Omit to keep Flow's current default.
media_typeNovideo
resolutionNoVideo resolution as offered by Flow, e.g. '720p' or '360p' (cheaper). Omit to keep Flow's current setting.
aspect_ratioNo
outputs_countNo
duration_secondsNoVideo length in seconds. Flow's allowed range depends on the model (e.g. Omni 1.2 Flash: 3-15 s) and is checked live; omit to keep Flow's current length.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/destructiveHint false, but the description adds materially: it modifies Flow's settings panel yet commits nothing, spends no credits, and validates duration limits live against the model. That live-validation and no-spend behavior is exactly the kind of context annotations cannot express. Minor tension: 'configures Flow's settings panel' implies UI state change under readOnlyHint, though it is disclosed rather than hidden, so this is not a contradiction.

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 tight sentences, front-loaded with the credits estimate and followed by the secondary return data and the no-spend guarantee. No filler, no restatement of the title.

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?

There is no output schema, so the description carries the return-shape burden and does so by quoting Flow's own 'Generating will use N credits' phrasing plus the option lists. All parameters are optional with defaults, and the omission semantics ('omit to keep Flow's current setting') are covered by the schema itself.

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 50%, and the description only adds meaning for duration ('Flow's allowed range depends on the model ... and is checked live') and resolution cost ordering ('360p cheaper'), leaving media_type, aspect_ratio and outputs_count to the schema. The added model-dependence of duration is genuinely useful, so this sits at the baseline-plus level rather than above it.

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 ('shows how many credits a generation will use') and pairs it with a second concrete output (allowed video length range, resolutions, formats), which cleanly separates it from the generation siblings like flow_generate_video and flow_generate_image. Reading this alone tells an agent exactly what the tool returns.

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?

The 'BEFORE generating' framing plus 'never submits, so it spends no credits' makes the selection condition clear: use this to price a generation instead of calling a generate tool. It stops short of naming a specific alternative sibling to call afterward, which keeps it from a 5.

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