Skip to main content
Glama

Token Hp Update

token_hp_update
Destructive

Apply a signed HP delta to a campaign character sheet, healing positive values and damaging negative values; use character IDs, not map token IDs.

Instructions

Apply a signed HP delta to a character sheet through WS, not to a token ID. Use character_get to inspect HP or character_update for an absolute sheet patch. Upstream requires character ownership or DM authority and campaign assignment; its system-specific HP rules determine the result. Positive delta heals, negative delta damages. v1.5.0 permits the owner or DM, never a spectator. Repeating applies the delta again and is not idempotent. Returns sent:true,confirmed:false,status:"pending" inside data: dispatch is not a business ACK. Read events_poll for results/system.error and inspect state before further action; never blindly resend. Returns {ok:true,data} on success; tool-body failures return {ok:false,error} with optional diagnostic data. Argument-schema errors are MCP errors.

Input Schema

NameRequiredDescriptionDefault
deltaYesSigned integer HP adjustment: positive heals, negative damages, zero requests no numerical change. Upstream applies system limits.
character_idYesCampaign-assigned character ID whose sheet HP is changed; do not pass a map token ID.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover the safety profile (destructive, non-idempotent, openWorld), and the description goes well beyond them: it discloses the ownership/DM authorization requirement, the spectator exclusion, that repetition re-applies the delta, and the critical async distinction that a 'sent:true,confirmed:false,status:pending' dispatch is not a business ACK. That pending-vs-confirmed semantics is exactly the kind of behavioral context annotations cannot express.

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?

The purpose and the sibling routing are front-loaded, and every section carries real operational weight (auth, idempotency, async ACK, error modes). It is somewhat dense and repeats return-shape information ('sent:true,confirmed:false' then '{ok:true,data}') that an output schema already covers, which costs a point but does not obscure the essential guidance.

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 destructive, non-idempotent, async, authorization-gated mutation, the description supplies everything needed: the target entity, the auth requirement, idempotency warning, the pending-vs-confirmed dispatch model, follow-up via events_poll, and the success/failure envelope shapes. Nothing an agent needs to invoke it safely is missing.

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 100%, so the schema already documents both parameters in detail (signed delta semantics, campaign-assigned character ID vs map token ID). The description restates 'positive heals, negative damages' and the token-vs-character distinction without adding syntax or format detail beyond the schema, so the baseline 3 applies.

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 gives a specific verb+resource ('Apply a signed HP delta to a character sheet') and immediately corrects the misleading name by stating it operates on a character sheet, 'not to a token ID.' It explicitly routes to siblings (character_get for inspection, character_update for an absolute patch), so an agent can distinguish it without opening any schema.

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 names the alternatives and the conditions that select them ('use character_get to inspect HP or character_update for an absolute sheet patch'), and adds an operational rule for the async flow ('Read events_poll for results/system.error ... never blindly resend'). When-to-use, when-not-to-use, and post-call behavior are all explicit.

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