Skip to main content
Glama

Birinchi Shop — CPA partner API

Search offers

search_offers
Read-onlyIdempotent

Search the catalog of active offers (products the partner can promote). Returns customer_price, payout, lead_bonus, stock and sale_rate_percent for each offer. sort=best_selling orders offers by the share of orders that get delivered. Example: {"search": "soat", "sort": "best_selling", "min_sale_rate": 20, "limit": 5} — top 5 watches by sale rate.

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

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of offer name/description: uz (default, original), ru or en (translation; falls back to Uzbek if missing).uz
pageNoPage number, starting at 1.
sortNorecommended (default; relevance when search is given) | newest | best_selling (by sale rate) | highest_payout | highest_stock | highest_lead_bonusrecommended
limitNoItems per page (default 20, max 100).
searchNoProduct search (Uzbek Latin/Cyrillic or Russian; synonyms and typos are tolerated). Without sort, results are ordered by relevance.
min_payoutNoMinimum payout in UZS.
in_stock_onlyNoOnly offers with stock > 0 (default true).
min_sale_rateNoMinimum sale_rate_percent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changed
    • addedInput schema / properties / in_stock_only / default
      Added value: +true
    • addedInput schema / properties / in_stock_only / examples
      Added value: +[
      +  true
      +]
    • addedInput schema / properties / lang / default
      Added value: +"uz"
    • addedInput schema / properties / lang / examples
      Added value: +[
      +  "en"
      +]
    • addedInput schema / properties / limit / default
      Added value: +20
    • addedInput schema / properties / limit / examples
      Added value: +[
      +  20
      +]
    • addedInput schema / properties / min_payout / examples
      Added value: +[
      +  30000
      +]
    • addedInput schema / properties / min_sale_rate / examples
      Added value: +[
      +  20
      +]
    • addedInput schema / properties / page / default
      Added value: +1
    • addedInput schema / properties / page / examples
      Added value: +[
      +  1
      +]
    • addedInput schema / properties / search / examples
      Added value: +[
      +  "soat",
      +  "krem",
      +  "наушники"
      +]
    • addedInput schema / properties / sort / default
      Added value: +"recommended"
    • addedInput schema / properties / sort / examples
      Added value: +[
      +  "best_selling"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / lang
      Added value: +{
      +  "description": "Language of offer name/description: uz (default, original), ru or en (translation; falls back to Uzbek if missing).",
      +  "enum": [
      +    "uz",
      +    "ru",
      +    "en"
      +  ],
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / search / description
      Previous value: -"Text to search in the product name (Uzbek/Russian names)."New value: +"Product search (Uzbek Latin/Cyrillic or Russian; synonyms and typos are tolerated). Without sort, results are ordered by relevance."
    • changedInput schema / properties / sort / description
      Previous value: -"recommended (default) | newest | best_selling (by sale rate) | highest_payout | highest_stock | highest_lead_bonus"New value: +"recommended (default; relevance when search is given) | newest | best_selling (by sale rate) | highest_payout | highest_stock | highest_lead_bonus"
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real value beyond that by enumerating the returned fields (customer_price, payout, lead_bonus, stock, sale_rate_percent) — important since there is no output schema — and by explaining that sort=best_selling ranks by the share of orders actually delivered.

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 purpose and return fields are front-loaded, then sort semantics, then a concrete example — a sensible ordering with no filler sentences. There is minor overlap between the prose explanation of best_selling and the enum description in the schema.

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?

With 8 optional parameters, no output schema and a rich input schema, the description covers the essential missing piece: what the tool returns. Pagination via page/limit is left entirely to the schema, which is acceptable since those fields are fully documented there.

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 100%, so a baseline of 3 would be acceptable, but the description goes further by defining the business meaning of best_selling ('share of orders that get delivered'), which sharpens the schema's terser 'by sale rate'. The example also shows how search, sort, min_sale_rate and limit combine in practice.

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 opens with a specific verb+resource ('Search the catalog of active offers') and clarifies the domain ('products the partner can promote'), which separates it from the single-item get_offer. It does not name a sibling tool explicitly, so it stops short of full sibling differentiation.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: an agent can infer this is the tool for browsing/filtering offers, and the worked example demonstrates a filtering scenario. There is no explicit 'use this instead of get_offer when...' guidance or statement of when not to use it.

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