Skip to main content
Glama

Links que mais venderam

painel_get_top_links
Read-onlyIdempotent

Links de afiliado do AliExpress que mais renderam no período (sem cancelados): pedidos, vendas, comissão, compradores distintos e produtos vendidos por link. coverage diz quantos pedidos vieram com o link identificado. Só AliExpress (os outros marketplaces não informam o link da venda).

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

Input Schema

NameRequiredDescriptionDefault
daysNoAlternativa a start/end: janela de N dias terminando em end_date (default 30).
sortNoOrdenação, decrescente (default commission).
limitNoItens por página (default 20).
offsetNoDeslocamento para paginação (default 0). Use paging.nextOffset da resposta.
end_dateNoFim do período (yyyy-mm-dd). Opcional (default: hoje).
start_dateNoInício do período (yyyy-mm-dd). Opcional — ex.: "2026-06-01".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / offset / maximum
      Added value: +5000
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds real behavioral context beyond that: cancelled orders are excluded, results are constrained to one marketplace, and the `coverage` field signals partial link attribution, which affects how results should be read.

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?

Three compact sentences: the metric list first, then the caveat about `coverage`, then the marketplace limitation. No redundant restatement of the title or schema.

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?

With no output schema, the description compensates by enumerating the returned metrics (orders, sales, commission, distinct buyers, products per link) and explaining the `coverage` field. Combined with the fully documented input schema, an agent has enough to call and interpret it correctly.

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%, so every parameter (days vs start/end, sort enum, limit/offset) is already documented in the schema. The description adds no syntax, default, or interaction detail beyond that, so baseline 3 applies.

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+resource: affiliate links that generated the most revenue in a period, with an explicit exclusion (cancelled orders) and an explicit scope limit (AliExpress only). The per-link framing distinguishes it from sibling breakdown tools like painel_get_top_products and painel_get_subid_breakdown.

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?

Gives a clear when-not condition: other marketplaces don't report the sale link, so this tool cannot serve them. It does not explicitly route between this and adjacent breakdown siblings (products, subid, channel), leaving that comparison to inference.

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