Skip to main content
Glama

get_payment_products

Read-only

Get top products by kept revenue from provider-synced payment data.

Use this for "what sold the most", "top products", or "product breakdown" questions -- do NOT eyeball get_payment_transactions for that. Returns the top products (by kept revenue, each with count and share of revenue), a rolled-up other_products line when there are more than limit, and a single uncategorized bucket for charges the provider left unlabeled (mostly one-off charges / payment links). Only kept charges count; failed, pending, and fully refunded/disputed charges are excluded. Amounts are summed across currencies without conversion; check the currencies field.

Only available to Creator, Manager and Finance roles.

Args: time_period: Time period to query. Defaults to this_month. limit: Max named products to list before rolling the rest into other_products (default 5, max 50).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_payment_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
time_periodNothis_month

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Adds substantial behavior beyond the readOnly/destructive annotations: only kept charges count, failed/pending/refunded/disputed are excluded, amounts are summed across currencies without conversion, the other_products rollup and uncategorized bucket behavior, and a role gate (Creator, Manager, Finance). None of this is derivable from the annotations or schema.

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?

Front-loaded with purpose then usage routing, followed by return shape, counting rules, currency caveat, and role gate in descending priority. It is dense but nearly every sentence carries a distinct constraint; a small amount of tightening in the return-shape paragraph would be possible.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers selection criteria, exclusion rules, aggregation caveats, role authorization, and parameter semantics even though an output schema already documents the return payload. For a two-parameter read tool with annotations, nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry the parameter burden, and the Args block does explain both parameters beyond defaults: limit is the threshold before rolling into other_products with a max of 50, and time_period defaults to this_month. It stops short of enumerating accepted time_period values, which is the one remaining 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?

States a specific verb and resource plus the ranking metric: 'Get top products by kept revenue from provider-synced payment data.' The scope is narrowed immediately, and the description explicitly distinguishes it from get_payment_transactions, so an agent can select it without opening either schema.

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?

Gives concrete user phrasings that select this tool ('what sold the most', 'top products', 'product breakdown') and an explicit exclusion with the named alternative ('do NOT eyeball get_payment_transactions for that'). Both when-to-use and when-not-to-use are present.

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