Skip to main content
Glama

Wystaw receptę (zapisz i zwróć link)

wystaw_recepte

Wystawia receptę w imieniu zalogowanego doradcy/ambasadora (wymaga OAuth 2.1 ze scope recepta:write) tym samym mechanizmem uprawnień i zapisu co kreator sklepu. Obsługuje rabaty per wariant oraz tryb sam_plan (bez kodu rabatowego). Zwraca osobno podgląd szkicu, potwierdzoną wycenę i link do recepty. NIE wysyła linku klientowi — wysyłka pozostaje osobną akcją doradcy.

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": "wystaw_recepte"
  }
}

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.8/5.0
Behavior4/5

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

Substantially beyond the annotations: it discloses the required auth scope, that the result is persisted ('zapisu'), the composition of the response (draft preview, confirmed valuation, link), and explicitly what the tool will not do (send to the client). Annotations correctly mark this non-readOnly and non-destructive, and nothing contradicts them. It does not cover idempotency or what happens on failure, so it stops short of 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 dense sentences, front-loaded with the action and authorization requirement, then capabilities, then return shape, then the explicit non-action. Little waste, though the comparison 'tym samym mechanizmem uprawnień i zapisu co kreator sklepu' is opaque to an agent that has no model of the shop creator.

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 write tool with no output schema, the description covers the authorization requirement, mutation behavior, response shape, and the key negative guarantee. Missing pieces are behavioral edge cases (validation failures, discount conflicts between rabat_globalny_procent and per-item rabat_procent) rather than gaps in basic callability.

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 baseline is 3, and the description earns a bit more by explaining relational semantics the schema alone does not spell out: per-variant discounts and a sam_plan mode that operates without a discount code. It still says nothing about the item-count limit, validity window, or campaign flag beyond what the schema documents.

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 (issues and saves a prescription, returns a link) and states the actor context (on behalf of the logged-in advisor/ambassador). It does not, however, distinguish itself against siblings such as przygotuj_szkic_recepty / prepare_recipe_draft, despite the draft-vs-issued distinction being the obvious axis of confusion; the phrase 'podgląd szkicu' in the return description even blurs that line.

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?

It states a hard prerequisite (OAuth 2.1 with the recepta:write scope) and one explicit exclusion ('NIE wysyła linku klientowi — wysyłka pozostaje osobną akcją doradcy'). But it gives no guidance on when to call this rather than the draft-preparation sibling, which is the main routing decision an agent faces.

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