Skip to main content
Glama

Prepare recipe draft and pricing

prepare_recipe_draft
Read-only

Prepares an advisor recipe draft (daily plan, matched products/variants) and confirmed pricing using the live catalog and shop discount engine (including per-variant target discounts and active campaign promotions). Returns disambiguation candidates when a name has multiple plausible matches. Read-only: does not save a recipe, mint a code, or send anything to the customer.

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

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?

Goes well beyond the readOnly/destructive annotations by stating that nothing is persisted, no code is minted, and nothing is sent to the customer, plus that pricing comes from the live catalog and shop discount engine including per-variant targets and campaign promotions. It also discloses the disambiguation-candidate return path, though it says nothing about failure modes or latency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the core action and output, followed by return behavior and the safety boundary. No filler or repetition of the title.

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 eight-parameter, no-output-schema tool with fully documented params, the description covers purpose, pricing source, return-on-ambiguity behavior, and non-persistence. It could still be stronger by sketching what the draft/pricing response looks like or how invalid product names are reported.

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 all eight parameters including enums and bounds. The description adds only the behavioral context that per-variant discounts and campaign inclusion feed the discount engine, without clarifying individual parameter meanings beyond the schema.

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?

Uses a specific verb+resource ("Prepares an advisor recipe draft ... and confirmed pricing") and enumerates the outputs (daily plan, matched products/variants, pricing). The explicit negative clause "does not save a recipe, mint a code, or send anything" effectively separates it from the issuing siblings, though no sibling is named directly.

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?

Usage is only implied: an agent can infer this is the pre-issuance step before a tool like issue_recipe, but the description never says "use this when..." or names an alternative to prefer. No conditions or exclusions for the various alternative tools are given.

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