Skip to main content
Glama

update_injury

Idempotent

Update an existing injury entry. use: the user reports an injury improving, worsening or resolved, or wants details changed. Send only fields that change. severity: a new value is tracked automatically in the severity history for trend analysis; severity_date backfills past changes ("it was a 7 in January, dropped to 4 by March"). end_date: setting it marks the injury Resolved.

SELECTOR: exactly one; id if known, else injury (case-insensitive body part or injury type substring, e.g. "shoulder"), optionally narrowed by date (an injury active on that day). injury matching more than one entry -> 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": "update_injury"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoInjury ID.
dateNoYYYY-MM-DD; narrows injury to one active on this date. Ignored with id.
sideNoNew side.
notesNoNew notes; replaces existing.
injuryNoBody part or injury type substring, case-insensitive (e.g. "shoulder").
statusNoNew status.
end_dateNoDate resolved, YYYY-MM-DD.
severityNoNew severity 1-10.
start_dateNoNew start date, YYYY-MM-DD.
severity_dateNoDate of this severity history entry, YYYY-MM-DD; default today.
affected_movementsNoNew list of affected movements.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • changedInput schema / properties / affected_movements / description
      Previous value: -"Updated list of affected movements. Optional."New value: +"New list of affected movements."
    • changedInput schema / properties / date / description
      Previous value: -"Optional, narrows the injury selector to one active on this date (YYYY-MM-DD). Ignored when id is given."New value: +"YYYY-MM-DD; narrows injury to one active on this date. Ignored with id."
    • changedInput schema / properties / end_date / description
      Previous value: -"Date injury resolved. Format: YYYY-MM-DD. Auto-sets status to Resolved."New value: +"Date resolved, YYYY-MM-DD."
    • changedInput schema / properties / id / description
      Previous value: -"Injury ID. Alternative to injury."New value: +"Injury ID."
    • changedInput schema / properties / injury / description
      Previous value: -"Alternative to id: body part or injury type substring, case-insensitive (e.g. \"shoulder\"). Optionally narrow with date."New value: +"Body part or injury type substring, case-insensitive (e.g. \"shoulder\")."
    • changedInput schema / properties / notes / description
      Previous value: -"Updated notes (replaces existing). Optional."New value: +"New notes; replaces existing."
    • changedInput schema / properties / severity / description
      Previous value: -"Updated severity 1-10. Optional. Change is tracked in severity history."New value: +"New severity 1-10."
    • changedInput schema / properties / severity_date / description
      Previous value: -"Date for the severity entry in the history log. Format: YYYY-MM-DD. Default: today. Use to backfill past severity changes."New value: +"Date of this severity history entry, YYYY-MM-DD; default today."
    • changedInput schema / properties / side / description
      Previous value: -"Updated side. Optional."New value: +"New side."
    • changedInput schema / properties / start_date / description
      Previous value: -"Updated start date. Format: YYYY-MM-DD. Optional."New value: +"New start date, YYYY-MM-DD."
    • changedInput schema / properties / status / description
      Previous value: -"Updated status. Optional."New value: +"New status."
  2. Changed6 schema fields changed
    • addedInput schema / properties / date
      Added value: +{
      +  "description": "Optional, narrows the injury selector to one active on this date (YYYY-MM-DD). Ignored when id is given.",
      +  "type": "string"
      +}
    • changedInput schema / properties / id / description
      Previous value: -"Injury ID from list_injuries. Required."New value: +"Injury ID. Alternative to injury."
    • addedInput schema / properties / injury
      Added value: +{
      +  "description": "Alternative to id: body part or injury type substring, case-insensitive (e.g. \"shoulder\"). Optionally narrow with date.",
      +  "type": "string"
      +}
    • addedInput schema / properties / severity / maximum
      Added value: +10
    • addedInput schema / properties / severity / minimum
      Added value: +1
    • removedInput schema / required
      Removed value: -[
      -  "id"
      -]
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare non-destructive, idempotent mutation, and the description goes well beyond them: severity writes create tracked history entries, severity_date backfills past changes, end_date implicitly flips status to Resolved, notes replaces rather than appends, and selector ambiguity returns an error with candidate IDs. These are non-obvious side effects an agent would otherwise have to discover by trial.

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 sentence followed by labeled blocks (severity, end_date, SELECTOR) that make scanning easy. The severity block is slightly verbose with its illustrative 'it was a 7 in January' quote, but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and annotations cover the safety profile. However, for an 11-parameter partial-update tool the description is silent on precedence when conflicting fields arrive (e.g. end_date plus an explicit status of Active) and on what happens to unspecified fields other than notes. Minor but real gaps.

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 genuine meaning the schema cannot convey: how severity_date interacts with severity for trend history, that end_date is a status-changing switch, that date only narrows injury and is ignored with id, and that only changed fields should be sent.

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?

Opens with a specific verb+resource ('Update an existing injury entry') and immediately disambiguates it from the sibling write tools by scoping it to modification of existing entries only. The SELECTOR block further clarifies what the tool operates on and how the target is resolved.

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 explicit triggering conditions ('the user reports an injury improving, worsening or resolved, or wants details changed') and a strong partial-update rule ('Send only fields that change'). It does not explicitly name when to use log_injury or delete_injury instead, so it stops short of full when/when-not/alternatives coverage.

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.