Skip to main content
Glama

Nowacell

UCP Discount Apply

apply_discount

Apply a discount code to a cart through the shared UCP discount capability. Always use dryRun=true (the default) to check whether the code would be accepted without persisting it, then set dryRun=false to commit.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cartId": "<cartId>",
      "code": "<code>"
    },
    "name": "apply_discount"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
cartIdYes
dryRunNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully explains that dryRun=true avoids persisting changes and that false commits, which is real behavioral context. However, it omits the outcome of a rejected code (error vs. success flag), idempotency of re-applying a code, stacking rules with existing discounts, and any permission requirements.

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?

Two sentences, zero filler, with the action statement first and the operational constraint immediately after. Every sentence earns its place.

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?

There is no output schema and no annotations, so the description is the only source of behavioral detail. It covers the dry-run/commit flow but not what a dry run returns, how a rejection surfaces, or what state the cart ends in after a successful commit, leaving gaps for a mutation tool.

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 0%, so the description must compensate for three parameters. It explains dryRun's meaning and default well, but cartId and code get no definition beyond their names, leaving format expectations (e.g., code case sensitivity) undocumented.

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?

The description gives a specific verb and resource: applying a discount code to a cart. No sibling tool covers discounts, so the agent can distinguish it from cancel_cart/update_cart without opening schemas. The phrase 'shared UCP discount capability' is mild jargon but doesn't obscure the action.

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?

It prescribes an explicit two-step workflow: first dryRun=true to validate, then dryRun=false to commit, and notes that true is the default. It lacks when-not guidance (e.g., what to do if validation fails, or whether to ever skip the dry run), but the sequencing guidance is clear and actionable.

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