Skip to main content
Glama
damientilman

Mailchimp MCP

get_promo_code

Read-only

Retrieve a promo code by ID to view its settings, usage count, and enable status. Use before a campaign to verify code availability.

Instructions

Retrieve a single promo code by ID with its current settings and usage stats.

Use to check a code's usage_count before a campaign, or confirm a code is enabled. Use list_promo_codes to browse codes for a rule.

Returns 404 if any of store_id, promo_rule_id, or promo_code_id is invalid.

Args: store_id: E-commerce store ID. promo_rule_id: Rule ID the code is attached to. promo_code_id: Code ID to inspect.

Returns: JSON with id, code, redemption_url, usage_count, enabled, created_at, updated_at.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNo
store_idYes
promo_code_idYes
promo_rule_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already indicate readOnlyHint=true (safe read). Description adds that invalid IDs return 404 and lists returned fields. No contradictions.

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?

Description is concise with about 6 sentences, front-loading purpose and usage. No unnecessary words. Could be slightly more structured but effective.

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 simple read tool, description covers purpose, parameter semantics, error handling, and return fields. Missing documentation of the optional account parameter, but overall adequate.

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 0%, so description must explain params. It describes store_id, promo_rule_id, promo_code_id with short but clear explanations. However, the optional 'account' parameter is not mentioned, and explanations are minimal.

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?

Description clearly states 'Retrieve a single promo code by ID' with specific verb and resource. Mentions returning settings and usage stats, and distinguishes from list_promo_codes for browsing.

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

Usage Guidelines5/5

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

Explicitly provides use cases: check usage_count before campaign or confirm enabled. Also tells when to use sibling list_promo_codes instead, and notes 404 error conditions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/damientilman/mailchimp-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server