Skip to main content
Glama

Log medication

log_medication
Idempotent

Log a medication the user says they took, in their words (name and amount if given).

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

Input Schema

NameRequiredDescriptionDefault
nameYes
timeNoWhen it happened, in the user's local time: 'HH:MM' (today), 'YYYY-MM-DDTHH:MM', or ISO 8601 with offset. Omit it for right now. Never in the future.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true, and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: capture verbatim ('in their words') rather than normalizing or interpreting, and tolerate missing detail ('if given'). It says nothing about duplicate handling despite the idempotent hint, nor what the agent should report back after logging.

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?

A single front-loaded sentence with the resource first and the qualifier immediately after; nothing is padded and every clause carries information the agent could not get from the schema.

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 two-parameter, non-destructive logging tool with no output schema, the definition plus a well-specified 'time' parameter covers most of what an agent needs to call it correctly. Remaining gaps are the unclear placement of dosage into 'name' and the absence of any statement about confirming the logged entry or handling repeats.

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

Parameters4/5

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

Schema coverage is 50%: 'time' is well documented in the schema, but 'name' has no description at all. The description compensates by indicating that the name is the user's own wording and that an amount may be embedded when supplied, which is the only signal that a dosage string belongs in 'name' rather than a separate field. It stops short of stating the expected string form or whether the time parameter should be inferred when the user gives a vague reference.

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 ('Log a medication') and adds the key scope qualifier that the entry is in the user's own words. An agent can separate it from log_exercise, log_meal, or log_glucose by resource, though it never distinguishes itself from the closest sibling, log_insulin.

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

Usage Guidelines3/5

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

Implied usage is clear from the framing ('a medication the user says they took'), which tells the agent this is for user-reported intake rather than inferred or fetched data. There is no explicit when-not guidance, no mention of choosing between this and log_insulin, and no note about editing or deleting a mistaken entry via delete_entry.

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.