Skip to main content
Glama

Rate a recipe

rate_recipe
DestructiveIdempotent

Record the user's stars for a recipe, 1 to 5, for "five stars", "that one was a 3", "best curry we've had", with an optional note on why. One rating per user and recipe; rating again replaces it. The stars join the recipe's rating: the rating and rating_count every tool returns average the source site's ratings and ask.recipes users' stars together, and the user's own stars come back as my_rating. When the user also says they cooked it, mark_cooked with rating does both in one call.

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": {
      "id": "<id>",
      "stars": "<stars>"
    },
    "name": "rate_recipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesrecipe id to rate
noteNowhy, in the user's words, e.g. 'too sweet, halve the sugar'; at most 200 characters; empty keeps the note from the earlier rating
starsYes1 to 5 stars; replaces the user's earlier rating of this recipe

Output Schema

NameRequiredDescriptionDefault
recipeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / recipe / properties / based_on_recipe_id
      Added value: +{
      +  "minimum": 0,
      +  "type": [
      +    "null",
      +    "integer"
      +  ]
      +}
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare idempotentHint and destructiveHint, and the description explains why: one rating per user and recipe, and rating again replaces the earlier value. It goes further by explaining how the user's stars flow into the recipe's aggregate rating and rating_count and come back as my_rating, which the annotations cannot convey.

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?

Front-loaded with the action and its trigger, then replacement rules, then rating aggregation, then the sibling routing tip. Dense but every clause carries information; the aggregation sentence is long but earns its place by explaining return-field semantics.

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?

Complete for a three-parameter mutation: it covers triggers, replacement behavior, note persistence, where the user's stars surface in output (my_rating), and when to prefer mark_cooked. An output schema exists, so not describing the full return shape is not a gap.

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 the schema already documents id, stars range, note length limit, and the empty-note-carries-forward rule. The description mostly restates those semantics, adding only natural-language examples (e.g. 'that one was a 3') that help map speech to the stars integer. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb and resource (record stars for a recipe), fixes the domain range (1 to 5), and maps natural user phrasings like 'five stars' or 'best curry we've had' to the action. It also distinguishes itself from mark_cooked, so an agent can tell the two apart without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly routes the user to a sibling when a second condition holds: 'When the user also says they cooked it, mark_cooked with rating does both in one call.' It also states the re-rating rule (rating again replaces), which tells the agent this is safe to call repeatedly rather than needing a separate edit path.

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.