Skip to main content
Glama
Shopify Admin MCP Server

Shopify Admin MCP Server

get_discounts

Lists all code and automatic discounts with optional filters, returning title, status, type, usage, and value details.

Instructions

List all discounts (both code and automatic) with optional filtering. Returns discount details including title, status, type, usage, and value.

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": "get_discounts"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNo
firstNo
queryNoSearch query to filter discounts (e.g., 'status:active')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses what is returned ('title, status, type, usage, and value'), which matters since there is no output schema, but it says nothing about pagination behavior, the default page size of 50, the maximum of 250, or result ordering — all relevant for a list operation.

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?

Two tight sentences, front-loaded with scope and followed by return content; nothing is wasted. The second sentence leans on 'including' with an incomplete field list, which is the only mild softness.

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 three-parameter list tool with no annotations and no output schema, the description covers purpose and return fields but omits pagination mechanics and sibling routing. An agent could call it, but might misuse 'first'/'after' or pick it over a more specific sibling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33%: the query parameter is documented in the schema while 'after' and 'first' are not. The description's vague 'optional filtering' phrase adds no meaning about the cursor-based pagination or the default/limit semantics, so it fails to compensate for the coverage gap.

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 uses a specific verb and resource ('List all discounts') and scopes it as covering 'both code and automatic', which implicitly separates it from the get_code_discounts and get_automatic_discounts siblings. It does not name those siblings, so it falls short of the top mark, but an agent can still tell what this tool returns.

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: 'with optional filtering' suggests it is the general listing tool, but there is no explicit when-to-use, no exclusion telling the agent to prefer get_code_discounts, get_automatic_discounts, or get_discount for narrower needs, and no prerequisite guidance. Adequate but leaves routing to inference.

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