Skip to main content
Glama

List PrestaShop States

ps_list_states
Read-onlyIdempotent

Lists states or provinces from PrestaShop, optionally filtered by country ID, and returns each item's ID, name, ISO code, and country ID for address setup.

Instructions

List states/provinces with optional country filter.

Args:

  • limit: Max items to return (default: 50)

  • id_country: Filter by country ID

Returns: Array of states with id, name, iso_code, and country_id.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ps_list_states"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax items
id_countryNoFilter by country ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

B3.4/5.0
Behavior3/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 the returned field set, but does not mention the 500-item ceiling, ordering, or how truncation at the limit behaves.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first line is front-loaded and clear, but the following Args section largely repeats what the input schema already declares, adding bulk without new information. The Returns line earns its place because 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 simple two-parameter read listing, the description covers purpose, both parameters, and the returned fields, which is what an agent needs given no output schema. Minor gaps remain around ordering and result-limit behavior.

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 the schema already documents both parameters and their types. The description restates the default of 50 and the country filter without adding format, bounds, or edge-case semantics beyond the schema (the 500 maximum is omitted).

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 (list states/provinces) and notes the optional country scoping, so an agent can see it is a reference-data listing tool. It does not distinguish itself from ps_list_order_states, which sounds adjacent, leaving that distinction to the caller.

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: it lists states, optionally narrowed by country. There is no explicit when-to-use, when-not-to-use, or pointer to a sibling for the order-state variant.

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