Skip to main content
Glama

Retail: Seller shifts

retail_seller_shifts
Read-only

Named sellers of a retail chain («продавець», «продавчиня», «продавці», by surname): how each one sells on the shifts she worked ALONE («сама», «самостійно», «одна на зміні», «без напарниці») and on the shifts WITH somebody («у парі», «по двоє», «з адміном») — count, revenue, mean revenue per shift, ml — per point, with first and last shift; and the INDEX in %: her mean solo shift ÷ the mean solo shift of the OTHER sellers of the same point over the same period (100 = like the others there). Also the share of the daily plan in ml on her solo shifts (solo_plan_pct). Answers «який % у <імена> по продажах, коли вони самі на змінах», «як продає Половчук сама», «порівняй продавців». Names as the person writes them — 1С spells them differently (Юля/Юлія, Таня/Тетяна, і/и): found ones carry name_in_1c (say it when it differs); not_found / ambiguous come back with options — ask, never guess. «Сама» = nobody else on the 1С document (Сотрудник2, Администратор or the Комментарий). HOW TO ANSWER «який %» with no further word: give index_vs_others_pct as THE figure and say what it is («виручка за самостійну зміну у % до інших продавців цієї точки»), with solo_plan_pct next to it; ask back only if the person may mean a % of PAY (that is retail_payroll_summary). Say data_until (the last imported 1С day) and flag index_thin_base. Read-only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sellers": "<sellers>"
    },
    "name": "retail_seller_shifts"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNoStart date, YYYY-MM-DD. Default: 1 August of the season.
untilNoEnd date, YYYY-MM-DD inclusive. Default: the last imported day.
sellersYesThe sellers' names as the person wrote them (surname is enough), up to 10.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare read-only and closed-world, and the description adds substantial behavior beyond them: how «сама» is determined (no other person on the 1С document — Сотрудник2, Администратор or Комментарий), the ambiguity/fallback protocol for unmatched names, the data_until recency marker, and the index_thin_base caveat. This is exactly the kind of query-resolution and data-quality context an agent needs before calling.

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 core (solo vs paired shift metrics and the index) is front-loaded, but the text is one dense run-on packed with quoted Ukrainian synonyms, parentheticals and em-dashes that make it hard to scan. Every element is relevant, yet the same content could be conveyed in noticeably fewer words with clearer separation of definition, answer protocol and caveats.

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?

There is no output schema, so the description carries the full burden of disclosing return values, and it does: per-point counts, revenue, mean per shift, ml, index with its formula definition (her mean solo shift ÷ other sellers' mean solo shift at the same point, 100 = like the others) and solo_plan_pct. It also covers edge behavior (not_found, ambiguous, thin base) and recency, leaving nothing essential for a correct call unresolved.

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 the schema already documents since, until and sellers including their defaults and the 10-item cap. The description reinforces seller-name semantics (names as the person writes them, 1С spelling mismatches like Юля/Юлія, surname is enough), which adds real meaning, but it adds nothing about the date parameters beyond what the schema states — a modest step above the baseline.

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 names the resource precisely (named sellers of a retail chain, solo vs paired shifts) and enumerates the returned metrics (count, revenue, mean revenue per shift, ml, index_vs_others_pct, solo_plan_pct, first/last shift), so an agent knows exactly what it gets. The verb is only implied by the data listing rather than stated as an action, and it is distinguished from retail_payroll_summary by naming that sibling, which keeps it just short of a 5.

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?

It gives explicit usage routing: answering «який %» with no further word means report index_vs_others_pct as the headline figure with solo_plan_pct beside it, and ask back only if the user may mean a % of pay, which is retail_payroll_summary. It also states the name-matching policy (not_found / ambiguous return options, ask, never guess) and when to surface name_in_1c, so when-to-use and when-not are both covered.

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