Skip to main content
Glama

Get Shopify customer-type tag mappings

get_sales_config
Read-onlyIdempotent

Read the Shopify customer-type configuration: enabled, wholesale_tags, distributor_tags, d2c_tags and untagged (the fallback for customers with no matching tag). Also returns customer-tag permission status and a grant_url the person can open in Shopify when available. Read this before update_sales_config to preserve settings the user did not ask to change. No secrets or individual customer records.

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

Input Schema

NameRequiredDescriptionDefault
siteNoSite domain (example.com), id or public id (tb_…). Optional with a site key, or when the account has one site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive, so the safety profile is covered. The description adds value beyond that: it discloses the granted-permission caveat ('grant_url ... when available') and the data-scope boundary ('No secrets or individual customer records'), which the annotations do not convey.

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?

Three tight sentences: what it returns, the permission/grant caveat, the sequencing rule, and the data-safety boundary. Field enumeration is front-loaded and nothing is redundant.

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

Completeness5/5

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

With no output schema, the description carries the burden of describing return values and does so by naming every field including the 'untagged' fallback semantics. It also covers the conditional grant_url case and reassures on data sensitivity, leaving no obvious gap for a read-only config getter.

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% for the single 'site' parameter, so the schema already carries the meaning including the fallback behavior. The description never mentions the site parameter, so it adds nothing on this dimension — 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?

Opens with a specific verb+resource ('Read the Shopify customer-type configuration') and enumerates the exact fields returned, so the agent knows precisely what this returns. It does not explicitly distinguish itself from the similarly named sibling list_sales_tags, which is the only reason this falls short of a 5.

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

Usage Guidelines4/5

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

Gives a concrete workflow rule: read this before update_sales_config to preserve settings the user did not ask to change. That is real when-to-use guidance with a named alternative. It stops short of 5 because it never states when not to call it (e.g., if the user only wants the tag list, use list_sales_tags).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources