Skip to main content
Glama

imgfactory

img_op

Call any operation by id (see img_catalog). Same price as the endpoint. Image ops take url|base64|data; jobs/submit takes op_id + files[]; jobs/status takes id.

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": {
      "op": "<op>"
    },
    "name": "img_op"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNojobs/status only: the jobId returned by jobs/submit
opYesoperation id, e.g. geometry/sharpen (see img_catalog); also jobs/submit and jobs/status
urlNoimage ops: http(s) URL of the input (server fetches it)
dataNoimage ops: data: URL
filesNojobs/submit only: 1-100 inputs
op_idNojobs/submit only: the image operation to apply to every file, e.g. resize/w512
base64Noimage ops: raw base64 of the input bytes
paramsNojobs/submit only: optional params string, e.g. w=512

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / base64 / description
      Added value: +"image ops: raw base64 of the input bytes"
    • addedInput schema / properties / data / description
      Added value: +"image ops: data: URL"
    • addedInput schema / properties / files
      Added value: +{
      +  "description": "jobs/submit only: 1-100 inputs",
      +  "items": {
      +    "properties": {
      +      "base64": {
      +        "type": "string"
      +      },
      +      "data": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "jobs/status only: the jobId returned by jobs/submit",
      +  "type": "string"
      +}
    • changedInput schema / properties / op / description
      Previous value: -"operation id, e.g. geometry/sharpen"New value: +"operation id, e.g. geometry/sharpen (see img_catalog); also jobs/submit and jobs/status"
    • addedInput schema / properties / op_id
      Added value: +{
      +  "description": "jobs/submit only: the image operation to apply to every file, e.g. resize/w512",
      +  "type": "string"
      +}
    • addedInput schema / properties / params
      Added value: +{
      +  "description": "jobs/submit only: optional params string, e.g. w=512",
      +  "type": "string"
      +}
    • addedInput schema / properties / url / description
      Added value: +"image ops: http(s) URL of the input (server fetches it)"
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses cost parity ('Same price as the endpoint') and distinguishes submit-style calls from status polling, which hints at an asynchronous job model. It says nothing about error behavior, what a submit returns, how long jobs take, or the fact that these operations transform data rather than persist it, leaving clear gaps.

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?

Two tight, front-loaded sentences with no filler; the id-lookup pointer and the mode breakdown come first. It is slightly telegraphic — 'Same price as the endpoint' is cryptic in isolation — but nothing wasteful is present.

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?

For an 8-parameter multplexer with no annotations and no output schema, the description covers input routing adequately. It leaves the agent guessing about return shapes, async job lifecycle, and the distinction from the many dedicated sibling tools, which is material for a dispatcher of this complexity.

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% and each parameter already carries its own 'jobs/submit only' / 'image ops' qualifier, so the description's mode-to-parameter mapping largely restates structured data. The 'url|base64|data' shorthand adds only a small amount of grouping meaning beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and resource ('Call any operation by id') and immediately tells the agent where ids come from (img_catalog). It also delineates three operating modes (image ops, jobs/submit, jobs/status), so the agent can tell it is a dispatcher rather than a single-purpose tool. It stops short of saying why to pick this over the dedicated sibling ops like img_resize_w512.

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 mode routing ('image ops take url|base64|data; jobs/submit takes op_id + files[]; jobs/status takes id') is real guidance about which parameter shape applies when. However, there is no statement about when to prefer this generic dispatcher versus the dedicated per-operation siblings, and no prerequisites or exclusions are given, so selection guidance is only implied.

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