Skip to main content
Glama

log_supplement_taken

Mark a medication or supplement as taken or not taken on a date. Only relevant when the user has daily tracking mode enabled. use: the user says they took (or missed) one on a particular day.

SELECTOR: exactly one; supplement_id if known, else supplement_name (case-insensitive substring). supplement_name matching more than one item -> error with candidate IDs to retry with.

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": "log_supplement_taken"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoYYYY-MM-DD; default today.
notesNoNote for this check-in.
takenNotrue = taken, false = missed; default true.
supplement_idNoSupplement ID.
supplement_nameNoName substring, case-insensitive (e.g. "magnesium").

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / date / description
      Previous value: -"Date (YYYY-MM-DD). Default to today."New value: +"YYYY-MM-DD; default today."
    • changedInput schema / properties / notes / description
      Previous value: -"Optional note for this check-in."New value: +"Note for this check-in."
    • changedInput schema / properties / supplement_id / description
      Previous value: -"Supplement ID. Alternative to supplement_name."New value: +"Supplement ID."
    • changedInput schema / properties / supplement_name / description
      Previous value: -"Alternative to supplement_id: name substring, case-insensitive (e.g. \"magnesium\")."New value: +"Name substring, case-insensitive (e.g. \"magnesium\")."
    • changedInput schema / properties / taken / description
      Previous value: -"true = taken, false = missed. Default: true."New value: +"true = taken, false = missed; default true."
  2. Changed3 schema fields changed
    • changedInput schema / properties / supplement_id / description
      Previous value: -"Supplement ID from list_supplements. Required."New value: +"Supplement ID. Alternative to supplement_name."
    • addedInput schema / properties / supplement_name
      Added value: +{
      +  "description": "Alternative to supplement_id: name substring, case-insensitive (e.g. \"magnesium\").",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "supplement_id"
      -]
  3. First observed

TDQS

A4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false. The description adds genuinely useful behavior beyond them: the ambiguous-name failure mode returns candidate IDs for retry. It does not say what happens when tracking mode is disabled or whether a repeated log overwrites the prior check-in (relevant given idempotentHint=false).

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?

Front-loaded with the action, then the precondition, then the selector rule, with no filler. Minor style cost from the abrupt 'use:' fragment and the all-caps SELECTOR label, but the information density is high.

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?

With an output schema present and annotations covering the safety profile, the description only needs to cover intent, gating, and selection, which it does. The remaining unknown is behavior when the precondition fails or when an entry already exists for that date, which a one-line note would close.

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 coverage is 100%, but the SELECTOR block adds real meaning the schema cannot express: exactly one of supplement_id or supplement_name, name matching is case-insensitive substring, and multi-match is an error. This is additive constraint semantics, not restatement.

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

Purpose4/5

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

States a specific verb and resource ('Mark a medication or supplement as taken or not taken on a date') plus a scope condition (daily tracking mode). It is clearly distinguishable from the manage_supplement-style siblings, though no sibling is named explicitly.

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?

Gives an explicit trigger ('the user says they took (or missed) one on a particular day') and a precondition for relevance ('Only relevant when the user has daily tracking mode enabled'). No alternative tool is named for the case where tracking mode is off or the supplement does not exist yet, which is the only gap.

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.