Skip to main content
Glama

get_meal_plan_details

Read-only
One meal plan in full: works for the account's own plans (hand-built
or AI) and plans someone shared with it. Returns the plan's answers
(`profile`, AI plans only), its `summary` (per-day nutrition against
the household's goals, weekly cost, unfilled meals), and `grid`: day
-> meal -> entries, each with an `entry_id`, whether it's kept
(`locked`), its role (cook, prep_day or prep_meal), its portion, and
a trimmed recipe with nutrition and ingredients. Use list_meal_plans
to find a plan's id.

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": {
      "plan_id": "<plan_id>"
    },
    "name": "get_meal_plan_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
plan_idYesA meal plan's id: `plans[].id` from list_meal_plans, or `id` from create_ai_meal_plan.
session_tokenNoThe session token check_agent_connection returned for the connected account. Required, unless it's sent as an Authorization: Bearer header on the MCP request instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

While annotations confirm read-only behavior, the description provides rich behavioral context regarding the output: specifying which data is AI-generated ('plan's answers (`profile`), AI plans only') and detailing the specific roles and states of each grid entry ('locked', 'prep_day').

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 definition is highly efficient in that every sentence adds functional context, but it is necessarily long because it must describe the complexity of the returned data structure, preventing a perfect 5.

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?

The definition is exceptionally complete. Since no output schema is provided, the description compensates perfectly by outlining the specific data contained within the 'summary' and the detailed fields within the 'grid' structure.

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?

Although schema coverage is 100%, the description adds valuable context by explaining the functional requirement of the session_token ('The session token check_agent_connection returned for the connected account'), giving the technical parameter operational meaning.

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 clearly states that the tool returns one meal plan in full. It is highly specific about the content of the plan, differentiating it from list functions by detailing the specific fields and structures returned (e.g., 'summary', 'grid', 'entry_id').

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?

The description explicitly directs the user on how to proceed if they lack a required identifier by stating, 'Use list_meal_plans to find a plan's id,' providing excellent navigational guidance among sibling tools.

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