Skip to main content
Glama

Estimate credits for a job

estimate_media_job
Read-onlyIdempotent

Price an Odile Formats job in credits before anything is uploaded or charged; use it to tell the customer the cost and get their approval before unlock_job. Needs no sign-in and changes nothing. Photos are priced exactly. Reel, Feed and Square video outputs cost exactly 1 credit each; YouTube 16:9 costs 1 or 2 because the length is only known once the file is read. Returns { minimum_credits, maximum_credits, final_price_known, charge_now: 0, why }. An unknown preset or a photo count out of range returns an error naming the valid values (get_catalog lists them).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYes'video' for one video file, 'photos' for a set of still images.
outputsYes1 to 4 output preset names from get_catalog.presets (video presets for kind video, photo presets for kind photos); one finished file per preset.
photo_countNoRequired when kind is 'photos' (the call fails without it): how many source photos, 1 to 10. Must be omitted when kind is 'video'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / kind / description
      Added value: +"'video' for one video file, 'photos' for a set of still images."
    • addedInput schema / properties / outputs / description
      Added value: +"1 to 4 output preset names from get_catalog.presets (video presets for kind video, photo presets for kind photos); one finished file per preset."
    • addedInput schema / properties / photo_count / description
      Added value: +"Required when kind is 'photos' (the call fails without it): how many source photos, 1 to 10. Must be omitted when kind is 'video'."
  2. First observed

TDQS

A5/5.0
Behavior5/5

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

Annotations already mark the tool read-only and idempotent, and the description reinforces this with 'Needs no sign-in and changes nothing.' It adds significant behavioral detail: exact pricing for photos and most video presets, the length-dependent 1-or-2 credit range for YouTube, the exact return object shape, and error behavior for invalid presets or out-of-range photo counts.

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?

The description is dense but well-structured: purpose first, then usage timing, then pricing rules, return shape, and error behavior. Every sentence contributes distinct information, and there is no repetition of schema fields.

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

Completeness5/5

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

With no output schema, the description fully covers the return value, including minimum_credits, maximum_credits, final_price_known, charge_now: 0, and why. It also covers prerequisites, side effects, authentication needs, and error cases, making the tool fully callable without additional investigation.

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

Parameters5/5

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

Although schema coverage is 100%, the description adds real meaning beyond the schema: it explains which output presets cost exactly 1 credit and why YouTube may cost 1 or 2. It also clarifies that photo_count failures produce errors naming valid values, giving the agent useful expectations for that parameter.

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?

The description uses a specific verb ('Price') and resource ('an Odile Formats job in credits'), and immediately distinguishes the tool from the follow-up unlock_job by saying it runs 'before anything is uploaded or charged.' This makes its role unambiguous even among many sibling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states exactly when to use it: 'to tell the customer the cost and get their approval before unlock_job.' It also names get_catalog as the source of valid preset values, giving the agent an explicit alternative for validation. This is strong usage routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.