Skip to main content
Glama

Przygotuj szkic i wycenę recepty

przygotuj_szkic_recepty
Read-only

Przygotowuje szkic recepty doradcy (plan dnia, dopasowane produkty i warianty) oraz potwierdzoną wycenę z żywego katalogu i mechanizmu promocji sklepu (w tym rabaty per wariant i aktywne promocje GRZYB WEEKS). Przy niejednoznacznej nazwie zwraca dopasowanych kandydatów do dopytania przed wystawieniem. Tylko odczyt — nie zapisuje recepty, nie tworzy kodu i nic nie wysyła klientowi.

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": {
      "pozycje": "<pozycje>"
    },
    "name": "przygotuj_szkic_recepty"
  }
}

Input Schema

NameRequiredDescriptionDefault
trybNoTryb recepty: "rabat" (z kodem rabatowym) lub "sam_plan" (sam plan bez kodu).
notkaNoOpcjonalna notka od doradcy (nie dopisuj zaleceń, których doradca nie podał).
localeNoJęzyk recepty (domyślnie "pl").
pozycjeYesLista pozycji recepty (1–8 produktów).
kod_recznyNoOpcjonalny istniejący kod rabatowy (gdy rabat_procent = 0).
waznosc_godzinNoWażność wygenerowanego kodu w godzinach (domyślnie 168 h dla ambasadora).
uwzglednij_kampanieNoCzy uwzględnić aktywną promocję kampanijną (np. GRZYB WEEKS / Black Friday). Domyślnie true.
rabat_globalny_procentNoOpcjonalny wspólny rabat % dla pozycji bez własnego rabat_procent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false; the description reinforces this and adds real behavioral detail: pricing comes from the live catalog plus per-variant discounts and active campaigns (e.g. GRZYB WEEKS), and nothing is persisted, coded or sent to the customer. Minor tension: the schema exposes waznosc_godzin as the validity of a 'generated code' while the text says no code is created, which leaves the discount-code path slightly unclear.

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?

Three sentences, front-loaded with the core action, then ambiguity handling, then the read-only disclaimer. Dense but every clause carries information; the parenthetical field lists are slightly redundant with the schema but still readable.

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 an 8-parameter tool with no output schema, the definition covers the important ground: what is produced (plan, matched variants, confirmed price), what is not (no persistence, no code, no customer message) and the ambiguity fallback. Return shape is only sketched for the ambiguous case, but that is the one path where prediction matters most.

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% and every field (tryb, pozycje, rabat_procent, uwzglednij_kampanie, waznosc_godzin) is documented inline with enums and bounds. The description only echoes that variants and per-variant/campaign discounts exist, adding no syntax or precedence rules beyond the schema, so the baseline applies.

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?

States a concrete verb and a compound resource: it builds an advisor's recipe draft (day plan, matched products and variants) together with a confirmed price from the live catalog and promotion engine. The closing clause (doesn't save the recipe, doesn't create a code, doesn't send to the client) functionally separates it from the issuing/composing siblings without needing to name them.

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?

Gives one conditional usage rule that is genuinely operational: ambiguous product names return candidates to clarify before issuing. However, it never states when to choose this over issue_recipe/wystaw_recepte or compose_cart, nor any prerequisites, so the when-vs-alternative guidance is only implied by the read-only scope.

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