Skip to main content
Glama
medusa-mcp
by trhonpavel

List promotions

list_promotions
Read-only

Retrieve discount codes and automatic promotions with their values, conditions, usage, and validity. Search by exact code or keyword and paginate results.

Instructions

Discount codes and automatic promotions with their value, conditions, usage and validity.

Input Schema

NameRequiredDescriptionDefault
qNoSearch in codes
codeNoExact code
limitNoNumber of records (max 200)
offsetNoRecords to skip (pagination)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safe-read profile is covered. The description adds that returned promotions carry value, conditions, usage and validity, which is useful content-level context, but says nothing about pagination or ordering behavior.

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?

A single efficient sentence with no padding. It is well sized for a simple list tool, though it front-loads resource content rather than the list action.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only list tool with complete parameter schema and safety annotations, little more is strictly required. However, with no output schema, the description could say more about the shape of returned promotions, and there is no routing guidance among the many list_* siblings.

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 every parameter (q, code, limit, offset) is already documented in the schema. The description adds no filter syntax or usage detail beyond that, 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?

The description adds real content beyond the name/title by clarifying that 'promotions' covers both discount codes and automatic promotions, and lists the attributes involved (value, conditions, usage, validity). It has no verb, but the resource scope is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this vs. siblings like list_price_lists or get_product, and no note of when to filter with 'code' vs. 'q'. The agent must infer usage entirely from the name and schema.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.