Skip to main content
Glama

Get sales stats in Payhip

payhip_get_sales_stats
Read-onlyIdempotent

Get sales stats in the user's own Payhip account from ChatGPT, Claude or any AI agent. Returns how to do it in Payhip step by step (screens, buttons, fields) and opens nothing by itself; then do it with the cotlet_browser_* tools in the user's Payhip Cloud Browser. Payhip's official API: Payhip has a narrow public API (checked 28 Oct 2026): it creates, lists and retrieves coupons, and verifies, enables, disables or counts uses of software license keys.

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": "payhip_get_sales_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds behavior that annotations cannot express: the tool opens nothing, touches no page, and returns instructions rather than data — which is exactly the assumption an agent would otherwise get wrong with a name like 'get_sales_stats'. That is high-value disclosure.

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?

The core behavior and the follow-up step are front-loaded in the first two clauses, which is the right ordering. The final sentence about Payhip's official API is defensible context for why the browser route is necessary, but the enumeration of coupon and license-key endpoints is detail that does not help an agent decide or act, and the 'checked 28 Oct 2026' date is a maintenance artifact.

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?

For a zero-parameter tool with no output schema, the description covers what happens (returns step-by-step instructions, opens nothing) and what to do next. It does not say whether the steps depend on the user having a connected Payhip account or what the returned guidance looks like structurally, but nothing essential to invoking 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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; the baseline of 4 applies. The schema coverage is 100% and no parameter documentation is needed.

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 states a specific verb and resource (sales stats in the user's own Payhip account) and, crucially, corrects the implication of the name by saying it 'returns how to do it in Payhip step by step (screens, buttons, fields) and opens nothing by itself.' It also distinguishes itself from the cotlet_browser_* tools, which perform the actual navigation. A small gap remains: it never clarifies the relationship to a sibling like payhip_list_orders, which could plausibly surface sales data.

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?

Usage is spelled out as a two-step flow: call this tool to get the steps, then execute them with cotlet_browser_* in the user's Payhip Cloud Browser. The note that Payhip's public API does not cover sales stats effectively rules out an API path. There is no explicit 'do not use this for X' exclusion, but the forward guidance is clear.

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