Skip to main content
Glama

Colorize photo

colorize_photo

Colorize a photo from a public URL. POST {img} to ai.imgkits.com/api/deoldify (AiController Shangse). Black-and-white photos work best; a response with a null URL is treated as failure. Synchronous. Cost: 2 credits per call; mcp-credit-gateway charges before forwarding. Requires Authorization: Bearer sk_live_... on tools/call.

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": {
      "source_url": "<source_url>"
    },
    "name": "colorize_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
source_urlYesPublic http(s) URL of the photo to colorize (JPG/PNG/WebP). Black-and-white photos work best.
idempotency_keyNoOptional caller correlation key, echoed in the result. Billing is handled by mcp-credit-gateway.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Well beyond the annotations: it discloses synchronous execution, a 2-credit cost charged before forwarding by mcp-credit-gateway, a required Bearer token on tools/call, and that a null URL in the response means failure. These are exactly the operational facts an agent needs. Minor gap: nothing about timeouts, retries, or result URL lifetime.

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?

Dense and front-loaded: purpose first, then endpoint, suitability, failure semantics, cost, and auth. Some redundancy (the black-and-white note appears twice, and the endpoint detail is low-value for an agent) but nothing is padding.

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?

With no output schema, the description carries the return burden and does it adequately by implying a URL result and defining the null-URL failure case. Remaining unknowns (image size limits, processing latency) are secondary for a two-parameter synchronous call.

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%, so the baseline is 3, and the description reinforces source_url's constraint (public URL, best with black-and-white input). It says nothing about idempotency_key, but that parameter is fully documented in the schema as a correlation key.

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+resource ('Colorize a photo') plus the input form ('from a public URL'), which cleanly separates it from sibling image tools like upscale_image or translate_image. The endpoint and controller name add no ambiguity.

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

Usage Guidelines3/5

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

The line 'Black-and-white photos work best' gives a suitability hint, which implies when the tool is the right pick. However, there is no explicit when-not guidance and no routing to alternatives such as upscale_image, so the agent must infer the choice.

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.