Skip to main content
Glama

Search activities

search_activity
Read-onlyIdempotent

Locate Fitatu workout catalog entries by activity name to get activity IDs and calorie estimates for logging exercise. Scale the catalog's energy value to the user's actual effort.

Instructions

Search the activity (workout) catalog, e.g. 'bieganie' (running) or 'rower' (cycling). Each hit has activity_id for add_activity, name, and energy_kcal: the catalog's estimate for the effort in energy_for (e.g. '5 km w 00:30:00') for an average person. Scale it to what the user did to get the energy_kcal that add_activity needs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of hits.
phraseYesActivity name, e.g. 'bieganie'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
dataNo
errorNodescribe_error() of what went wrong; docs/AGENTS.md, Results and errors.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent, open-world read. The description goes further by disclosing the non-obvious semantics of a returned field: energy_kcal is the catalog estimate for energy_for (e.g. '5 km w 00:30:00') for an average person and must be scaled. That is real behavioral context beyond the annotations.

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?

Three sentences, front-loaded with what is searched, then the return shape, then the scaling requirement. Every sentence carries information, though the middle sentence is densely packed with 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?

An output schema exists so return values need not be enumerated, yet the description still covers the one genuinely non-obvious piece: that energy_kcal is an average-person estimate tied to energy_for and must be scaled before add_activity. Nothing an agent needs to call and chain this tool is missing.

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, and the description only repeats the 'bieganie' phrase example already in the schema. It adds no new syntax or interpretation for phrase or limit, so the baseline 3 applies.

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 (search) and resource (activity/workout catalog) and immediately disambiguates from the food and recipe search siblings by naming the catalog and giving workout examples ('bieganie', 'rower'). An agent can tell what domain this searches without opening the schema.

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?

The description frames the tool within the workflow: each hit carries activity_id to feed add_activity, and the returned energy_kcal must be scaled before add_activity can use it. It gives clear context but never states when *not* to use it or names the alternative catalog-search siblings explicitly.

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