Skip to main content
Glama

Colorize a black and white image, keeping the original resolution and detail

colorize_image

Colorize a black and white image, keeping the original resolution and detail. 5 credits per image, flat. Pass a public URL, a URL from create_upload, or (small images only, under about 2.25 MB) a base64 data URI. Charges credits from the connected Upsampler account; a failed job is refunded automatically. Result URLs expire after 3 hours (get_job reissues fresh ones) and jobs are deleted after 7 days.

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": {
      "imageUrl": "<imageUrl>"
    },
    "name": "colorize_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNoWait up to about 50 seconds for the result before returning (default true). If the job is still running, call get_job with the returned id.
imageUrlYesURL of the image to process, or the image encoded as a base64 data URI. Must be a publicly accessible URL (http/https), a URL from POST /uploads, or a base64 data URI. Supported formats are png, jpeg, jpg, and webp. A base64 image must be under 2.25 MB, since it travels inside the capped request body; upload anything larger. Keep the file at a URL of your own unchanged until the job completes; a file that changes after submission fails the job with a refund.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (which only say it is a non-read-only, open-world, non-idempotent operation), the description discloses the flat 5-credit cost, that credits come from the connected account, that failed jobs are refunded automatically, and that result URLs expire in 3 hours while jobs are deleted after 7 days. That is exactly the operational context an agent needs before spending credits.

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?

The opening sentence states the purpose, then each following sentence carries a distinct, decision-relevant fact (pricing, input sources, refunds, expiry). There is no filler and the most important framing is front-loaded.

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

Completeness5/5

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

With no output schema, the description correctly covers return behavior by explaining that result URLs expire in 3 hours and that get_job reissues them. Combined with the credit/refund and retention details, nothing material is missing for a two-parameter job-submission tool.

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 coverage is 100%, so both imageUrl and wait are already documented in detail, including the 2.25 MB base64 cap and the 50-second wait behavior. The description largely restates the source options and size limit rather than adding new meaning, so the baseline 3 applies.

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 and resource ('Colorize a black and white image') plus a scope qualifier ('keeping the original resolution and detail'). This is clearly distinct from siblings like upscale_image, depth_map, and remove_background, which transform images in different ways.

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?

It gives concrete input-acceptance rules (public URL, create_upload URL, or base64 under ~2.25 MB) that effectively tell the agent which source to use and when to fall back to uploads. It also routes to get_job for expired result URLs. It stops short of an explicit 'use this instead of upscale_image' comparison, so a 4 rather than 5.

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