Skip to main content
Glama

Consultar un producto y sus variantes

get_product

Consulta la ficha y sus variantes con disponibilidad sincronizada. El PVP es informativo y corresponde al producto. El precio final puede variar según la combinación o la longitud personalizada.

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": {
      "product_id": "<product_id>"
    },
    "name": "get_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
product_idYesID numérico del producto de PrestaShop, devuelto por search_products. No es la referencia comercial.
variants_limitNoNúmero máximo de variantes de esta página, de 1 a 50.
variants_cursorNoCursor opaco next_variants_cursor del mismo producto. Omitir en la primera página; caduca a los 10 minutos o al retirarse su generación.

Output Schema

NameRequiredDescriptionDefault
productYes
synced_atYes
generation_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / product_id / description
      Added value: +"ID numérico del producto de PrestaShop, devuelto por search_products. No es la referencia comercial."
    • addedInput schema / properties / variants_cursor / description
      Added value: +"Cursor opaco next_variants_cursor del mismo producto. Omitir en la primera página; caduca a los 10 minutos o al retirarse su generación."
    • addedInput schema / properties / variants_limit / description
      Added value: +"Número máximo de variantes de esta página, de 1 a 50."
  2. Changed1 schema field changed
    • addedOutput schema / properties / product / properties / commercial
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Commercial interpretation prevails over legacy fields when format.state is known. Lengths are metadata, not stock quantities or a guarantee that a requested Dynamic order can be supplied. Unknown retained-snapshot data must not be inferred.",
      +  "properties": {
      +    "custom_cut_allowed": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "cut_increment": {
      +      "additionalProperties": false,
      +      "allOf": [
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "known"
      +              }
      +            }
      +          },
      +          "then": {
      +            "required": [
      +              "label",
      +              "mm"
      +            ]
      +          }
      +        },
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "unparsed"
      +              }
      +            }
      +          },
      +          "then": {
      +            "required": [
      +              "label"
      +            ]
      +          }
      +        },
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "enum": [
      +                  "missing",
      +                  "not_applicable",
      +                  "unknown"
      +                ]
      +              }
      +            }
      +          },
      +          "then": {
      +            "not": {
      +              "anyOf": [
      +                {
      +                  "required": [
      +                    "label"
      +                  ]
      +                },
      +                {
      +                  "required": [
      +                    "mm"
      +                  ]
      +                }
      +              ]
      +            }
      +          }
      +        },
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "unparsed"
      +              }
      +            }
      +          },
      +          "then": {
      +            "not": {
      +              "required": [
      +                "mm"
      +              ]
      +            }
      +          }
      +        },
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "conflicting"
      +              }
      +            }
      +          },
      +          "then": {
      +            "not": {
      +              "anyOf": [
      +                {
      +                  "required": [
      +                    "label"
      +                  ]
      +                },
      +                {
      +                  "required": [
      +                    "mm"
      +                  ]
      +                }
      +              ]
      +            },
      +            "required": [
      +              "labels"
      +            ]
      +          }
      +        },
      +        {
      +          "else": {
      +            "not": {
      +              "required": [
      +                "labels"
      +              ]
      +            }
      +          },
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "conflicting"
      +              }
      +            }
      +          }
      +        }
      +      ],
      +      "description": "Explicit feature 41 only. No default step or unverified arithmetic origin is implied.",
      +      "properties": {
      +        "label": {
      +          "type": "string"
      +        },
      +        "labels": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "minItems": 2,
      +          "type": "array"
      +        },
      +        "mm": {
      +          "maximum": 4294967295,
      +          "minimum": 1,
      +          "type": "integer"
      +        },
      +        "state": {
      +          "enum": [
      +            "known",
      +            "missing",
      +            "unparsed",
      +            "conflicting",
      +            "not_applicable",
      +            "unknown"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "state"
      +      ],
      +      "type": "object"
      +    },
      +    "dimensions": {
      +      "additionalProperties": false,
      +      "allOf": [
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "known"
      +              }
      +            }
      +          },
      +          "then": {
      +            "required": [
      +              "label",
      +              "sides_mm"
      +            ]
      +          }
      +        },
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "unparsed"
      +              }
      +            }
      +          },
      +          "then": {
      +            "required": [
      +              "label"
      +            ]
      +          }
      +        },
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "enum": [
      +                  "missing",
      +                  "not_applicable",
      +                  "unknown"
      +                ]
      +              }
      +            }
      +          },
      +          "then": {
      +            "not": {
      +              "anyOf": [
      +                {
      +                  "required": [
      +                    "label"
      +                  ]
      +                },
      +                {
      +                  "required": [
      +                    "sides_mm"
      +                  ]
      +                }
      +              ]
      +            }
      +          }
      +        },
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "unparsed"
      +              }
      +            }
      +          },
      +          "then": {
      +            "not": {
      +              "required": [
      +                "sides_mm"
      +              ]
      +            }
      +          }
      +        },
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "conflicting"
      +              }
      +            }
      +          },
      +          "then": {
      +            "not": {
      +              "anyOf": [
      +                {
      +                  "required": [
      +                    "label"
      +                  ]
      +                },
      +                {
      +                  "required": [
      +                    "sides_mm"
      +                  ]
      +                }
      +              ]
      +            },
      +            "required": [
      +              "labels"
      +            ]
      +          }
      +        },
      +        {
      +          "else": {
      +            "not": {
      +              "required": [
      +                "labels"
      +              ]
      +            }
      +          },
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "conflicting"
      +              }
      +            }
      +          }
      +        }
      +      ],
      +      "description": "Original feature 18 label and ordered sides in integer mm; axis orientation is not inferred.",
      +      "properties": {
      +        "label": {
      +          "type": "string"
      +        },
      +        "labels": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "minItems": 2,
      +          "type": "array"
      +        },
      +        "sides_mm": {
      +          "items": {
      +            "maximum": 4294967295,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "maxItems": 2,
      +          "minItems": 2,
      +          "type": "array"
      +        },
      +        "state": {
      +          "enum": [
      +            "known",
      +            "missing",
      +            "unparsed",
      +            "conflicting",
      +            "not_applicable",
      +            "unknown"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "state"
      +      ],
      +      "type": "object"
      +    },
      +    "fixed_length": {
      +      "additionalProperties": false,
      +      "allOf": [
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "known"
      +              }
      +            }
      +          },
      +          "then": {
      +            "required": [
      +              "label",
      +              "mm"
      +            ]
      +          }
      +        },
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "unparsed"
      +              }
      +            }
      +          },
      +          "then": {
      +            "required": [
      +              "label"
      +            ]
      +          }
      +        },
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "enum": [
      +                  "missing",
      +                  "not_applicable",
      +                  "unknown"
      +                ]
      +              }
      +            }
      +          },
      +          "then": {
      +            "not": {
      +              "anyOf": [
      +                {
      +                  "required": [
      +                    "label"
      +                  ]
      +                },
      +                {
      +                  "required": [
      +                    "mm"
      +                  ]
      +                }
      +              ]
      +            }
      +          }
      +        },
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "unparsed"
      +              }
      +            }
      +          },
      +          "then": {
      +            "not": {
      +              "required": [
      +                "mm"
      +              ]
      +            }
      +          }
      +        },
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "conflicting"
      +              }
      +            }
      +          },
      +          "then": {
      +            "not": {
      +              "anyOf": [
      +                {
      +                  "required": [
      +                    "label"
      +                  ]
      +                },
      +                {
      +                  "required": [
      +                    "mm"
      +                  ]
      +                }
      +              ]
      +            },
      +            "required": [
      +              "labels"
      +            ]
      +          }
      +        },
      +        {
      +          "else": {
      +            "not": {
      +              "required": [
      +                "labels"
      +              ]
      +            }
      +          },
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "conflicting"
      +              }
      +            }
      +          }
      +        }
      +      ],
      +      "properties": {
      +        "label": {
      +          "type": "string"
      +        },
      +        "labels": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "minItems": 2,
      +          "type": "array"
      +        },
      +        "mm": {
      +          "maximum": 4294967295,
      +          "minimum": 1,
      +          "type": "integer"
      +        },
      +        "state": {
      +          "enum": [
      +            "known",
      +            "missing",
      +            "unparsed",
      +            "conflicting",
      +            "not_applicable",
      +            "unknown"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "state"
      +      ],
      +      "type": "object"
      +    },
      +    "format": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "code": {
      +          "enum": [
      +            "by_length",
      +            "fat_quarter",
      +            "remnant",
      +            "pack",
      +            null
      +          ]
      +        },
      +        "label": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "labels": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "minItems": 2,
      +          "type": "array"
      +        },
      +        "state": {
      +          "enum": [
      +            "known",
      +            "missing",
      +            "unparsed",
      +            "conflicting",
      +            "unknown"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "label",
      +        "state"
      +      ],
      +      "type": "object"
      +    },
      +    "minimum_cut": {
      +      "additionalProperties": false,
      +      "allOf": [
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "known"
      +              }
      +            }
      +          },
      +          "then": {
      +            "required": [
      +              "label",
      +              "mm"
      +            ]
      +          }
      +        },
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "unparsed"
      +              }
      +            }
      +          },
      +          "then": {
      +            "required": [
      +              "label"
      +            ]
      +          }
      +        },
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "enum": [
      +                  "missing",
      +                  "not_applicable",
      +                  "unknown"
      +                ]
      +              }
      +            }
      +          },
      +          "then": {
      +            "not": {
      +              "anyOf": [
      +                {
      +                  "required": [
      +                    "label"
      +                  ]
      +                },
      +                {
      +                  "required": [
      +                    "mm"
      +                  ]
      +                }
      +              ]
      +            }
      +          }
      +        },
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "unparsed"
      +              }
      +            }
      +          },
      +          "then": {
      +            "not": {
      +              "required": [
      +                "mm"
      +              ]
      +            }
      +          }
      +        },
      +        {
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "conflicting"
      +              }
      +            }
      +          },
      +          "then": {
      +            "not": {
      +              "anyOf": [
      +                {
      +                  "required": [
      +                    "label"
      +                  ]
      +                },
      +                {
      +                  "required": [
      +                    "mm"
      +                  ]
      +                }
      +              ]
      +            },
      +            "required": [
      +              "labels"
      +            ]
      +          }
      +        },
      +        {
      +          "else": {
      +            "not": {
      +              "required": [
      +                "labels"
      +              ]
      +            }
      +          },
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "conflicting"
      +              }
      +            }
      +          }
      +        }
      +      ],
      +      "properties": {
      +        "label": {
      +          "type": "string"
      +        },
      +        "labels": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "minItems": 2,
      +          "type": "array"
      +        },
      +        "mm": {
      +          "maximum": 4294967295,
      +          "minimum": 1,
      +          "type": "integer"
      +        },
      +        "state": {
      +          "enum": [
      +            "known",
      +            "missing",
      +            "unparsed",
      +            "conflicting",
      +            "not_applicable",
      +            "unknown"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "state"
      +      ],
      +      "type": "object"
      +    },
      +    "pack_definition": {
      +      "additionalProperties": false,
      +      "allOf": [
      +        {
      +          "else": {
      +            "not": {
      +              "anyOf": [
      +                {
      +                  "required": [
      +                    "distinct_components"
      +                  ]
      +                },
      +                {
      +                  "required": [
      +                    "total_component_units"
      +                  ]
      +                }
      +              ]
      +            }
      +          },
      +          "if": {
      +            "properties": {
      +              "state": {
      +                "const": "verified"
      +              }
      +            }
      +          },
      +          "then": {
      +            "required": [
      +              "distinct_components",
      +              "total_component_units"
      +            ]
      +          }
      +        }
      +      ],
      +      "properties": {
      +        "distinct_components": {
      +          "minimum": 1,
      +          "type": "integer"
      +        },
      +        "state": {
      +          "enum": [
      +            "verified",
      +            "unknown",
      +            "not_applicable"
      +          ]
      +        },
      +        "total_component_units": {
      +          "minimum": 1,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "state"
      +      ],
      +      "type": "object"
      +    },
      +    "sale_mode": {
      +      "enum": [
      +        "length",
      +        "unit",
      +        null
      +      ]
      +    },
      +    "whole_item_required": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "format",
      +    "sale_mode",
      +    "custom_cut_allowed",
      +    "whole_item_required",
      +    "minimum_cut",
      +    "cut_increment",
      +    "fixed_length",
      +    "dimensions",
      +    "pack_definition"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • addedOutput schema / properties
      Added value: +{
      +  "generation_id": {
      +    "type": "string"
      +  },
      +  "product": {
      +    "properties": {
      +      "availability": {
      +        "description": "Product-level snapshot, not the stock of a specific variant.",
      +        "properties": {
      +          "checked_at": {
      +            "format": "date-time",
      +            "type": "string"
      +          },
      +          "reason": {
      +            "description": "Reason code when the status is unknown.",
      +            "type": "string"
      +          },
      +          "source": {
      +            "const": "index",
      +            "description": "Stock snapshot from the catalog index."
      +          },
      +          "status": {
      +            "description": "unknown neither confirms nor rules out stock for a requested custom length.",
      +            "enum": [
      +              "in_stock",
      +              "out_of_stock",
      +              "unknown"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "status",
      +          "checked_at",
      +          "source"
      +        ],
      +        "type": "object"
      +      },
      +      "categories": {
      +        "items": {
      +          "properties": {
      +            "id": {
      +              "maximum": 4294967295,
      +              "minimum": 1,
      +              "type": "integer"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "features": {
      +        "type": "object"
      +      },
      +      "image_url": {
      +        "format": "uri",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "minimum_cut": {
      +        "properties": {
      +          "label": {
      +            "type": "string"
      +          },
      +          "mm": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "next_variants_cursor": {
      +        "description": "Pass this as variants_cursor for the next page. Null means there is no next page.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "product_id": {
      +        "maximum": 4294967295,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "pvp": {
      +        "description": "Informational product price. It does not guarantee the final price of a variant or custom length.",
      +        "properties": {
      +          "amount": {
      +            "description": "Normalized decimal string when available.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "currency": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "label": {
      +            "type": "string"
      +          },
      +          "unit": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "reference": {
      +        "description": "Internal product reference.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "short_description": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "tilda_references": {
      +        "description": "Official Tilda references recorded in the catalog.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "url": {
      +        "format": "uri",
      +        "type": "string"
      +      },
      +      "variants": {
      +        "items": {
      +          "properties": {
      +            "attributes": {
      +              "items": {
      +                "properties": {
      +                  "group": {
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "availability": {
      +              "properties": {
      +                "checked_at": {
      +                  "format": "date-time",
      +                  "type": "string"
      +                },
      +                "reason": {
      +                  "description": "Reason code when the status is unknown.",
      +                  "type": "string"
      +                },
      +                "source": {
      +                  "const": "index",
      +                  "description": "Stock snapshot from the catalog index."
      +                },
      +                "status": {
      +                  "description": "unknown neither confirms nor rules out stock for a requested custom length.",
      +                  "enum": [
      +                    "in_stock",
      +                    "out_of_stock",
      +                    "unknown"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "status",
      +                "checked_at",
      +                "source"
      +              ],
      +              "type": "object"
      +            },
      +            "combination_id": {
      +              "maximum": 4294967295,
      +              "minimum": 1,
      +              "type": "integer"
      +            },
      +            "reference": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "synced_at": {
      +    "format": "date-time",
      +    "type": "string"
      +  }
      +}
  4. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Adds real behavioral context beyond the annotations: the PVP shown is informational and belongs to the product, while the final price can change depending on the combination or custom length. That caveat is exactly the kind of nuance an agent would otherwise get wrong when quoting a price. The 'consulta' framing sits a bit oddly with readOnlyHint=false, but since destructiveHint=false and the description mentions a synchronized availability read, this reads as a sync side effect rather than a contradiction.

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?

Three short sentences, front-loaded with what is returned, then the price caveat. Nothing is padded, though the description spends its length on pricing nuance rather than on routing guidance.

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?

An output schema exists, so return values need not be explained, and the description covers the two things an agent must know: variants are included and the displayed price may not be final. The remaining gap is when to prefer this over get_product_availability.

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%, so product_id, variants_limit and variants_cursor are already fully documented, including the warning that the ID is not the commercial reference. The description adds no parameter-level meaning (no mention of pagination or cursor expiry), so the 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 in Spanish: 'Consulta la ficha y sus variantes con disponibilidad sincronizada', which tells an agent this returns the product record plus its variants with synced availability. It is distinguishable from search_products and get_product_availability by implication, but never names those siblings explicitly.

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: the agent can infer this is the detail-lookup for a product already found via search_products (the schema even says the ID is 'devuelto por search_products'). There is no explicit when-to-use versus get_product_availability, and no stated exclusions or prerequisites.

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