Skip to main content
Glama

log_injury

Log a new injury or aggravation. use: the user mentions getting hurt, feeling pain, straining something, or describes an injury. Injuries are date ranges: they start on a date and are ongoing until an end_date is set.

INFER, do not ask:

  • injury_type: from the description. side: from the description when mentioned ("right shoulder" -> Right)

  • severity: from the description (minor twinge=2-3, moderate pain=5-6, severe/acute=8-9)

  • affected_movements: from body part and injury type (shoulder strain -> pressing, overhead)

ASK only if body_part is entirely unclear.

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": {
      "body_part": "<body_part>",
      "injury_type": "<injury_type>",
      "severity": "<severity>"
    },
    "name": "log_injury"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideNoSide of body.
notesNoHow it occurred, symptoms, other context.
statusNoDefault 'Active'; auto-set to 'Resolved' when end_date is given.
end_dateNoDate resolved, YYYY-MM-DD; default null (ongoing). Set only when fully resolved.
severityYes1-10 (1=minor, 10=severe).
body_partYesBody part affected, e.g. 'Shoulder', 'Lower Back', 'Knee'.
start_dateNoYYYY-MM-DD; default today.
injury_typeYese.g. 'Strain', 'Tendonitis', 'Sprain', 'Disc', 'Soreness', 'Acute'.
affected_movementsNoMovements affected, e.g. ['Pressing', 'Overhead', 'Bench Press'].

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • changedInput schema / properties / affected_movements / description
      Previous value: -"Movements affected (e.g. ['Pressing', 'Overhead', 'Bench Press']). Infer from body part."New value: +"Movements affected, e.g. ['Pressing', 'Overhead', 'Bench Press']."
    • changedInput schema / properties / body_part / description
      Previous value: -"Body part affected (e.g. 'Shoulder', 'Lower Back', 'Knee'). Required."New value: +"Body part affected, e.g. 'Shoulder', 'Lower Back', 'Knee'."
    • changedInput schema / properties / end_date / description
      Previous value: -"Date injury resolved. Format: YYYY-MM-DD. Default: null (ongoing). Set when injury is fully resolved."New value: +"Date resolved, YYYY-MM-DD; default null (ongoing). Set only when fully resolved."
    • changedInput schema / properties / injury_type / description
      Previous value: -"Type of injury (e.g. 'Strain', 'Tendonitis', 'Sprain', 'Disc', 'Soreness', 'Acute'). Required — infer from description."New value: +"e.g. 'Strain', 'Tendonitis', 'Sprain', 'Disc', 'Soreness', 'Acute'."
    • changedInput schema / properties / notes / description
      Previous value: -"Additional context about how injury occurred, symptoms, etc. Optional."New value: +"How it occurred, symptoms, other context."
    • changedInput schema / properties / severity / description
      Previous value: -"Severity 1-10 (1=minor, 10=severe). Required — estimate from description."New value: +"1-10 (1=minor, 10=severe)."
    • changedInput schema / properties / side / description
      Previous value: -"Side of body. Optional — infer from description."New value: +"Side of body."
    • changedInput schema / properties / start_date / description
      Previous value: -"Date injury started. Format: YYYY-MM-DD. Default: today."New value: +"YYYY-MM-DD; default today."
    • changedInput schema / properties / status / description
      Previous value: -"Status. Default: 'Active'. Auto-set to 'Resolved' if end_date is provided."New value: +"Default 'Active'; auto-set to 'Resolved' when end_date is given."
  2. Changed2 schema fields changed
    • addedInput schema / properties / severity / maximum
      Added value: +10
    • addedInput schema / properties / severity / minimum
      Added value: +1
  3. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent, closed-world write. The description adds genuinely useful behavior beyond that: the lifecycle model where an injury starts on start_date and stays ongoing until end_date is set, and the instruction to infer rather than interrogate the user. It doesn't address duplicate logging, what happens on re-log of the same body part, or permission/precondition considerations.

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 purpose followed by a scannable inference list and a closing exception rule ('ASK only if body_part is entirely unclear'). The repeated 'from the description' phrasing is mildly redundant but each bullet carries distinct information.

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 9-parameter write tool this is close to complete: the trigger, the date-range lifecycle, the inference policy, and the ask exception are all present, and an output schema exists so return values need not be described. It stops short of covering edge cases like logging an injury that already exists or how status interacts with a user-supplied end_date beyond the schema note.

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%, so baseline would be 3, but the description adds real interpretive meaning: how to derive injury_type and side from free text, a numeric mapping for severity (minor twinge=2-3, moderate=5-6, severe=8-9), and how to infer affected_movements from body part and injury type. This is exactly the kind of translation guidance the schema cannot carry.

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?

The description opens with a specific verb and resource ('Log a new injury or aggravation') and adds the domain-specific model that injuries are date ranges, which distinguishes it from the delete/update siblings without naming them. Sibling differentiation is implied by 'new' but never stated explicitly (e.g., that updates should go to update_injury), which keeps it from a 5.

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?

It gives a concrete trigger list ('the user mentions getting hurt, feeling pain, straining something') and an explicit when-to-ask rule ('ASK only if body_part is entirely unclear'). What's missing is an explicit pointer to alternatives such as update_injury for existing injuries, so the agent must infer that 'new' excludes them.

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.