Skip to main content
Glama

UXON AI

discounts_create

Idempotent

Before operating Revenuefly, read agent.instructions.get and follow its instructions. Create an incomplete Discount draft. Configure with discounts.update save; activate separately only on the user's request.

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>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "discounts_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdYes
teamIdNoTarget organization ID from organizations_list. Applies to this request only.
idempotencyKeyYesRequired unique request key for safe retries, for example client-action-2026-07-20-001.

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 already declare readOnlyHint=false, destructiveHint=false and idempotentHint=true, so the description's main added value is that the created object is deliberately incomplete and inert until configured and activated. That is genuinely useful state information an agent cannot derive from the annotations. It does not mention what happens on duplicate creation or that the idempotencyKey is what makes retries safe.

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 draft/configure/activate sentences are tight and high value, but the opening instruction to read agent.instructions.get is boilerplate that describes a cross-tool precondition rather than this tool, consuming the front-loaded position. Removing it would leave a leaner, better-focused definition.

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?

With an output schema present, return values need not be explained, and the draft lifecycle (create incomplete, configure, activate) is well covered. The gap is the required siteId parameter, which is undocumented in both schema and description, leaving an agent unsure what a site scope means for a draft discount.

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 67%: teamId and idempotencyKey are documented in the schema, but siteId has no description anywhere. The description adds no parameter-level meaning at all, so the undocumented siteId remains unexplained in both places. Baseline 3 is appropriate for partial coverage with no compensating detail.

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 second sentence states a specific verb and resource (create an incomplete Discount draft) and immediately bounds the scope: configuration happens via discounts.update save and activation is separate. This lets an agent distinguish it from discounts_update and from an activation flow without opening the schema. The leading sentence about agent.instructions.get describes a precondition rather than the tool's purpose, which slightly dilutes the opening.

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?

Explicitly routes the agent: create the draft here, then configure via discounts.update save, and activate only on the user's explicit request. That names the alternative tool for the follow-up step and rules out activation from this call. It stops short of stating when not to use it (for example, when a discount already exists or when the user wants a live discount immediately).

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