Skip to main content
Glama

Price one generation for approval

aimixer_quote

Use this when the user wants to actually generate ONE image/video with the selected model and real account-owned inputs, after aimixer_options. Validates exact prompt, mode, media, current user coins and the rules of this account's route, and returns signed price, pricing_revision, approval_handle and approval_url. It creates a temporary approval record but does NOT debit or start generation; it is not a read-only operation. Missing prompt or references must be supplied before this call. An explicit human approval of the exact cost must precede aimixer_submit, using a user-clicked MCP App inline button, website approval, OR the literal user's unambiguous answer to the localized question 'Списать N монет за ?'. If the user answers affirmatively, pass the exact reply as submit.user_consent_text with this same signed quote and approval_handle. No generic 'yes', inferred consent or invented managed media references. The quote itself never authorizes spending. Pass lang = the user's language so the approval card matches the chat.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "family": "<family>"
    },
    "name": "aimixer_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoOriginal image/video/audio ChatGPT attachment, automatically imported before generation. No extra upload tool or public URL is needed.
langNoThe user's conversation language (ru, en, es, pt); the approval card uses it.
familyYes
valuesNoOnly model-public settings returned by aimixer_options.effective_values and its controls. Do not supply provider route, payer IDs, or billing internals.
audio_urlsNo
image_urlsNo
video_urlsNo
source_urlsNo
result_originsNo
audio_durationsNo
video_durationsNo
element_payloadsNo
canvas_project_idNo
file_media_familyNoType of attachment if MIME/name alone is ambiguous.
image_source_urlsNo
execution_model_keyNoExact typed execution model advertised by the selected family. Currently used by Topaz; never put provider ids into values.model.
image_urls_by_bucketNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / lang
      Added value: +{
      +  "description": "The user's conversation language (ru, en, es, pt); the approval card uses it.",
      +  "maxLength": 16,
      +  "minLength": 2,
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations say readOnlyHint=false, destructiveHint=false and non-idempotent; the description adds real context: it creates a temporary approval record, performs no debit and starts no generation, and the quote never authorizes spending. That resolves the ambiguity the annotations leave open. The only gap is that per-call idempotency/caching of a repeated quote is not discussed.

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?

Front-loaded with the trigger condition and tight about what it returns and does not do. The consent paragraph is long and drifts into aimixer_submit's parameter contract, which could be compressed or moved, but most sentences carry actionable constraints rather than filler.

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?

For a 17-parameter, nested-object, non-read-only pricing step, the description covers the workflow, side effects and consent gate that structured fields cannot express, and an output schema already documents return values. Remaining incompleteness is at the individual parameter level rather than in the core behavior model.

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 only 29% across 17 parameters, so the description should carry more weight than it does. It adds meaning for lang (approval card language) and clarifies prompt/mode/media validation plus which values are forbidden, but family, image_urls, source_urls, result_origins, element_payloads and the duration arrays get no explanation. It also references submit.user_consent_text, a parameter of a different tool, which can confuse which call carries 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 specifically that it prices ONE image/video generation with a selected model and account-owned inputs, returning a signed price, approval_handle and approval_url. It is clearly distinguishable from aimixer_options (which must precede it) and aimixer_submit (which spends), so an agent can route correctly from the description alone.

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?

Gives explicit preconditions (after aimixer_options, prompt and references must already exist) and explicit sequencing (an approved exact cost must precede aimixer_submit). It also enumerates the acceptable consent channels and forbids generic 'yes' or inferred consent, which is exactly the when/when-not guidance needed.

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.

Resources