Skip to main content
Glama

Get PrestaShop Category

ps_get_category
Read-onlyIdempotent

Retrieve complete category details by ID, including multilingual fields, hierarchy information, and SEO metadata, to support accurate store content and SEO management.

Instructions

Get full details of a category by ID, including all multilang fields and SEO metadata.

Args:

  • id: Category ID (required)

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

Returns: Complete category data with name, description, hierarchy info, 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_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCategory 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 readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds value beyond that by disclosing what the call returns (name, description, hierarchy info, SEO metadata) and that multilang fields are resolved by lang_id, which matters since there is no output schema.

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?

The definition is short and front-loaded, with the purpose stated before the Args/Returns breakdown. The Args section duplicates schema content that is already 100% documented, which is the only mild waste.

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 with no output schema, the description covers the inputs, the default language behavior, and the shape of the returned category data. It does not mention error behavior for an invalid or nonexistent ID, which is the remaining gap.

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%, so both parameters are already documented in the input schema. The description largely restates them ('id: Category ID (required)', 'lang_id ... default: "1"') with only marginal added context that lang_id governs multilang field resolution, so the baseline of 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?

The description states a specific verb and resource ('Get full details of a category by ID') and names the scope of data returned (multilang fields and SEO metadata). It is clear enough to distinguish this read operation from create/update siblings, though it does not explicitly name or route against 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: the tool requires a category ID, and the 'lang_id' default hints at when to override it. There is no explicit statement of when to use this versus ps_category_performance or ps_audit_seo_categories, and no prerequisites or exclusions are given.

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