Skip to main content
Glama

Get PrestaShop Product

ps_get_product
Read-onlyIdempotent

Retrieve complete product details by ID, including multilingual fields, price, stock, images, categories, features, combinations, and SEO metadata for store management.

Instructions

Get full details of a product by ID, including all multilang fields, associations (categories, images, combinations, features), and SEO metadata.

Args:

  • id: Product ID (required)

  • lang_id: Language ID for multilang fields (default: "1")

Returns: Complete product data with name, descriptions, price, stock, images, categories, features, combinations, and SEO metadata.

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": "<id>"
    },
    "name": "ps_get_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesProduct ID
lang_idNoLanguage ID for multilang fields1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely useful behavioral context by disclosing that the response includes deep associations and combinations rather than a flat record, which matters because no output schema exists; it omits error behavior for invalid IDs.

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 purpose, then Args and Returns sections that are easy to scan. The Args section largely duplicates the already-complete schema, which is mild redundancy, but the Returns block earns its place given there is no output schema.

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?

For a two-parameter read tool whose annotations already cover safety, the Returns paragraph substitutes for the missing output schema by naming the fields returned. The only gap is absence of failure behavior (product not found, inaccessible ID), which is minor for a getter.

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%, with both 'id' and 'lang_id' fully documented including the default of "1". The Args block restates the schema almost verbatim and adds no new semantics such as valid ID ranges or how lang_id interacts with multilang field naming, so baseline 3 applies.

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 ('Get full details of a product by ID') and enumerates the scope: multilang fields, associations (categories, images, combinations, features), and SEO metadata. This implicitly marks it as the superset of narrower siblings like ps_get_product_images and ps_get_product_stock, though it never names them.

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 only implied by 'by ID' and 'full details' – an agent can infer this is the comprehensive single-product fetch, but the description gives no explicit when-to-use, no when-not-to-use, and no routing advice toward the narrower product siblings or ps_list_* tools.

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