Skip to main content
Glama

UXON AI

discounts_get

Read-onlyIdempotent

Before operating Revenuefly, read agent.instructions.get and follow its instructions. Read a Discount's full draft, numeric editorRevision, applied terms and lifecycle.

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

Input Schema

NameRequiredDescriptionDefault
siteIdYes
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.2/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 needs no restating. The description adds useful behavior detail — that the response carries the draft plus a numeric editorRevision, applied terms and lifecycle state, implying optimistic-concurrency semantics — but stays silent on permissions, scoping by siteId, and whether unpublished drafts are returned.

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?

Two short sentences, with the mandatory preamble first and the tool purpose second; nothing is padded. The first sentence is closer to boilerplate than tool-specific content, which costs a point.

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?

An output schema exists, so return values need not be described, and the prerequisite is covered. Still, for a three-parameter read with two undocumented IDs, the definition leaves an agent guessing about scoping and identifier sourcing, which is a real completeness gap.

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 33%: teamId is documented, while siteId and discountId carry no descriptions at all. The description does not compensate by explaining what a discount ID refers to, whether siteId is required for scoping, or what happens when teamId is omitted.

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 ('Read') and a specific resource ('a Discount'), then enumerates the payload contents: full draft, numeric editorRevision, applied terms, lifecycle. That is enough to separate it from list/update/delete siblings, though it does not explicitly name a contrast such as discounts_context_get or discounts_list.

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 supplies one strong prerequisite ('read agent.instructions.get and follow its instructions'), which is genuine usage guidance. However, it never says when to fetch a discount versus using the sibling that lists discounts or the context variant, so the choice is only implied by the resource name.

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