Skip to main content
Glama
JJRPF

Garmin MCP Server

by JJRPF

upsert_and_log

Find a custom food or create it if missing, then log it to your Garmin diary with the provided nutrition data, eliminating duplicates and extra steps.

Instructions

Find-or-create a custom food then log it in one step

Searches the user's custom food library for food_name. If found, logs it immediately. If not found, creates it with the provided nutrition data and then logs it. This avoids duplicate food entries and removes the need for separate search → create → log round-trips.

Args: meal_date: Date in YYYY-MM-DD format meal_time: Time in HH:MM:SS format (account timezone); used to determine the meal automatically food_name: Name of the food to find or create calories: Calories per serving carbs: Carbohydrates in grams per serving protein: Protein in grams per serving fat: Total fat in grams per serving serving_unit: Unit for serving size (e.g. "G", "ML", "OZ"). Default "G" number_of_units: Serving size in the specified unit. Default 100 serving_qty: Number of servings to log (default 1)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fatNo
carbsNo
proteinNo
caloriesYes
food_nameYes
meal_dateYes
meal_timeYes
serving_qtyNo
serving_unitNoG
number_of_unitsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden. It clearly discloses the conditional mutation behavior: if the food exists it logs immediately; if not, it creates the custom food with supplied nutrition data and then logs it. It also explains the duplicate-avoidance side-effect. A minor gap is that it doesn't clarify whether nutrition values are used when the food already exists, but the core behavior is transparent.

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?

The description is front-loaded with a one-sentence summary, followed by a brief behavioral explanation and a tight Args list. Every sentence earns its place, and the Args section is structured to be easily parsed by an agent.

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 10-parameter write operation with no annotations, the description covers the workflow, side effects, parameter semantics, and when to use it. Since an output schema exists, omitting return-value details is acceptable. The main unresolved point is what happens to supplied nutrition data when the food already exists, but overall the description is sufficient for correct selection and invocation.

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%, and the description fully compensates by documenting all ten parameters with meaningful semantics: date and time formats, timezone/meal determination, per-serving meanings, unit semantics, and defaults. This goes far beyond the bare schema types and titles.

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 opens with a specific, compound verb+resource statement: 'Find-or-create a custom food then log it in one step.' It then explains the conditional flow clearly, which distinguishes it from siblings like create_custom_food, log_custom_food, and search_foods by emphasizing the combined upsert-and-log behavior.

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 explicitly frames the tool as a one-step alternative to separate search → create → log round-trips and says it avoids duplicate food entries. This gives clear context for when to use it. It does not explicitly name sibling tools to avoid, but the usage intent is clear enough.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JJRPF/garmin_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server