Skip to main content
Glama

Log insulin

log_insulin
Idempotent

Log insulin the user says they took (units and kind). Records only what the user reports; this tool does not suggest or calculate doses.

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

Input Schema

NameRequiredDescriptionDefault
kindNorapid, long or mixed. Default rapid.
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.
unitsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already disclose the write/identity/destructive profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false). The description adds one genuinely non-obvious behavioral fact - it never computes or recommends doses - but says nothing about what happens on duplicate or conflicting logs, whether an existing entry is overwritten, or what is returned.

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 short sentences, front-loaded with the action and immediately followed by the safety scope. No boilerplate or restated title text.

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 three-parameter logging tool with no output schema, the description covers purpose and the key safety boundary. The remaining gaps - return value and duplicate-handling behavior - are minor given the annotations already convey idempotency.

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 67% and the schema itself documents kind's enum plus default and time's accepted formats and 'never in the future' rule. The description only echoes 'units and kind' and contributes nothing about the time parameter or the units unit-of-measure, so it adds little beyond the structured fields.

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 (log) and resource (insulin) plus the payload it accepts (units and kind), which cleanly separates it from the sibling loggers like log_glucose and log_meal. The 'what the user reports' qualifier also pins down the data source.

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 second sentence sets an explicit boundary: it records reported doses and will not suggest or calculate them, which tells the agent when this tool is the wrong choice. It stops short of naming a concrete alternative for dose-calculation needs, so it is clear context rather than full routing guidance.

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.