Skip to main content
Glama

Start a dish after another dish

link_dish

No sign-in needed. Make a dish start a while after another dish goes in or is done ("the potatoes 30 minutes after the chicken goes in"), or clear that link by leaving after out. Starting the other dish early or late then moves this one with it. A dish cannot wait on a dish that waits on it, and a dish that already started cannot be linked. Needs the plan's code and control key.

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": {
      "code": "<code>",
      "key": "<key>",
      "dish": "<dish>"
    },
    "name": "link_dish"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesThe secret control key plan_meal gave you for this plan (starts with ktpk_). Never show it or put it in a link.
codeYesThe plan's code, or its whole link.
dishYesThe dish's name as in the plan, or its number in the plan (1 is the first dish).
whenNoCount from when that dish goes in, or from when it is done.
afterNoThe dish to follow: its name as in the plan, or its number. Leave out to clear this dish's link.
minutesNoMinutes after that moment. 0 or left out: right then.

Output Schema

NameRequiredDescriptionDefault
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations it discloses the important downstream behavior: the linked dish moves when the other dish starts early or late, the cycle restriction, and the 'already started cannot be linked' precondition. It also states no sign-in is needed, which is real auth context. It does not say whether an existing link is overwritten or what the response confirms, and its set-state semantics sit slightly awkwardly with idempotentHint=false.

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 operation is front-loaded in the first sentence and the example follows immediately; each subsequent sentence covers a distinct rule (propagation, cycle ban, started-dish ban, auth). 'No sign-in needed' as an opener is slightly misplaced for a mutating tool, but it is brief and useful information.

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 a mutating tool with an output schema, the description covers preconditions, auth, clearing, and cascade effects, which is most of what an agent needs. Remaining gaps are minor: whether an existing link is replaced, and what error conditions the caller should expect.

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 coverage is 100% and every parameter (code, key, dish, after, when, minutes) is already documented in the schema, including the 'leave out to clear' behavior. The description adds a worked example that clarifies how after/when/minutes combine, but otherwise restates what the schema provides, so the baseline of 3 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?

The description states a precise verb+resource: it makes one dish start a delay after another dish, or removes that link when `after` is omitted. It includes a concrete example ('the potatoes 30 minutes after the chicken goes in') that pins down the relationship model, which is clearly distinct from sibling operations like add_dish or adjust_dish that change a dish itself rather than its dependency.

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 clear when-not conditions (no cycles, cannot link a dish that already started) and describes the clearing path via omitting `after`, plus the prerequisite of a plan code and control key. It does not name an alternative sibling for related shifts such as editing a dish's duration or offset, so the agent must infer where this tool ends and adjust_dish begins.

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