Skip to main content
Glama

Log a new injury

log_injury

Create a new injury record when the user mentions a new pain or injury (check get_injuries first so you don't duplicate an existing one; add an update instead). The first note becomes the first log entry.

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>",
      "note": "<note>"
    },
    "name": "log_injury"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesShort name, e.g. 'Lower back pain', 'Right Achilles'
noteYesWhat happened / how it feels, in the user's words
painNo
sideNo
body_areaNo
started_onNoYYYY-MM-DD or 'today'/'yesterday'
restrictionsNo
current_summaryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), and the description adds real context beyond them: a duplicate-check workflow and the behavior that the first note becomes the first log entry. It does not elaborate on what happens to later notes or on the non-idempotent retry behavior implied by idempotentHint=false, but the added value is solid.

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 compact sentences with the creation trigger front-loaded and the duplicate-check caveat following in parentheses. There is no filler and no repetition.

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?

The description covers the workflow well for a mutation tool with no output schema, but with 8 parameters and 38% schema coverage, an agent gets no guidance on the meaning or expected format of most fields (pain, side, started_on, restrictions, current_summary). It is adequate for deciding whether to call the tool, but not for filling it in correctly.

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

Parameters2/5

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

Schema coverage is only 38% across 8 parameters, so the description needs to carry the semantics, and it does not: pain (0-10 scale), side, body_area, started_on, restrictions, and current_summary are not mentioned or explained anywhere in the prose. The only parameter meaning conveyed is that the note field's content becomes the first log entry.

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 pairs a specific verb with a specific resource ("Create a new injury record") and states the trigger (the user mentions a new pain or injury), so it is clearly distinguishable from add_injury_update and get_injuries, which it names.

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

Usage Guidelines5/5

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

It explains both when to use this tool and when not to: check get_injuries first to avoid duplicates, and use add_injury_update instead of logging a new injury when one already exists. The alternatives and the conditions that select them are explicit.

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.

Resources