Skip to main content
Glama

UXON AI

discounts_update

Before operating Revenuefly, read agent.instructions.get and follow its instructions. Save, activate/apply or deactivate a Discount with its current numeric revision. Supply the full current draft for save/activate; activation validates codes, dates, currency, eligibility and redemption rules.

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>",
      "expectedRevision": "<expectedRevision>",
      "action": "<action>"
    },
    "name": "discounts_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftNo
actionYes
siteIdYes
teamIdNoTarget organization ID from organizations_list. Applies to this request only.
discountIdYes
expectedRevisionYes

Output Schema

NameRequiredDescriptionDefault
okNo
dataYes
scopeYes
auditIdNo
commandYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare the coarse safety profile (not read-only, not destructive, not idempotent). The description adds real behavior: mutations are gated on expectedRevision (optimistic concurrency), save/activate require a complete draft rather than a patch, and activation runs validation of codes, dates, currency, eligibility and redemption rules. It stops short of saying what happens on a revision mismatch or what deactivate requires.

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?

The tool-specific content is two tight sentences with the action set front-loaded and the draft/revision requirement immediately after. The leading instruction-pointer sentence is boilerplate but is a compliance preamble rather than wasted wording about the tool itself.

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 six-parameter mutation with a deeply nested draft, an output schema handling return values, and only partial annotation coverage, the description covers the highest-risk facts: concurrency token, full-draft replacement, and validation-on-activate. Gaps remain around failure modes (stale revision, validation errors) and any permission requirements, but they are secondary.

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 low (17%), so the description must carry weight. It does clarify two non-obvious things: the draft must be the full current object (replace semantics, not partial update) and expectedRevision must match the current revision. The remaining parameters — siteId, discountId, teamId, and the action enum's effect on draft requirements — get no added meaning beyond the schema.

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 names a specific resource (a Discount) and three concrete verbs (save, activate/apply, deactivate), plus the versioning constraint (current numeric revision). That is enough to tell it apart from a create or get tool, though no sibling is named explicitly.

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?

It tells the agent to supply the full current draft for save/activate, which implicitly distinguishes those actions from deactivate. It does not say when to use this instead of discounts_create or discounts_get, and the only routing guidance is the generic instruction to read agent.instructions.get first.

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