Skip to main content
Glama

joiva_save_recipe

DestructiveIdempotent

Saves a recipe as a reusable dish ('Gericht') in Joiva from ingredient names with grams, without logging anything ('Grüner Smoothie: 120 g Banane, 40 g Babyspinat, 200 ml Haferdrink'). Joiva binds every ingredient to its catalog like a recipe photo (German food database first, then USDA, never estimated). If no source knows an ingredient, nothing is saved and the reply names the unknown ingredient; a more precise name or a catalog foodItemId resolves it. A dish with the same name gets its ingredients replaced (same id; an existing recipe link shows the new version). The reply lists the catalog row each ingredient was bound to.

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": {
      "name": "<name>",
      "ingredients": "<ingredients>"
    },
    "name": "joiva_save_recipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesDish name, unique per user
ingredientsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, and the description reinforces rather than repeats this: same-name dishes get ingredients replaced under the same id, so the 'destructive' behavior is concretely explained. It also adds genuinely non-obvious traits the annotations cannot carry — all-or-nothing catalog binding, never-estimated values, German-DB-then-USDA resolution order, and what the reply contains.

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?

The core action and the 'does not log' constraint are front-loaded, and the example in parentheses quickly communicates the input shape. It is dense with useful facts but each sentence carries distinct information; the German term glosses are helpful rather than padding.

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?

With no output schema, the description takes on the job of describing the response (which catalog row each ingredient was bound to) and the failure response (naming the unknown ingredient), which it does. For a two-parameter upsert with atomic behavior, an agent has everything needed to call it correctly and to recover from errors.

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?

The schema documents name, grams and foodItemId individually at roughly 50% overall coverage, so the description's main added value is explaining the role of foodItemId as an escape hatch when a name cannot be resolved, and the German-first, specificity-encouraging naming expectation. It doesn't add detail on the grams upper bound or the 60-ingredient cap, but those are already in the schema.

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?

The description states a specific verb and resource ("Saves a recipe as a reusable dish ('Gericht')") and immediately scopes it with "from ingredient names with grams, without logging anything," plus a concrete parenthetical example. That distinguishes it from the sibling logging tools (joiva_log_meal, joiva_log_described_meal) 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 Guidelines4/5

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

It gives a clear selection rule (use this to build a reusable dish, not to log a consumed meal) and explains the failure path: if a source doesn't know an ingredient nothing is saved, and a more precise name or a foodItemId fixes it. It stops short of naming the alternative sibling tools or stating when to prefer joiva_log_meal outright.

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