Skip to main content
Glama
mordor-forge

gemini-media-mcp

by mordor-forge

Estimate cost

estimate_cost
Read-onlyIdempotent

Calculate the cost of image, video, speech, or music requests before running them, and compare models, check remaining budget, and see if approval is required.

Instructions

Estimate the cost of an image, video, speech or music request before running it, optionally comparing all models; also reports remaining budget and whether approval is needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoSpeech: the text to be spoken (length drives cost)
countNoNumber of images/clips/songs (default 1)
modelNoModel ID or alias (default model when omitted)
compareNoAlso estimate the same request on every other active model of this media type
imageSizeNoImages: 512, 1K, 2K or 4K
mediaTypeYesimage, video, speech or music
resolutionNoVideo: 720p, 1080p or 4k (Omni also 360p)
inputImagesNoImages: number of reference/source images
generateAudioNoVideo on Vertex AI: false for the cheaper silent rate
durationSecondsNoVideo: clip length (default 8)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteYes
modelYes
estimateYes
warningsNoLifecycle notices (deprecation, shutdown, replacement) and budget problems
alternativesNo
needsApprovalYesTrue when the call would exceed the confirmation threshold and needs approvedCostUsd
budgetRemainingNo
wouldExceedBudgetNoTrue when a budget would refuse this call right now (see warnings)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/no open-world, so the safety profile is covered. The description adds real behavioral context beyond that: the call compares models only when requested and additionally surfaces remaining budget and whether approval is needed, which is not derivable from the annotation block.

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?

A single front-loaded sentence leading with the core purpose, then two appended clauses for the optional compare behavior and extra outputs. Every clause carries information, though the semicolon-chained tail is slightly dense.

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 a 100% covered schema, an output schema that documents return values, and annotations covering the safety profile, the description supplies the missing intent layer (multi-media, pre-flight, optional comparison). It is adequate for correct invocation, though it says nothing about output units or error conditions, which is acceptable given the output schema.

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% and every parameter (count, model, compare, imageSize, resolution, durationSeconds, etc.) is documented in the schema itself. The description's remark about 'optionally comparing all models' duplicates the existing compare parameter description, so it adds little beyond the structured fields — baseline 3.

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 (estimate) and resource (cost of image/video/speech/music requests) and frames it as a pre-flight step ('before running it'), which implicitly separates it from the generate_*/edit_* siblings. It also names the secondary outputs (remaining budget, approval need), so an agent knows exactly what this 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?

'before running it' gives a clear usage context: call this prior to a generation request to preview spend. It does not name explicit alternatives or when-not-to-use conditions (e.g. relation to get_usage or get_config), so it stops short of full routing guidance.

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