Skip to main content
Glama

enhance_image

Upscale, restore, remove backgrounds, colorize, or denoise images by providing a file path, URL, or base64 input. Supports face enhancement, scaling factors, and result display options.

Instructions

Enhance images with upscaling, restoration, background removal, and more. Accepts file paths directly (e.g. C:\photo.jpg), URLs, or base64. File paths are automatically processed without displaying the base64 string.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageYesInput image as: file path (e.g. C:\photo.jpg or /home/user/image.png), URL, base64 string, or image cache ID. File paths are automatically handled without displaying base64.
modelNoSpecific model to use for enhancement
scaleNoUpscaling factor (for upscale operation)4
operationYesEnhancement operation to perform
batch_sizeNoNumber of images to process
return_maskNoReturn mask for background removal
display_modeNoHow to return the image: display (show image), save (return base64 for saving), both (show image and provide base64)display
face_enhanceNoEnhance faces during upscaling
Install Server

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden. It only mentions that file paths are automatically processed without displaying the base64 string; it does not disclose whether inputs are modified, how results are returned, or what side effects or limitations exist.

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 compact and front-loaded with the core action and operations, followed by accepted input formats. It avoids wordiness, though 'and more' is slightly vague and could be replaced with the remaining operations.

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

Completeness3/5

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

The schema covers all parameters in detail, which mitigates the lack of an output schema and annotations. Still, for a tool with 5 operations and 8 parameters, the description does not explain return behavior, operation-specific nuances, or when to use this tool over siblings, leaving meaningful gaps.

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 description coverage is 100%, so the schema already explains all 8 parameters. The description adds little beyond restating the image input handling that is already documented in the schema, so the baseline of 3 applies.

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?

The description uses a specific verb ('Enhance') and resource ('images') and lists several concrete capabilities such as upscaling, restoration, and background removal. It is clear about the tool's purpose, though it does not explicitly contrast itself with sibling tools like transform_image.

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?

The description says the tool accepts file paths, URLs, or base64, but gives no guidance on when to use enhance_image versus transform_image or other sibling tools. There are no exclusions, prerequisites, or alternative selection criteria.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bratcliffe909/segmind-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server