Skip to main content
Glama
ByteBunny-io

nanocart-mcp

by ByteBunny-io

create_coupon

Create discount coupons for your store by specifying code, type, and value. Supports percent-off, fixed-amount, and free-shipping coupons with optional limits and expiration.

Instructions

Create a coupon. value = 1-100 for percent_off, integer cents for fixed_amount, ignored for free_shipping.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesAuto-uppercased
typeYes
valueYes
maxUsesNo
expiresAtNoISO timestamp
min_order_centsNo
Behavior2/5

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

Annotations provide no safety hints (readOnlyHint, idempotentHint, destructiveHint all false), so the description carries the full burden. It discloses how the value parameter behaves per type, but does not reveal side effects, idempotency, behavior on duplicate codes, permissions, or return values. This is insufficient for a create operation.

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?

The description is a single, front-loaded sentence that efficiently communicates the core purpose and the critical value parameter behavior. It is concise with no wasted words.

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

Completeness2/5

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

With 6 parameters, no output schema, and unhelpful annotations, the description should cover more ground. It omits return value, error conditions, uniqueness constraints, and behavior of optional parameters, making it insufficient for fully correct invocation.

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 only 33%, with only 'code' and 'expiresAt' having schema descriptions. The description adds crucial semantics for the 'value' parameter (range and units for different types), which is valuable. However, it does not explain other undocumented parameters like maxUses or min_order_cents, leaving gaps.

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 opens with 'Create a coupon', a specific verb+resource that clearly states the tool's action. It distinguishes itself from sibling tools like list_coupons and delete_coupon by the verb 'create', leaving no ambiguity about its purpose.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives (e.g., list_coupons, delete_coupon) or any prerequisites. It only states the creation action and value constraints, leaving usage context entirely implied.

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/ByteBunny-io/nanocart-mcp'

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