Skip to main content
Glama

Hiringsai — Free AI Tools

tool_add_image

Read-only

Add an image layer from a URL or data URL (small assets only; max ~2 MB data URL).

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": {
      "design_id": "<design_id>",
      "src": "<src>"
    },
    "name": "tool_add_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
fitNocover|contain
srcYeshttps URL, data URL, or asset:<id> from upload-asset
nameNoLayer name
widthNo
heightNo
design_idYesDesign id from create-design

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.5/5.0
Behavior1/5

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

The description says the tool adds a layer, an operation that mutates the design canvas, yet the annotations declare readOnlyHint=true and destructiveHint=false. That is a direct conflict about whether state changes, so the safety profile an agent relies on is unreliable; nothing else about failure behavior or sizing defaults is disclosed.

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?

A single front-loaded sentence with no filler, and the parenthetical size caveat is placed where it is easy to scan. It is efficient, though its brevity comes at the cost of the omitted guidance noted above.

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

Completeness2/5

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

For an 8-parameter mutation-style tool with no output schema, the definition omits positioning defaults, whether a layer id is returned, and z-order behavior. Combined with the read-only annotation conflict, an agent cannot be confident about what calling this tool actually does.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 50%, and the description only restates the src size limit (already implied by maxLength 3000000) without explaining the undocumented x/y/width/height positioning parameters or naming conventions. Half the parameters (position, dimensions, name) receive no added meaning, so the description does not compensate for the coverage gap.

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 ('Add an image layer') plus the accepted source forms, which separates it from tool_add_shape and tool_add_text by asset type. It does not explicitly contrast with tool_adjust_image or tool_add_shape by name, so sibling differentiation rests on the reader's inference.

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 only usage constraint is an inline size limit ('small assets only; max ~2 MB data URL'). There is no statement of when to choose this over tool_add_shape, tool_add_text, or tool_adjust_image, and no prerequisite such as requiring an existing design_id before calling it.

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.