Skip to main content
Glama

Validate and quote a task without submitting it

prepare_generation
Read-only

Validate and normalize model inputs before creating a paid generation task; returns normalized settings and the maximum USD reservation required.

Instructions

Check actual model inputs and return normalized settings and the current maximum USD reservation. This tool does not upload files, create tasks or reserve funds. Pass the returned expectedRevision and an approved cap to create_task.

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": {
      "modelId": "<modelId>",
      "inputs": "<inputs>"
    },
    "name": "prepare_generation"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsYes
modelIdYes
maxCostUsdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered; the description reinforces this by enumerating the side effects it does not perform (no upload, no task, no reservation). It additionally discloses the concurrency contract by telling the caller to carry expectedRevision into create_task, which is real behavioral value beyond the annotations. It does not say whether the reservation quote is time-limited or how stale a returned revision becomes.

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?

Three short sentences, with the core action and the return values front-loaded before the negative scope and the handoff instruction. Every sentence carries distinct information and nothing is repeated from the title or schema.

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

Completeness3/5

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

There is no output schema, so the description must cover returns, and it names three (normalized settings, max USD reservation, expectedRevision) without describing their shape or format. Most importantly, the required free-form 'inputs' object is left entirely unexplained, which is the largest gap for a tool whose whole purpose is validating those inputs. Adequate as a workflow pointer, incomplete as a specification.

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

Parameters2/5

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

Schema description coverage is 0% across three parameters, including a free-form nested 'inputs' object with additionalProperties, so the description needs to compensate and largely does not. Only maxCostUsd gets an indirect gloss ('an approved cap'), while modelId and the shape of the required 'inputs' object are never explained. 'expectedRevision' is a return value, not one of the declared parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific action ('check actual model inputs and return normalized settings and the current maximum USD reservation') and the title frames it as a dry-run/quote. It is clearly distinguishable from create_task, which it names, and it implies a non-committal estimate. It stops short of contrasting with estimate_cost, so the boundary with that sibling is left implicit.

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?

Explicitly states what the tool does not do ('does not upload files, create tasks or reserve funds') and gives the follow-up path: pass expectedRevision and an approved cap to create_task. That is a clear when-to-use and when-not-to-use signal. No exclusion against estimate_cost or guidance on when a plain cost estimate suffices.

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