Skip to main content
Glama

UXON AI

discounts_codes_list

Read-onlyIdempotent

Before operating Revenuefly, read agent.instructions.get and follow its instructions. List issued unique Discount codes and their availability/redemption state with the returned cursor. Reusable codes are in discounts.get draft/appliedDraft.

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": {
      "siteId": "<siteId>",
      "discountId": "<discountId>",
      "status": "<status>"
    },
    "name": "discounts_codes_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorNo
searchNo
siteIdYes
statusYesall
teamIdNoTarget organization ID from organizations_list. Applies to this request only.
discountIdYes

Output Schema

NameRequiredDescriptionDefault
okNo
dataYes
scopeYes
commandYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds that results are cursor-paginated ('with the returned cursor'), which is useful beyond the annotations. It says nothing about rate limits, filtering semantics, or what the cursor contract requires on subsequent calls.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The substantive content is two tight sentences with no redundancy, but the leading 'Before operating Revenuefly, read agent.instructions.get and follow its instructions' is boilerplate that pushes the actual purpose out of the front-loaded position. It is short overall, but the ordering works against quick scanning.

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 an output schema present, return values need not be explained, but a 6-parameter tool at 17% schema coverage needs more than this. Nothing tells the agent that discountId must reference a specific discount or how status interacts with the returned code set. The definition is under-specified for a filtered list requiring three mandatory parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 17% across 6 parameters, so the description must compensate and largely does not. It mentions the cursor and gestures at the 'availability/redemption state' filter, but the required siteId and discountId and the optional search and teamId parameters get no explanation. An agent must infer the discount-scoping requirement from the schema alone.

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 core sentence gives a specific verb and resource: 'List issued unique Discount codes and their availability/redemption state.' It also scopes the resource by pointing out that reusable codes live in discounts.get draft/appliedDraft, which distinguishes this tool from related lookups. The purpose is partly buried behind a boilerplate instruction sentence, but once found it is unambiguous.

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?

The description routes one case elsewhere ('Reusable codes are in discounts.get draft/appliedDraft'), which is genuine alternative-selection guidance. However, it never states when to call this list versus discounts_list or discounts_get, and the opening sentence is a generic pre-read instruction rather than usage context. Guidance is implied for a narrow case only.

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