Skip to main content
Glama
Shopify Admin MCP Server

Shopify Admin MCP Server

get_segment

Retrieve details and query definition for a specific Shopify customer segment by its segment ID.

Instructions

Get details about a specific customer segment, including its query definition.

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": {
      "id": "<id>"
    },
    "name": "get_segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe segment ID (gid://shopify/Segment/...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose a meaningful behavioral trait beyond the schema — that the response includes the segment's query definition rather than just metadata — and the verb "Get" implies a safe read. However, it says nothing about authorization scope, behavior when the ID is invalid or the segment was deleted, or the shape of the returned details.

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

Conciseness5/5

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

One sentence, front-loaded with the verb and resource, with the return-content detail placed where it is most useful. Nothing is redundant or padded.

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 read-only getter with a fully described schema and no output schema, the description covers what the tool fetches and one substantive aspect of the return value. Only minor gaps remain around failure modes and permission requirements.

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 coverage is 100% and the single `id` parameter is already documented in the schema as a Shopify GID (gid://shopify/Segment/...). The description adds no format, validation, or lookup-semantics 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?

States a specific verb and resource ("Get details about a specific customer segment") and adds the notable payload detail ("including its query definition"), so an agent knows this is a single-resource fetch. It does not name the sibling list tool get_segments or get_segment_members to sharpen the contrast, so it stops short of full sibling differentiation.

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: "a specific customer segment" signals a single-item lookup versus a list, and the reference to a query definition hints at segment-rule inspection. There is no explicit when-to-use, no mention of when to prefer get_segments or get_segment_members, and no stated prerequisites.

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