Skip to main content
Glama
Shopify Admin MCP Server

Shopify Admin MCP Server

get_segments

Lists all customer segments defined in a Shopify store, returning paginated results so you can review segment names and IDs for targeting, reporting, or audience analysis.

Instructions

List all customer segments defined in the store.

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_segments"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNo
firstNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden and it discloses almost nothing: no pagination behavior, no page-size ceiling, no cursor semantics, no indication of result size or ordering. The phrase 'all' actively implies an unpaginated dump, which conflicts with the presence of after/first parameters.

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?

A single front-loaded sentence with no padding, which is efficient. However, its brevity comes at the cost of accuracy ('all') and leaves the definition under-specified for a paginated list tool.

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

Completeness2/5

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

For a list tool with two undocumented parameters, no annotations, and no output schema, the description should at minimum explain pagination and what a segment record contains. It covers neither, leaving the agent to discover paging behavior by trial.

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 description coverage is 0% across two parameters, and the description adds no meaning for either. An agent learns nothing about what 'after' is a cursor for or that 'first' defaults to 50 and caps at 250 beyond what the raw schema shows.

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 clear verb and resource: 'List all customer segments defined in the store.' An agent can tell it returns segment definitions rather than members or orders. The word 'all' is slightly misleading given the presence of pagination parameters, and no sibling (get_segment, get_segment_members) is named to sharpen the boundary.

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 instead of get_segment (single lookup) or get_segment_members (membership expansion). Nothing indicates prerequisites, expected volume, or when to page through results.

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