Skip to main content
Glama
runapi-ai

Nano Banana MCP Server

by runapi-ai

text_to_image

Turn text prompts into generated images by creating a Nano Banana task on RunAPI, returning a task ID, status, and output URLs.

Instructions

Create a Nano Banana task on RunAPI (text to image). Returns a task id, status, and output URLs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
waitNoPoll until the task reaches a terminal status.
modelNoRunAPI model slug for this model line.
promptNo
timeout_msNo
aspect_ratioNo
callback_urlNo
output_formatNo
poll_interval_msNo
output_resolutionNo
reference_image_urlsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changedv0.1.12
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / aspect_ratio / anyOf
      Added value: +[
      +  {
      +    "const": "1:1",
      +    "type": "string"
      +  },
      +  {
      +    "const": "9:16",
      +    "type": "string"
      +  },
      +  {
      +    "const": "16:9",
      +    "type": "string"
      +  },
      +  {
      +    "const": "3:4",
      +    "type": "string"
      +  },
      +  {
      +    "const": "4:3",
      +    "type": "string"
      +  },
      +  {
      +    "const": "3:2",
      +    "type": "string"
      +  },
      +  {
      +    "const": "2:3",
      +    "type": "string"
      +  },
      +  {
      +    "const": "5:4",
      +    "type": "string"
      +  },
      +  {
      +    "const": "4:5",
      +    "type": "string"
      +  },
      +  {
      +    "const": "21:9",
      +    "type": "string"
      +  },
      +  {
      +    "const": "auto",
      +    "type": "string"
      +  },
      +  {
      +    "const": "1:4",
      +    "type": "string"
      +  },
      +  {
      +    "const": "1:8",
      +    "type": "string"
      +  },
      +  {
      +    "const": "4:1",
      +    "type": "string"
      +  },
      +  {
      +    "const": "8:1",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / aspect_ratio / enum
      Removed value: -[
      -  "1:1",
      -  "9:16",
      -  "16:9",
      -  "3:4",
      -  "4:3",
      -  "3:2",
      -  "2:3",
      -  "5:4",
      -  "4:5",
      -  "21:9",
      -  "auto",
      -  "1:4",
      -  "1:8",
      -  "4:1",
      -  "8:1"
      -]
    • removedInput schema / properties / aspect_ratio / type
      Removed value: -"string"
    • addedInput schema / properties / callback_url
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "nano-banana",
      -  "nano-banana-2",
      -  "nano-banana-pro"
      -]New value: +[
      +  "nano-banana",
      +  "nano-banana-2",
      +  "nano-banana-2-lite",
      +  "nano-banana-pro"
      +]
    • addedInput schema / properties / output_format / anyOf
      Added value: +[
      +  {
      +    "const": "png",
      +    "type": "string"
      +  },
      +  {
      +    "const": "jpeg",
      +    "type": "string"
      +  },
      +  {
      +    "const": "jpg",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / output_format / enum
      Removed value: -[
      -  "png",
      -  "jpeg",
      -  "jpg"
      -]
    • removedInput schema / properties / output_format / type
      Removed value: -"string"
    • removedInput schema / properties / output_resolution / enum
      Removed value: -[
      -  "1k",
      -  "2k",
      -  "4k"
      -]
    • addedInput schema / properties / poll_interval_ms / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / prompt
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / reference_image_urls
      Added value: +{
      +  "items": {},
      +  "type": "array"
      +}
    • addedInput schema / properties / timeout_ms / maximum
      Added value: +9007199254740991
  2. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does add real value by disclosing the async task model and the return payload (task id, status, output URLs), which compensates for the absent output schema. However, it omits the default polling behavior of 'wait', timeout semantics, and cost/auth implications that the check_pricing and login siblings hint at.

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?

Two tight sentences with the action and the return shape front-loaded, and no filler. It is efficient, though arguably too short given the tool's 10-parameter surface.

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

Completeness2/5

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

For a 10-parameter, zero-required, annotation-free asynchronous generation tool with no output schema, the description is far too thin. It explains the result payload but leaves the async lifecycle, model/quality options, and optional inputs such as reference_image_urls and callback_url entirely to the schema.

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 only 20% across 10 parameters, so the description is expected to compensate, and it does not — prompt, model selection, aspect_ratio, reference_image_urls, callback_url, and output_format are all left unexplained. The only text offered concerns the return value, not the inputs.

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?

Specific verb ('Create') plus resource ('Nano Banana task') and the parenthetical '(text to image)' separates it from the sibling edit_image, which implies image-in/image-out. It is clear what the tool produces, though it never names edit_image as the contrasting alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to choose this over edit_image, nor any mention of the async workflow the schema implies (wait defaults to true, otherwise the sibling get_task must be polled). The agent must infer all usage conditions from the schema.

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

Deploy Server

Other Tools