Skip to main content
Glama

Get Product Images

ps_get_product_images
Read-onlyIdempotent

Fetches all image URLs for a specified PrestaShop product by product ID, returning each image's ID and full URL.

Instructions

Get all image URLs for a specific product.

The PrestaShop Webservice exposes product images at: {PS_API_URL}/api/images/products/{product_id}/{image_id}

This tool fetches the product to retrieve its image IDs, then constructs the full URLs.

Args:

  • id_product: Product ID (required)

Returns: Array of image objects with id and URL for each image associated with the product.

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": {
      "id_product": "<id_product>"
    },
    "name": "ps_get_product_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
id_productYesProduct ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuine context beyond that: it discloses the two-step implementation (fetch product, then construct URLs) and the exact URL pattern, which tells the agent the output format and that an extra lookup occurs.

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?

Front-loaded with the purpose, then a useful endpoint template, then Args/Returns. The Args and Returns blocks partly restate the schema and are slightly formulaic, but the endpoint line earns its space by explaining how URLs are built.

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?

There is no output schema, and the description compensates by stating the return shape (array of objects with id and URL). It is nearly complete for a one-parameter read tool, though it does not say what happens when a product has no images or whether the product lookup failing is an error.

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 coverage is 100% and the single parameter carries a description, so the schema already documents id_product. The description restates it as "Product ID (required)" without adding format, range, or failure behavior, so baseline 3 applies.

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 ("Get all image URLs for a specific product") and explains the mechanism — it fetches the product to get image IDs, then builds URLs from the documented path template. This clearly distinguishes it from ps_get_product, which returns product data rather than image URLs.

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?

Usage is implied by the narrow scope and by the contrast with fetching the product itself, but there is no explicit when-to-use/when-not guidance and no sibling tool is named as an alternative. An agent can infer the case, but must do the routing work itself.

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

Deploy Server

Other Tools