Skip to main content
Glama

AI Price

ai_price
Read-onlyIdempotent

Estimate JustClip MCP AI generation credit costs without spending credits; use the same inputs as ai_generate to preview pricing before creating.

Instructions

Price an AI generation in credits without spending anything. Same inputs as ai_generate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refsNoInputs: uploaded media, a frame or a span of the clip, or an earlier generation. role from ai_models (e.g. 'start', 'end', 'product').
modelNoA studio model id from ai_models (e.g. 'gpt-image-2.5-flare', 'kling-3.0-turbo', 'seedance-2.5-t2v').
clipIdNoThe clip it is for. Needed by every recipe except canvas.loop and art.extend; frames/spans come from it.
paramsNoFor a recipe (not a model): its params, see ai_models.
promptNo
recipeNoInstead of model: another recipe id (see ai_models), with params.
settingsNoModel settings from ai_models (duration, resolution, aspect_ratio, count…).
ownFootageNoThe user's statement that the footage is theirs or they have the rights. Required for edits of real footage. Set ONLY if the user said so.
templateIdNoA template id from ai_models, when using its preset.
productAuthorizedNoThe user's statement that they may promote this product/brand. Required for product shots. Set ONLY if the user said so.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds a meaningful behavioral fact those annotations cannot express: no credits are consumed, i.e. this is a free evaluation path. It does not describe the returned price shape, but that is a minor gap given the read-only annotations.

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 short sentences, zero filler, with the credit-free guarantee front-loaded before the input contract. Every clause carries information.

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?

No output schema exists, and the description does not explicitly say what is returned (a credit cost), though 'price ... in credits' strongly implies it. With 10 nested parameters and 0 required fields, the 'same as ai_generate' pointer is the key completeness aid and is present, so the definition is sufficient without exhaustively enumerating inputs.

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 90%, so the schema already documents nearly all 10 parameters. The description adds a genuinely useful cross-reference ('same inputs as ai_generate'), telling the agent the parameter contract mirrors that sibling tool rather than being a reduced set. It adds no per-parameter detail beyond this, which is acceptable at this coverage level.

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 (price) and resource (an AI generation) with an explicit scope qualifier: 'without spending anything'. It also directly relates itself to the sibling ai_generate ('Same inputs as ai_generate'), so an agent can tell these two apart without opening either schema.

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 dry-run framing ('without spending anything') clearly implies when to use this instead of ai_generate: check cost before committing credits. However, there is no explicit when-not or named alternative, so the routing is inferred rather than stated.

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