Skip to main content
Glama
dineoncampus-mcp

dineoncampus-mcp

by Pixel2075

search_menu

Read-only

Search and filter campus dining menu items by text, dietary tags, excluded ingredients, and macro limits, with optional nutrient sorting.

Instructions

Search and filter menu items by text, diet tags, excluded ingredients and macro limits, optionally sorted.

Examples: high-protein lunch -> meal='lunch', min_protein_g=25, sort_by='protein_g'; vegan dinner under 500 kcal -> meal='dinner', tags=['vegan'], max_calories=500; nothing with peanuts -> exclude=['peanut'].

Args: query: text matched against item name, station, description and ingredients. meal: 'breakfast', 'lunch', 'dinner'. Omit to search the whole day. date: YYYY-MM-DD, 'today', 'tomorrow' or a weekday name. Defaults to today. tags: every tag must match (substring, case-insensitive), e.g. ['vegan']. See list_dietary_tags. exclude: drop items whose name, tags, allergens, description or ingredients mention any of these. min_protein_g: keep items with at least this much protein. max_calories: keep items at or under this many kcal. max_carbs_g: keep items at or under this many grams of carbohydrate. max_fat_g: keep items at or under this many grams of fat. sort_by: any nutrient key (calories, protein_g, carbs_g, fat_g, fiber_g, sodium_mg, ...) or protein_per_100kcal. descending: sort high-to-low (default) or low-to-high. limit: maximum number of items to return (default 25).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_menu"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNo
mealNo
tagsNo
limitNo
queryNo
excludeNo
sort_byNo
max_fat_gNo
descendingNo
max_carbs_gNo
max_caloriesNo
min_protein_gNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description is consistent with a non-destructive read. It adds useful behavioral detail the annotations cannot: default values (date=today, limit=25, descending=true), inclusive vs. minimal thresholds ('at least this much protein', 'at or under this many kcal'), and what exclusion actually scans. It does not describe the shape of returned items (nutrient fields aside), which is the main remaining gap.

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 purpose statement is front-loaded, immediately followed by compact examples before the arg list, so the agent gets routing information first and reference detail second. The Args block is long, but at 12 parameters each line earns its place; a few lines (e.g., the repeated 'keep items' phrasing) could be tightened without loss.

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 12-parameter, fully-optional-argument search tool with no output schema and no annotation detail beyond read-only/open-world, the description covers filtering, defaults, sorting, and exclusions completely. What is missing is the return contract — what fields each returned item carries — which matters since callers may follow up with get_item_nutrition or calculate_meal_totals. This is minor but nonzero.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden and does: every one of the 12 parameters is explained, including matching semantics ('substring, case-insensitive', 'every tag must match'), exclusion scope ('name, tags, allergens, description or ingredients'), date formats and default, sort key enumeration plus the derived protein_per_100kcal, descending default, and limit default of 25. This is meaning well beyond what the bare schema conveys.

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 opening sentence gives a specific verb (search and filter) plus the exact resource (menu items) and names the filter dimensions (text, diet tags, excluded ingredients, macro limits, sorting). It clearly separates this from get_menu (whole menu) and get_item_nutrition (single item) by framing it as a filtered multi-item query, and it points to list_dietary_tags for tag values.

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?

Three concrete worked examples (high-protein lunch, vegan dinner under 500 kcal, peanut exclusion) show how to compose parameters for real intents, and the args notes state defaults and the 'omit meal to search the whole day' behavior. It lacks explicit when-not-to-use guidance (e.g., 'use get_menu to browse without filters' or 'use calculate_meal_totals to aggregate'), so routing is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.