Skip to main content
Glama

List discounts

loyverse_list_discounts
Read-only

Retrieve discounts configured on a Loyverse account. Filter by discount IDs, creation/update dates, or include deleted discounts to review pricing rules.

Instructions

List the discounts configured on the account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
discount_idsNo
show_deletedNo
created_at_maxNoISO 8601 timestamp, inclusive upper bound.
created_at_minNoISO 8601 timestamp, inclusive lower bound.
updated_at_maxNoISO 8601 timestamp, inclusive upper bound.
updated_at_minNoISO 8601 timestamp, inclusive lower bound.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already state readOnlyHint=true and destructiveHint=false, so the safety profile is established. The description adds a small amount of scope ('configured on the account') but does not explain behavioral aspects such as pagination, inclusion of deleted discounts, or the meaning of the openWorldHint/idempotentHint annotations. No contradiction with annotations.

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?

The description is a single front-loaded sentence with no filler: it states the action, the resource, and the scope. Every word 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?

For basic invocation, the description is adequate: no required parameters, and the read-only annotations cover the safety context. However, the tool accepts six optional filters, has no output schema, and the description does not mention response shape, filtering semantics, or whether deleted discounts appear, so it is not fully complete for nuanced use.

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?

The description adds no meaning beyond the input schema for the six parameters. Two parameters (`discount_ids`, `show_deleted`) lack schema descriptions, and the description does not compensate for them or clarify filtering behavior. Schema coverage of 67% is not high enough to offset this gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('List') and a clear resource ('discounts'), with an account-level scope ('configured on the account'). It is immediately distinguishable from the sibling write tool `loyverse_upsert_discount`, so an agent can tell this is the read-only lookup.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance about when to prefer this tool over alternatives, no mention of the write sibling `loyverse_upsert_discount`, and no conditions or exclusions. The only usage signal is implied by the verb 'List', which is not enough guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.