Skip to main content
Glama

Krasoft Russian Public Procurement

Поиск спецификаций контрактов

search_contract_specs
Read-only

Поиск по строкам спецификаций заключённых контрактов 44-ФЗ — одна строка = позиция спецификации: полный текст позиции в поле name (МНН или вид изделия, торговое наименование, форма, производитель и страна идут одной строкой — поля mnn, tradeName, manufacturer, country в ответе пустые), количество, цена, сумма. Номер контракта, заказчик, поставщик и регион есть не у всех строк (в 2026 году — меньше чем у половины), поэтому фильтры по ним отсекают остальные. Ответ содержит Aggregates по всей выборке: общая сумма и количество, число контрактов и поставщиков. Доступ: MCP-сервис страницы «Спецификация · Контракты», его подключает менеджер КРАСОФТ; без него инструмент вернёт отказ.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoСтраница выдачи (0-based)
queryNoТекст поиска по позиции, номеру контракта или извещения, заказчику и поставщику
periodNoПериод по году строки спецификации: "2y" — последние 2 года, "5y" — 5 лет, "older" — старше 5 лет, "all" — весь корпус (медленнее). По умолчанию "2y"; при заданных датах — "all"
pageSizeNoРазмер страницы
regionCodesNoКоды регионов РФ: 2 цифры ("77" — Москва) либо полный 13-значный код
customerInnsNoИНН заказчиков
includeTotalNoТочный счёт найденного без потолка. Без него total не больше 10 000 — это значит «10 000 и больше»
positionNameNoСлово из текста позиции: МНН, торговое наименование, производитель или страна. Слова фразы ищутся по ИЛИ («Ибупрофен таблетки» найдёт и всё с «таблетки»), поэтому давайте одно характерное слово
supplierInnsNoИНН поставщиков

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • removedInput schema / properties / country
      Removed value: -{
      -  "description": "Страна происхождения",
      -  "type": "string"
      -}
    • removedInput schema / properties / fz
      Removed value: -{
      -  "description": "Закон: 44 и/или 223",
      -  "items": {
      -    "enum": [
      -      44,
      -      223
      -    ],
      -    "type": "integer"
      -  },
      -  "type": "array"
      -}
    • changedInput schema / properties / includeTotal / description
      Previous value: -"Точный счёт найденного (обрезан 10 000)"New value: +"Точный счёт найденного без потолка. Без него total не больше 10 000 — это значит «10 000 и больше»"
    • removedInput schema / properties / manufacturer
      Removed value: -{
      -  "description": "Производитель",
      -  "type": "string"
      -}
    • removedInput schema / properties / mnn
      Removed value: -{
      -  "description": "МНН (международное непатентованное наименование), напр. \"Ибупрофен\"",
      -  "type": "string"
      -}
    • removedInput schema / properties / period / default
      Removed value: -"2y"
    • changedInput schema / properties / period / description
      Previous value: -"Период публикации контракта: \"2y\" (default) — последние 2 года, \"5y\" — 5 лет, \"older\" — старше 5 лет, \"all\" — весь корпус (медленнее)"New value: +"Период по году строки спецификации: \"2y\" — последние 2 года, \"5y\" — 5 лет, \"older\" — старше 5 лет, \"all\" — весь корпус (медленнее). По умолчанию \"2y\"; при заданных датах — \"all\""
    • addedInput schema / properties / positionName
      Added value: +{
      +  "description": "Слово из текста позиции: МНН, торговое наименование, производитель или страна. Слова фразы ищутся по ИЛИ («Ибупрофен таблетки» найдёт и всё с «таблетки»), поэтому давайте одно характерное слово",
      +  "type": "string"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"Текст поиска по строке спецификации и контракту"New value: +"Текст поиска по позиции, номеру контракта или извещения, заказчику и поставщику"
    • removedInput schema / properties / tradeName
      Removed value: -{
      -  "description": "Торговое наименование препарата",
      -  "type": "string"
      -}
  2. Changed1 schema field changed
    • changedInput schema / properties / regionCodes / description
      Previous value: -"Коды регионов РФ (2 цифры)"New value: +"Коды регионов РФ: 2 цифры (\"77\" — Москва) либо полный 13-значный код"
  3. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only carry readOnlyHint=true, and the description adds substantial behavior beyond it: the split fields mnn, tradeName, manufacturer, and country are empty in the response because everything is flattened into name; contract number, customer, supplier, and region are absent for more than half of rows by 2026; the response includes Aggregates (total sum and quantity, number of contracts and suppliers); and the access failure mode is an explicit refusal. No contradiction with the readOnly annotation.

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 description is dense rather than short, but every sentence earns its place: search scope, data-model quirk, unsafe-filter warning, response aggregates, and access prerequisite. The verb+resource is front-loaded, and the length is justified for a 9-parameter tool with no output schema, though it could be tightened slightly.

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 9-parameter tool with no output schema, the description covers the essential operational facts: what is searched, the response shape (flattened name field, empty split fields, Aggregates), which filters are unsafe, and the access requirement. It omits empty-result behavior and sorting, but an agent has enough information to call the tool correctly.

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 description coverage is 100%, so the baseline is 3. The description adds value beyond the schema by warning that filters such as customerInns, supplierInns, regionCodes, and query (contract number/customer/supplier) will silently cut off matching rows because those attributes are often missing — behavioral semantics that the parameter descriptions alone cannot convey.

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 precise verb+resource — 'Поиск по строкам спецификаций заключённых контрактов 44-ФЗ' — and defines the unusual data model: one row equals one specification position with the full text in the name field. The scope is clear, but it does not explicitly name or contrast any sibling tool (e.g., search_contract_products), so differentiation among the many sibling search tools is implied rather than stated.

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?

The description gives concrete usage context: filters on contract number, customer, supplier, and region 'отсекают остальные' because these attributes are missing from most rows, and it warns that the tool depends on a KRA SOFT manager-connected MCP service, otherwise 'инструмент вернёт отказ'. This is clear when/when-not guidance for filters and prerequisites, though it never names an alternative tool, leaving when-to-pick-this-over-siblings implicit.

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