Skip to main content
Glama
skiitk2510

CareCompanion

by skiitk2510

Add a medication

add_medication

Add a medication to an elder's schedule and receive interaction/allergy warnings against current medications. Read every warning and disclaimer to the caregiver; not medical advice.

Instructions

Caregiver adds a medication to the elder's schedule. The medication is always added; the result also carries informational interaction and allergy warnings against the elder's current medications — read every warning and the disclaimer to the caregiver. Not medical advice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doseYese.g. "200 mg"
formNotablet, capsule, liquid, …
nameYesBrand or generic name, e.g. "Ibuprofen"
addedByNoCaregiver id making the change.
elderIdNoElder id. Omit for the household elder.
purposeNoPlain-language purpose: "pain", "blood pressure"
criticalNoMissing it should raise a critical alert. Default false.
graceMinNoMinutes after a slot before it counts as missed. Default 90.
instructionsNoe.g. "with food"
maxDailyDosesNoDefault: number of schedule times.
scheduleTimesYes
minIntervalMinNoMinimum minutes between doses. Default 240.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
alertIdYes
warningsYes
medicationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

The description discloses critical behavioral traits beyond the annotations: 'The medication is always added' signals non-idempotent, always-effective behavior, and it goes further by explaining that the result carries interaction/allergy warnings and instructing the agent to read them aloud. This is rich, actionable context.

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?

Two tight sentences with no filler. The primary action is front-loaded, followed by essential behavioral caveats. Every sentence earns its place.

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?

For a 12-parameter tool with an output schema and annotations, the description provides the missing context: side-effect certainty, warning-reading obligations, and medical disclaimer. An agent has enough to select and invoke the tool correctly.

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 description coverage is 92%, so the schema already documents parameter meaning. The description adds no parameter-specific guidance beyond the general medication concept, which is appropriate but not above the baseline.

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 clearly states the action ('adds a medication') and the resource ('the elder's schedule'), and attributes it to a caregiver. It is distinct from sibling tools like log_dose or skip_dose, which handle existing doses rather than adding new medications.

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 establishes clear usage context: this is the tool for a caregiver to add a medication to the schedule. It does not explicitly name when-not-to-use or alternatives, but its role is self-evident against the sibling list.

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