Skip to main content
Glama

create_shopify_discount_code

Create a CODE discount in the connected Shopify store (percentage off, applies when a buyer enters the code — inert until the code is shared). Automatic discounts are deliberately not available here (they change every checkout unprompted and need approval). Use for building promotions the operator will distribute.

Routing: Shopify: create a percentage discount CODE (never automatic discounts)

[sensitive-tier — first use may require a manager's approval; a from-now-on approval makes future calls seamless, a just-once approval re-asks next time.]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesThe code buyers type, e.g. WELCOME10 (letters/digits/dashes, 3-30 chars)
titleYesInternal discount title
ends_atNoOptional ISO end datetime; omit for no end
companyIdYesFreedomOS company id to act within (you must be a member). Required for company-scoped tools.
percentageYesPercent off, 1-100

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations provided, the description carries the full disclosure burden and delivers: it reveals that the code is 'inert until the code is shared', explains the security rationale for excluding automatic discounts, and discloses the sensitive-tier approval flow (manager approval on first use, from-now-on vs just-once modes). This exceeds typical descriptions for a mutation tool, though it could go further on write-scope details or Shopify-side side effects.

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?

The main purpose is front-loaded in the first sentence, followed by a crisp differentiator (why automatic discounts are excluded) and a one-line usage directive. The routing and sensitive-tier notes earn their place as they affect tool selection and invocation. Slightly verbose with the parentheticals, but every information chunk serves a functional purpose.

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 5-param tool with no output schema and no annotations, this description is thorough: it covers the discount type, activation behavior, exclusions and reasons, routing, and approval requirements. It's complete enough for an agent to decide when to invoke it and what to expect. A minor gap is no mention of a return value (e.g., the created discount ID), but that's not a blocker given the rubric.

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 the baseline is 3. The description adds minimal parameter-level meaning beyond the schema (the only echo is the concept of the buyer-entered 'code' in the purpose sentence). The schema already documents each param well (e.g., format for code, bounds for percentage, ISO format for ends_at), so no penalty is warranted, but the description doesn't enrich semantics either.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb+resource+scope: 'Create a CODE discount in the connected Shopify store (percentage off, applies when a buyer enters the code...)' It clearly distinguishes CODE discounts from automatic discounts, and the parenthetical explains exactly what the discount does and its behavior. This fully disambiguates it from sibling tools like list_shopify_discounts and create_shopify_product.

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?

The description gives a clear use case ('Use for building promotions the operator will distribute') and an explicit when-not: 'Automatic discounts are deliberately not available here (they change every checkout unprompted and need approval).' The routing line 'Shopify: create a percentage discount CODE (never automatic discounts)' reinforces when to use it, though it never names a specific alternative sibling tool to use instead.

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.

TDQS

A3.6/5.0
Disambiguation4/5

The tool set is heavily disambiguated by detailed routing descriptions, domain prefixes, and lifecycle verbs, so most tools have a clear intended purpose. However, at 297 tools there are still close pairs and overlapping decision surfaces (e.g., approval workflows, 'what should I work on' readers, multiple finance/ads readers) that require careful description reading to avoid misselection.

Naming Consistency4/5

Naming is predominantly consistent snake_case verb_noun with strong domain prefixes like shopify_, x_, posthog_, and list_/create_/update_ patterns. Minor inconsistencies exist, such as several collection-returning tools using get_ (get_team_members, get_icps, get_okrs) instead of list_, and some generate_ vs create_ vs draft_ verbs, but the pattern is still predictable overall.

Tool Count1/5

297 tools is an extreme outlier and far beyond a usable MCP tool surface. Even a large suite has no justification for this count in one server; the agent would struggle to select among hundreds of similarly descriptive tools, and the natural 3-15 tool range is exceeded by nearly 20x.

Completeness4/5

The individual domains represented — OKRs, CRM/leads, Shopify, content pipelines, ads, PostHog, team hiring, knowledge, finance, and session management — are covered remarkably well with full lifecycle patterns. Minor gaps exist, such as no full deal CRUD, no delete for several Google/Shopify artifacts, and some analytical surfaces being read-heavy, but most workflows can be completed without dead ends.

Resources