Skip to main content
Glama

Set Image Model

set_model

Choose the Gemini image model that powers image generation and editing to balance quality, speed, and cost.

Instructions

Switch the Gemini image model used by generate_image and edit_image. Options: 'nano-banana-pro' (highest quality, ~$0.09/img), 'nano-banana-2' (newest Flash, 4K capable, ~$0.05/img), 'nano-banana' (original Flash, fastest, ~$0.04/img). You can also pass a raw Gemini model ID directly.

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": {
      "model": "<model>"
    },
    "name": "set_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesModel name: 'nano-banana-pro', 'nano-banana-2', 'nano-banana', or a raw Gemini model ID like 'gemini-3-pro-image-preview'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses per-image cost and quality/speed tradeoffs for each option and that the setting affects generate_image and edit_image, but it omits persistence scope (session vs global), whether batch generation is affected, and what happens on an invalid model ID.

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 sentences, front-loaded with the action and then the option list with tradeoffs. Every clause carries information; nothing is redundant 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 single-parameter setter with no output schema and no annotations, the description covers the options, their tradeoffs, and the downstream effect. Only the persistence/error semantics are absent.

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 coverage is 100% and the schema already lists the accepted values, yet the description adds real decision-making meaning by attaching quality, speed, and approximate cost to each option and by permitting raw Gemini model IDs.

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 and resource ("Switch the Gemini image model") and names the two tools it affects, generate_image and edit_image, which separates it from settings siblings like set_resolution and set_url_lifetime.

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?

Makes clear the tool is used to choose which model subsequent image generation/editing calls will use, and implicitly that it should precede those calls. It never states an explicit when-not-to-use case or whether the setting persists across a session.

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