Skip to main content
Glama

Set category image

set_category_image
DestructiveIdempotent

Set or remove the picture of ONE category. Pass a public https image link in url (JPEG, PNG or WebP, at most 2 MB; a bigger file is refused, there is no resize) — Obriym stores its own copy and the previous picture is deleted only after the new one is in place. Pass url: null to remove the current picture. Idempotent in effect: repeating it leaves the same picture. Use list_categories to find the category id. The result echoes the workspace.

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": {
      "categoryId": "<categoryId>",
      "url": "<url>"
    },
    "name": "set_category_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesA public https image link (JPEG, PNG or WebP, at most 2 MB) to use as the category picture, or null to remove the current picture.
categoryIdYesThe category id from list_categories.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing hard operational limits (2 MB cap, no resize, formats accepted), the storage model (Obriym keeps its own copy, so the source link may be temporary), and atomicity ('the previous picture is deleted only after the new one is in place'). These are exactly the facts an agent needs before invoking a destructive, open-world mutation.

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?

Front-loads the core action, then the input rules, then the removal path, then idempotency and id lookup in descending priority. No filler sentences; the parenthetical limits are dense but all load-bearing.

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

Completeness5/5

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

For a two-parameter destructive mutation with no output schema, the description covers inputs, size/format constraints, deletion ordering, idempotency, and points to the tool that supplies the id. Nothing needed to call it correctly is missing.

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%, so the baseline is 3, but the description adds real meaning: it clarifies that the link may be temporary because the image is re-hosted, and spells out the null semantics for removal. That is more than restating the schema.

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 (set/remove) plus the exact resource ('the picture of ONE category'), and the emphasis on ONE distinguishes it from bulk image operations in the sibling list. An agent can immediately tell this apart from set_brand_image and update_product_images.

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?

Explicitly routes the agent to list_categories to obtain the id and states the trigger for removal (url: null). It does not, however, distinguish when to use this versus update_category or the other set_*_image siblings, so it stops short of full when/when-not guidance.

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