Skip to main content
Glama

catalog

Подбор предложений по сумме и сроку

search_offers
Read-onlyIdempotent

Подбирает предложения МФО для новых клиентов по сумме займа (amount, ₽), сроку (term_days, дней) и признаку первого займа под 0% (first_loan_zero: true — только МФО с беспроцентным первым займом). В подбор входят только МФО, которые сейчас показываются на витринах сайта; организации, временно снятые с витрин, остаются в list_mfo и get_mfo, но сюда не попадают. Все фильтры необязательны; без них возвращаются все такие МФО, поэтому задавайте amount и/или term_days и ограничивайте limit (по умолчанию 15, максимум 100). МФО попадает в выдачу, только если у неё есть тариф для нового клиента, который один покрывает и сумму, и срок (срок короче минимального срока тарифа допускается: это досрочный возврат). Результат отсортирован по месту в рейтинге заёмщиков. Ответ: JSON {query, total, truncated, note, offers[]}, у каждого предложения: name, slug, amount_range и term_range (все тарифы МФО для нового клиента), rate (в день, по тарифу rate_tariff), matched_tariff (тариф, подобранный под запрос: название, пределы суммы и срока, ставка в день, interest_free_days — дни под 0 % именно на эти сумму и срок, interest_free_whole_term — весь ли срок без процентов, early_repayment), interest_free_days и first_loan_zero_percent (есть ли акция у МФО вообще: true/false/null, null — не подтверждено), paid_addons (есть ли платные дополнительные услуги и их названия; поля нет — сведения не внесены), rating_average, canonical_url. Используйте, когда у пользователя есть конкретная сумма или срок; весь каталог по рейтингу — list_mfo, тематические подборки (займ на карту, без отказа и т.п.) — list_categories и get_category, подробности по МФО — get_mfo. Только чтение, без авторизации и побочных эффектов; лимит 60 запросов в минуту с одного IP (при превышении HTTP 429). Условия волатильны — финальные смотрите на canonical_url.

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
limitNoСколько предложений вернуть, 1–100 (по умолчанию 15)
amountNoНужная сумма займа в рублях, например 15000
term_daysNoНужный срок в днях, например 30
first_loan_zeroNotrue — только МФО с первым займом под 0% для новых клиентов

Output Schema

NameRequiredDescriptionDefault
noteYes
queryYesПрименённые фильтры
totalYesСколько предложений подошло всего
offersYes
truncatedYestrue — вернулась не вся выборка, увеличьте limit

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / offers / items / properties / paid_addons
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Платные дополнительные услуги, которые МФО предлагает при оформлении. Поля нет — сведения не внесены, это не значит, что услуг нет",
      +  "properties": {
      +    "available": {
      +      "description": "true — платные услуги есть; false — их нет, проверено по документам МФО",
      +      "type": "boolean"
      +    },
      +    "names": {
      +      "description": "Названия услуг; подробности (кто оказывает, цена, срок отказа) в get_mfo",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "available"
      +  ],
      +  "type": "object"
      +}
  2. Changed6 schema fields changed
    • addedOutput schema / properties / offers / items / properties / amount_range / description
      Added value: +"Сумма для нового клиента по всем тарифам МФО"
    • addedOutput schema / properties / offers / items / properties / interest_free_days / description
      Added value: +"Максимум дней под 0 % среди тарифов нового клиента этой МФО"
    • addedOutput schema / properties / offers / items / properties / matched_tariff
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Тариф нового клиента, подобранный под запрос (есть, только если заданы amount или term_days). Его interest_free_days — дни под 0 % именно на эти сумму и срок; поля нет — на запрос 0 % не действует",
      +  "properties": {
      +    "amount_rub": {
      +      "additionalProperties": false,
      +      "description": "Сумма займа по тарифу, ₽",
      +      "properties": {
      +        "max": {
      +          "type": "number"
      +        },
      +        "min": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "min",
      +        "max"
      +      ],
      +      "type": "object"
      +    },
      +    "client_type": {
      +      "description": "Кому доступен: new — только новым клиентам, repeat — только повторным, all — всем",
      +      "enum": [
      +        "new",
      +        "repeat",
      +        "all"
      +      ],
      +      "type": "string"
      +    },
      +    "early_repayment": {
      +      "description": "true — срок запроса короче минимального срока тарифа: договор на минимальный срок, вернуть раньше можно досрочно",
      +      "type": "boolean"
      +    },
      +    "id": {
      +      "type": [
      +        "number",
      +        "string"
      +      ]
      +    },
      +    "interest_free_days": {
      +      "description": "Дней под 0 % по акции этого тарифа; поля нет — акции у тарифа нет",
      +      "type": "number"
      +    },
      +    "interest_free_whole_term": {
      +      "description": "true — весь запрошенный срок без процентов; false — акции нет или её не хватает на весь срок",
      +      "type": "boolean"
      +    },
      +    "name": {
      +      "description": "Название тарифа",
      +      "type": "string"
      +    },
      +    "psk_percent": {
      +      "additionalProperties": false,
      +      "description": "Полная стоимость кредита по тарифу, % годовых",
      +      "properties": {
      +        "from": {
      +          "type": "number"
      +        },
      +        "to": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "from",
      +        "to"
      +      ],
      +      "type": "object"
      +    },
      +    "rate_per_day_percent": {
      +      "description": "Ставка, % в день (с ежедневной платой за обслуживание, если она есть); при ставке «от … до» верхняя граница",
      +      "type": "number"
      +    },
      +    "rate_per_day_percent_from": {
      +      "description": "Нижняя граница ставки, % в день, если ставка задана диапазоном",
      +      "type": "number"
      +    },
      +    "selected_by": {
      +      "description": "query — тариф подобран под сумму или срок запроса",
      +      "enum": [
      +        "query",
      +        "default"
      +      ],
      +      "type": "string"
      +    },
      +    "term_days": {
      +      "additionalProperties": false,
      +      "description": "Срок по тарифу, дней",
      +      "properties": {
      +        "max": {
      +          "type": "number"
      +        },
      +        "min": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "min",
      +        "max"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "name",
      +    "client_type",
      +    "amount_rub",
      +    "term_days",
      +    "rate_per_day_percent",
      +    "selected_by"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / offers / items / properties / rate / description
      Added value: +"Ставка с единицами («0.8% в день») по тарифу rate_tariff"
    • addedOutput schema / properties / offers / items / properties / rate_tariff
      Added value: +{
      +  "description": "Тариф, к которому относится ставка: с суммой или сроком в запросе это matched_tariff",
      +  "type": "string"
      +}
    • addedOutput schema / properties / offers / items / properties / term_range / description
      Added value: +"Срок для нового клиента по всем тарифам МФО"
  3. Changed2 schema fields changed
    • removedOutput schema / properties / offers / items / properties / first_loan_zero_percent / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / offers / items / properties / first_loan_zero_percent / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
  4. Changed5 schema fields changed
    • addedInput schema / properties / amount / description
      Added value: +"Нужная сумма займа в рублях, например 15000"
    • addedInput schema / properties / first_loan_zero / description
      Added value: +"true — только МФО с первым займом под 0% для новых клиентов"
    • addedInput schema / properties / limit / description
      Added value: +"Сколько предложений вернуть, 1–100 (по умолчанию 15)"
    • addedInput schema / properties / term_days / description
      Added value: +"Нужный срок в днях, например 30"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "note": {
      +      "type": "string"
      +    },
      +    "offers": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "amount_range": {
      +            "type": "string"
      +          },
      +          "canonical_url": {
      +            "format": "uri",
      +            "type": "string"
      +          },
      +          "first_loan_zero_percent": {
      +            "anyOf": [
      +              {
      +                "type": "boolean"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "interest_free_days": {
      +            "type": "number"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "rate": {
      +            "type": "string"
      +          },
      +          "rating_average": {
      +            "type": "number"
      +          },
      +          "slug": {
      +            "type": "string"
      +          },
      +          "term_range": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "slug",
      +          "canonical_url",
      +          "first_loan_zero_percent"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "query": {
      +      "additionalProperties": false,
      +      "description": "Применённые фильтры",
      +      "properties": {
      +        "amount": {
      +          "type": "number"
      +        },
      +        "first_loan_zero": {
      +          "type": "boolean"
      +        },
      +        "term_days": {
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "total": {
      +      "description": "Сколько предложений подошло всего",
      +      "type": "number"
      +    },
      +    "truncated": {
      +      "description": "true — вернулась не вся выборка, увеличьте limit",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "query",
      +    "total",
      +    "truncated",
      +    "note",
      +    "offers"
      +  ],
      +  "type": "object"
      +}
  5. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/non-destructive, but the description adds substantive behavior: only МФО currently displayed on site storefronts qualify (temporarily delisted ones remain in list_mfo/get_mfo but not here), a single tariff must cover both amount and term (shorter terms allowed as early repayment), results sort by borrower rating, and a 60 req/min per-IP limit returns HTTP 429. The volatility caveat pointing to canonical_url is an extra operational nuance.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and routing are front-loaded and well organized, but a large block spells out the entire JSON response shape and every offer field despite an output schema existing. That section duplicates structured data and bloats an otherwise efficient definition.

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?

For a matching tool with optional filters, the description covers eligibility rules, sorting, fallback behavior when no filters are given, rate limits and data volatility. Nothing an agent needs to call this correctly is missing — the only issue is excess, not omission.

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 the schema already documents all four parameters; the description nonetheless adds meaning, notably that first_loan_zero=true restricts to МФО with a 0% first loan and that a term shorter than a tariff's minimum counts as early repayment rather than exclusion. The amount/term semantics are mostly restated, keeping this below a 5.

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 opens with a specific verb+resource ('Подбирает предложения МФО для новых клиентов') and enumerates the three filter dimensions, so an agent immediately knows this is a filtered matching tool, not a catalog listing. It is clearly distinguishable from list_mfo and get_mfo by scope.

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?

Explicit routing: use when the user has a concrete amount or term; full catalog by rating goes to list_mfo; thematic collections to list_categories/get_category; per-МФО detail to get_mfo. It also states that all filters are optional and warns to supply amount and/or term_days plus a bounded limit, which is real invocation guidance.

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.