Skip to main content
Glama

Simular custo no Flow

flow_custo
Read-only

Simulates a Flow video or image generation and returns the exact credit cost Flow displays without generating any content.

Instructions

Simula uma geração no Flow e devolve o custo exato em créditos que o Flow mostra, SEM gerar nada.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tipoNovideo
modeloNoModelo de vídeo (veo-3.1-lite/fast/quality, omni-1.1-flash) ou de imagem (nano-banana-2, nano-banana-pro, nano-banana-2-lite). Padrão: veo-3.1-fast / nano-banana-2.
promptNoOpcional; usado só para deduzir proporção e duração.
duracaoNoSegundos. Só vale para omni-1.1-flash (4, 6, 8 ou 10). Se omitida, é lida do prompt ('10 segundos'). Os Veo 3.1 são sempre 8s (para mais, use flow_estender_video).
projetoNoProjeto do Flow: id, link ou nome exato (veja flow_projetos). Se omitido, usa o projeto padrão (flow_projeto_padrao; de início 'Claude MCP').
proporcaoNo
resolucaoNoSó para omni-1.1-flash. Padrão 720p.
quantidadeNoQuantos vídeos gerar com o mesmo prompt (multiplica o custo).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.16.1

TDQS

A4/5.0
Behavior4/5

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

The description is consistent with readOnlyHint=true and reinforces it by stressing that nothing is generated, and it discloses that the returned value matches exactly what the Flow UI shows. It does not cover edge behavior such as invalid model handling or where the cost baseline comes from beyond the UI, so it is good but not exhaustive.

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?

A single front-loaded sentence with zero filler, and the counterfactual ('SEM gerar nada') is placed where it reads first. Nothing to trim.

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 eight optional parameters, no output schema, and rich parameter descriptions in the schema, the description covers the core contract (simulate, return cost, generate nothing). It could say more about whether the response includes per-item cost breakdown for quantity>1, but nothing essential to calling it correctly is missing.

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 75% and the schema already explains model options, duration rules, project resolution, and quantity cost multiplication. The description adds no parameter-level meaning of its own, so the baseline 3 applies.

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 (simulate a Flow generation, return credit cost) and explicitly contrasts with generation using 'SEM gerar nada', which cleanly separates it from flow_gerar_video and flow_gerar_imagem. An agent can tell what it does without opening the schema.

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?

Implied pre-generation cost check is clear from 'simula ... e devolve o custo', but there is no explicit when-to-use or when-not, and no reference to alternatives such as flow_creditos or flow_gastos. The guidance is inferable but not stated.

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