Skip to main content
Glama

Issue recipe (save and return link)

issue_recipe

Issues a recipe on behalf of the signed-in advisor/ambassador (requires OAuth 2.1 scope recepta:write) using the exact same permissions and storage as the storefront creator. Supports per-variant discounts and plan-only mode (tryb="sam_plan"). Returns draft preview, confirmed pricing, and the recipe URL separately. Does NOT send the link 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": "issue_recipe"
  }
}

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

A4.1/5.0
Behavior5/5

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

Annotations only declare the generic write/safe/closed profile; the description adds real behavior: the authorization scope required, that storage and permissions mirror the storefront creator, that pricing is confirmed and returned separately with a draft preview and URL, and that no customer notification occurs. For a mutation tool, this is unusually informative about side effects and non-effects.

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 tight sentences, front-loaded with the action and the auth requirement, then capabilities, then return shape, then the exclusion. The permissions/storage clause is dense but earns its place as a trust signal.

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 8 parameters, no output schema, and write semantics, the description covers who acts, what auth is needed, what is returned (three separate artifacts), and what is not done. Idempotency and failure behavior remain unaddressed, which keeps it short of complete.

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 baseline is 3. The description restates only tryb="sam_plan" and mentions per-variant discounts, both already documented in the schema; it adds no format or interaction constraints beyond that.

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?

States a specific verb and resource ('Issues a recipe') plus the acting principal ('on behalf of the signed-in advisor/ambassador'). The line 'Returns draft preview, confirmed pricing, and the recipe URL separately. Does NOT send the link to the customer' separates it from a draft-preparation or send-to-customer tool, 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives the precondition (OAuth 2.1 scope recepta:write) and one explicit exclusion (it does not send the link to the customer), and calls out plan-only mode. It does not name which sibling to use instead when the advisor only wants a draft, so routing is implied rather than spelled out.

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