Skip to main content
Glama

Switch PrestaShop Site

ps_set_target
Idempotent

Switch the active PrestaShop store so all subsequent tool calls target the selected shop. Use the site key from the available targets list to change context.

Instructions

Switch the active PrestaShop shop. All subsequent tool calls will target this shop.

Use ps_list_targets to see available site keys.

Args:

  • site: Site key (e.g., "default", "site_1", "site_2")

Returns: Confirmation with the new active site details.

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": {
      "site": "<site>"
    },
    "name": "ps_set_target"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite key from ps_list_targets (e.g., 'default', 'site_1')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Adds genuine context beyond the annotations: this tool mutates global session state so that all later calls are redirected, and it returns a confirmation with the new active site. The annotations only cover safety/idempotency hints and say nothing about this persistent re-targeting effect. Error behavior for an invalid key is left unstated, keeping it below a 5.

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 action and its side effect in the first sentence, with a brief pointer to ps_list_targets and a compact Args/Returns block. The Args line duplicates schema content, a minor redundancy, but nothing else is wasted.

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 one-parameter stateful switch tool, the description covers the action, its downstream effect on the session, how to obtain valid keys, and what is returned. It could mention failure handling for unknown keys or scope/lifetime of the switch, but the essentials are present.

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% and the description's Args block simply restates the single `site` parameter with the same example keys. It adds no format, case-sensitivity, or validation detail beyond what the schema already says, so the 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 ("Switch the active PrestaShop shop") and immediately scopes the effect ("All subsequent tool calls will target this shop"), which distinguishes it from the read-only sibling ps_list_targets. An agent can tell what this does without opening the schema.

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?

Explicitly routes the agent to ps_list_targets for discovering valid site keys, which is the practical prerequisite for calling this tool. It doesn't say when not to call it or what happens if the site is already active, but the context of use is clear.

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