Skip to main content
Glama

Проверка списка анализов

lab4u_basket_check
Read-onlyIdempotent

Проверяет список анализов, который назвал или выбрал пользователь, перед сборкой корзины. Находит самый подходящий готовый комплекс: включает хотя бы 2 анализа из списка и добавляет не больше 10. Показывает, что недоступно в городе и что нельзя заказать отдельно. Вызывай, когда у пользователя есть конкретный список анализов, в том числе от врача.

Input Schema

NameRequiredDescriptionDefault
test_idsYesID анализов, которые назвал или выбрал пользователь, от 1 до 20
location_idYesID города из lab4u_cities

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and a closed world, so the safety profile is covered. The description adds genuinely new behavioral content: the matching rule (at least 2 from the list, at most 10 extra), and that it surfaces what is unavailable in the city and what cannot be ordered separately. It does not mention failure modes when nothing matches, which keeps it from a 5.

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?

Four short sentences, front-loaded with the action and its matching rule before the routing condition. Every sentence carries information, though the 'включает хотя бы 2 анализа ... добавляет не больше 10' clause is dense enough that a reader may need to re-read it.

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 an output schema present and full schema coverage, the description only needs to explain intent and matching logic, which it does. What is missing is the behavior when no suitable complex exists, but the core is complete for a read-only check tool.

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%, with test_ids and location_id both documented in the schema, including the 1–20 item bound and the pointer to lab4u_cities. The description only implicitly references these inputs ('список анализов', 'недоступно в городе') and adds no format or constraint detail beyond the schema, so the baseline 3 applies.

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 gives a specific verb and resource ('Проверяет список анализов ... перед сборкой корзины') and then spells out the actual behavior: it finds the best matching ready-made complex containing at least 2 tests from the list and adding no more than 10. That is far more concrete than a name restatement, though it never explicitly contrasts itself with siblings like lab4u_tests_search or lab4u_test_details.

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?

It states the triggering condition plainly: call it when the user has a concrete list of tests, including one prescribed by a doctor. That is a clear usage context, but there are no exclusions or named alternatives telling the agent when to prefer lab4u_tests_search or lab4u_cart_link_create instead.

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