Skip to main content
Glama

Discounts: campaign statistics

msg_discounts_open_api_stats
Read-onlyIdempotent

Retrieve statistics for sent discount campaigns including offers sent, accepted, dates, discount amount, and cost. Analyze campaign performance to optimize future offers.

Instructions

[BETA] Returns statistics for already-sent discount/special-offer campaigns over a period (stats). Read-only; sends nothing and charges nothing. For each campaign: itemId, offerSlug, send and expiration dates, the number of offers sent (count) and accepted by buyers (accepted), the discount amount, and the cost. Use it to analyze results; for eligibility checks use ..._available, and for the remaining plan balance use ..._tariff_info.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateTimeFromYesStart of the selection period, RFC3339 / ISO 8601 format (e.g. 2022-02-24T05:00:00Z).
dateTimeToYesEnd of the selection period, RFC3339 / ISO 8601 format (e.g. 2022-03-01T12:00:00Z).
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint. The description adds that it is 'Read-only; sends nothing and charges nothing,' which provides extra reassurance beyond annotations. No contradictions.

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 concise and well-structured: it starts with the main purpose, lists returned fields, and ends with usage guidance. Every sentence adds value with no redundancy.

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?

The description thoroughly explains the returned fields and usage context. However, with no output schema and potential for pagination or limits, a brief note on response bounds would improve completeness. Still, the given information is sufficient for basic usage.

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 100% with clear ISO 8601 format descriptions. The description does not add additional parameter-level detail beyond what the schema provides, so baseline score of 3 is appropriate.

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 clearly states it returns statistics for already-sent discount campaigns over a period, listing specific fields. It distinguishes itself from sibling tools like msg_discounts_open_api_available and msg_discounts_open_api_tariff_info.

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

Usage Guidelines5/5

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

Explicitly tells when to use this tool: 'Use it to analyze results; for eligibility checks use ..._available, and for the remaining plan balance use ..._tariff_info.' This provides clear guidance against alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/elchin92/avito-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server