Skip to main content
Glama

Set Image Resolution

set_resolution

Set the source resolution for all subsequent image generate and edit calls to 1K, 2K, or 4K; higher values add source detail while files remain compressed under the size limit.

Instructions

Set the source resolution the model generates at, for all subsequent generate/edit calls. The API supports '1K' (default), '2K', and '4K'. Note that images are always compressed to stay under the size limit regardless — higher values mainly affect source detail, not final file size.

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": {
      "resolution": "<resolution>"
    },
    "name": "set_resolution"
  }
}

Input Schema

NameRequiredDescriptionDefault
resolutionYesSource resolution: '1K' (default), '2K', or '4K'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the stateful, forward-applying nature of the call, the default, and a genuinely non-obvious caveat that images are always compressed so higher values affect source detail rather than file size. It does not mention cost, latency, or reset behavior for higher resolutions, which would matter for a mutation-style setting.

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?

Three tight sentences: purpose and scope first, allowed values second, practical caveat last. Nothing is padded, and the caveat is placed where it will be read before invoking.

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?

For a single-enum-parameter setter with no annotations and no output schema, the description covers scope, values, default, and a behavioral caveat. The only omissions are whether the setting resets and whether higher resolutions carry cost or latency penalties.

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% and the enum already documents '1K' (default), '2K', '4K', so the description's restatement of the values is largely redundant. It does add real meaning beyond the schema by explaining what the choice actually changes ('mainly affect source detail, not final file size').

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 and resource ('Set the source resolution the model generates at') and scopes the effect precisely to 'all subsequent generate/edit calls'. An agent can immediately tell this is a session-level generation setting rather than an image operation like generate_image or edit_image.

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?

Gives clear context for when the setting takes effect: it applies to subsequent generate/edit calls, which is exactly what an agent needs to decide placement in a workflow. It does not state whether the setting persists across sessions or how to revert to default beyond naming '1K' as the default, so a small gap remains.

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