Skip to main content
Glama

Mark a food as favorite

add_favorite_food

Adds a food to the trainer's favorites, shown first when writing diet plans.

Input Schema

NameRequiredDescriptionDefault
food_idYesFrom search_foods.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, destructiveHint=false, so the non-destructive write profile is known. The description adds genuinely new behavioral context via the consequence (favorites rank first in diet plans), but says nothing about idempotency, permissions, or errors for an unknown food_id.

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?

One sentence, zero filler, and the effect ('shown first when writing diet plans') is packed into the same clause as the action. Nothing to trim.

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 one-param, non-destructive write with full schema coverage and annotations, the definition covers purpose and user-visible consequence adequately. Only the idempotency/duplicate-handling question is left open, which is minor at this complexity.

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 single parameter already documents its origin ('From search_foods'). The description adds no format, validation, or constraint detail beyond that, which matches the baseline for a fully documented single param.

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 (adds) and resource (a food to the trainer's favorites), plus the downstream effect of favorites appearing first in diet plans. That distinguishes it from list_favorite_foods and add_favorite_exercise without naming them explicitly.

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 implied through the stated benefit ('shown first when writing diet plans'), which hints at when a trainer would want this. There is no explicit when-not guidance, no mention of the listing sibling, and no note on whether re-adding an existing favorite is appropriate.

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