Skip to main content
Glama

Update product slide

shop_update_product_slide
DestructiveIdempotent

Update a slide (position, focal_point and/or replacement image via image_file). Guidance: Update a slide (multipart: position/focal_point and/or replacement image via image_file). | context: product_id, slide_id

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
positionNoZero-based order index controlling where the slide appears (lower comes first).
slide_idYesNumeric id of the slide to update.
image_fileNoImage payload. Accepts: (1) a data URI 'data:image/png;base64,...', (2) a raw base64-encoded string of the image bytes, or (3) a public http(s) URL. Do NOT pass a local filesystem path — the server cannot read the user's disk.
product_idYesNumeric id of the product the slide belongs to.
focal_pointNoImage crop focal point, format '40x50'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

The annotations already provide readOnlyHint, destructiveHint, and idempotentHint. The description adds the multipart detail, which is a behavioral requirement, but it does not elaborate on side effects or success/failure beyond what annotations imply. Therefore, it provides minimal additional transparency.

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?

The description is concise and front-loaded with the core action. It uses a compact structure with a separate guidance clause, avoiding unnecessary verbosity.

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?

The description covers the core purpose, the required context, and the multipart requirement. Given the small parameter set and full schema coverage, it is sufficiently complete for an agent to invoke correctly, though it lacks explicit error or success scenarios.

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?

Since schema descriptions cover 100% of parameters, the baseline is 3. The description's summary of fields (position, focal_point, image_file) is redundant but reinforces the intended usage. It does not add new semantic details beyond 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?

The description clearly states the tool updates a slide and enumerates the updatable fields (position, focal_point, image_file). This makes the purpose unambiguous and distinct from sibling tools like delete or upload.

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?

The guidance section specifies the multipart requirement and the required context (product_id, slide_id), which helps the agent understand the request format and necessary identifiers. However, it does not explicitly contrast with sibling update or upload tools, so it loses some points.

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.