Enhance the resolution and quality of images using Runware's advanced upscaling API. Transform low-resolution images into sharp, high-definition visuals. This function enables high-quality image upscaling with support for various input formats and flexible output options. The ma...
Part of the Mcp Runware MCP server. Enforce policies on this tool with Intercept, the open-source MCP proxy.
AI agents call imageUpscale to retrieve information from Mcp Runware without modifying any data. This is common in research, monitoring, and reporting workflows where the agent needs context before taking action. Because read operations don't change state, they are generally safe to allow without restrictions -- but you may still want rate limits to control API costs.
Even though imageUpscale only reads data, uncontrolled read access can leak sensitive information or rack up API costs. An agent caught in a retry loop could make thousands of calls per minute. A rate limit gives you a safety net without blocking legitimate use.
Read-only tools are safe to allow by default. No rate limit needed unless you want to control costs.
tools:
imageUpscale:
rules:
- action: allow See the full Mcp Runware policy for all 11 tools.
Agents calling read-class tools like imageUpscale have been implicated in these attack patterns. Read the full case and prevention policy for each:
Other tools in the Read risk category across the catalogue. The same policy patterns (rate-limit, allow) apply to each.
Enhance the resolution and quality of images using Runware's advanced upscaling API. Transform low-resolution images into sharp, high-definition visuals. This function enables high-quality image upscaling with support for various input formats and flexible output options. The maximum output size is 4096x4096 pixels - larger inputs will be automatically resized to maintain this limit. IMPORTANT: For inputImage, only accept: 1. Publicly available URLs (e.g., "https://example.com/image.jpg") 2. File paths that can be processed by imageUpload tool first 3. Runware UUIDs from previously uploaded images Workflow: If user provides a local file path, first use imageUpload to get a Runware UUID, then use that UUID here. Args: inputImage (str): Image to upscale. ACCEPTS ONLY: Public URLs, Runware UUIDs, or file paths (use imageUpload first to get UUID). Supported formats: PNG, JPG, WEBP upscaleFactor (int): Level of upscaling (2-4). Each level multiplies image size by that factor.For example, factor 2 doubles the image size. (default: 2) outputType (str, optional): Output format ('URL', 'dataURI', 'base64Data', default: 'URL') outputFormat (str, optional): Image format ('JPG', 'PNG', 'WEBP', default: 'JPG'). Note: PNG required for transparency. outputQuality (int, optional): Output image quality (20-99, default: 95) includeCost (bool, optional): Include generation cost in response taskUUID (UUID, optional): Unique task identifier Returns: dict: A dictionary containing the upscaling result with status, message, result data, parameters, and both image data for direct display and URLs. Note: Maximum output size is 4096x4096. If input size * upscaleFactor would exceed this, the input is automatically resized first. Example: 2048x2048 with factor 4 is reduced to 1024x1024 before upscaling. . It is categorised as a Read tool in the Mcp Runware MCP Server, which means it retrieves data without modifying state.
Add a rule in your Intercept YAML policy under the tools section for imageUpscale. You can allow, deny, rate-limit, or validate arguments. Then run Intercept as a proxy in front of the Mcp Runware MCP server.
imageUpscale is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the imageUpscale rule in your Intercept policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the Intercept policy for imageUpscale. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
imageUpscale is provided by the Mcp Runware MCP server (elijahdev0/mcp-runware). Intercept sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Open source. One binary. Zero dependencies.
npx -y @policylayer/intercept