Skip to main content
Glama

Get Goal Sources

get_goal_sources
Read-only

The best catalog foods for reaching a goal: foods that count towards it and bring the most with them.

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": {
      "key": "<key>"
    },
    "name": "get_goal_sources"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesGoal key from get_goals.
limitNoHow many foods to return.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is covered. Beyond that the description only gestures at ranking ('the best... bring the most'), without explaining the ranking metric, ordering of results, tie-breaking, or what happens when a goal has too few matching foods.

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?

A single compact sentence with no filler or repetition. The front-loaded 'best catalog foods for reaching a goal' works, though the trailing clause 'bring the most with them' is fuzzy rather than informative.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must convey what comes back, and it does not: no indication of whether results are food objects, scored entries, or nutrient breakdowns, nor how they are ordered. For a recommendation-style tool with two parameters and no return contract, this is a substantive 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%, so both parameters are already documented, including that key comes from get_goals and that limit defaults to 8 with a max of 50. The description adds nothing beyond implying the results are 'top' foods, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The sentence names the resource (catalog foods) and the anchor (a goal), so an agent can tell it retrieves foods associated with a goal. But there is no explicit verb and no differentiation from siblings like find_foods_high_in_nutrient or get_goal_stats; 'bring the most with them' is vague about what is being maximized.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of when a different tool (e.g. find_foods_high_in_nutrient or search_foods) would be preferable, and no prerequisites stated in the description itself. The only routing hint lives in the schema text ('Goal key from get_goals'), not in the description.

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