Skip to main content
Glama

deploy_image_generator

Deploy a reusable image generator that skills reference to produce images from a chosen model: creates it or appends a version.

An image generator is a named, versioned configuration that routes image generation calls to a specific model. Generators are private and owner-scoped. Skills reference them by UUID or uuid@version. You cannot deploy a new generator whose name matches an active platform scope=system generator (those are tier-level configs that are run-only and not listed or fetched).

Versioning: the first deploy with a given name creates the generator at version 1. Re-deploying the same name appends a new version and requires expected_version_token from the latest known version (returned by deploy/list/get). A new generator must omit the token; an existing one without a token returns Conflict.

Deploy-time validation: the model is checked against the pricing layer. A model that does not resolve to a known image endpoint with an authoritative price is rejected before any row is written.

Returns: {generator_id, name, description, current_version, version, version_token, status, scope, provider, model, generation_contract, config_hash, created_at}. Persist version_token for the next re-deploy.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesPayload for ``deploy_image_generator``: create a new image generator or append a new version to an existing one (owner-scoped, name-uniqueness within owner).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

The description goes well beyond the sparse annotations (readOnly=false, idempotent=false, destructive=false) by disclosing meaningful behavior: the model is validated against the pricing layer before creation, name collisions with system-scope generators are rejected, and the operation is non-idempotent because re-deploying appends a new version. This gives an agent an accurate mental model of side effects and failure modes.

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?

The description is organized into three clear blocks: purpose, versioning/scoping rules, and validation behavior. It is slightly long, but every sentence earns its place—there is no fluff or repetition of the schema. The most decision-relevant facts (create vs. append, system-scope collision, token requirement) are front-loaded.

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?

Given the moderate complexity (nested payload, optimistic concurrency, scope constraints), the description covers the essential operational context: what it returns (version, version_token, config_hash, etc.), why it can fail (platform scope collision, model validation), and how it interacts with sibling calls (list/get for tokens). It doesn't spell out the exact return schema, but the description references the return fields adequately for an agent to proceed.

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?

The schema already gives each parameter a descriptionhare and even adds a note explaining version_token semantics and deploy-time validation of model. It adds value on top of the schema by explaining exactly when expected_version_token is required (new vs. existing generator) and what a 'model must resolve to an authoritative price' means in practice. Minor gap: the description does not elaborate on generation_contract values beyond the schema's one-line summary, but the schema carries that load.

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 opens with a specific verb ('Deploy') and resource ('image generator'), then immediately states the core behavior: generators are created or versioned. It also answers 'what is this for' by explaining that skills reference generators to route image-generation calls to a model. This is unmistakably distinct from sibling tools like revoke_image_generator or list_image_generators.

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?

Clear operational rules are given: first deploy creates version 1, re-deploys append a version and require expected_version_token, and the token is obtained from deploy/list/get calls. There is also a concrete exclusion rule ('cannot deploy a new generator whose name matches an active platform-scope generator'). An agent knows exactly when and how to invoke this tool versus alternatives.

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.