Skip to main content
Glama

Get EDD Discount by Code

edd_get_discount_by_code

Retrieve discount details by entering the discount code. Case-insensitive lookup returns discount information from your Easy Digital Downloads store.

Instructions

Look up a discount by its code string (case-insensitive)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesThe discount code to look up (case-insensitive)
Behavior2/5

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

No annotations provided, so description must fully disclose behavior. Only states it looks up by code and case-insensitivity. Does not mention return value, error handling on missing code, or any side effects. For a read operation, more details are needed.

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?

Single sentence, front-loaded with key action and unique feature (case-insensitivity). No wasted words.

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

Completeness3/5

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

Simple tool with one parameter and no output schema. Description is adequate for basic understanding but lacks return value details or error behavior. Would benefit from noting what is returned (e.g., discount object or null) to be fully complete.

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% with parameter description matching tool description. The description adds case-insensitivity but that is also in the schema. Does not add new meaning beyond what the schema provides.

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?

Clearly states it looks up a discount by its code string with case-insensitivity. Distinguishes from siblings like edd_get_discount (likely by ID) and edd_list_discounts (list all).

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?

Implies usage when you have a discount code, but no explicit when-to-use or when-not-to-use compared to alternatives like edd_get_discount. Lacks direct guidance on sibling differentiation.

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/verygoodplugins/mcp-edd'

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