Skip to main content
Glama

Token Hp Update

token_hp_update
Destructive

Apply a signed HP change to a character sheet: positive delta heals, negative delta damages. Use character_id, not token ID, for campaign-assigned characters.

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. 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

TableJSON 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

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.7/5.0
Behavior5/5

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

The annotation set already declares destructiveHint=true and idempotentHint=false, and the description enriches this by explaining the dispatch is not a business ACK ('sent:true,confirmed:false,status:"pending"'), instructing to poll events_poll for results, and detailing failure modes ({ok:false,error}). It also specifies that positive delta heals and negative damages, consistent with annotations.

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?

Every sentence carries distinct information: purpose, alternatives, prerequisites, effect polarity, idempotency warning, async acknowledgment, failure contract. It is dense but not bloated, and key operational warnings are front-loaded after the purpose.

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 mutating async tool, it covers prerequisites, result interpretation, polling, error contracts, and non-idempotency. The presence of an output schema means return-value documentation is not required, but the description still adds the crucial 'pending is not an ACK' nuance, making it complete for an agent to act safely.

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?

Input schema has 100% description coverage for both character_id and delta, including the signed integer semantics and 'do not pass a map token ID.' The description repeats the heal/damage polarity but adds no new parameter-level meaning beyond the schema, so 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 opens with a specific verb+resource: 'Apply a signed HP delta to a character sheet through WS, not to a token ID.' This unambiguously differentiates it from token-ID-targeted operations and from character_update's absolute patch, and it aligns with the tool name while correcting any misreading of 'token'.

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 explicitly directs to alternatives: 'Use character_get to inspect HP or character_update for an absolute sheet patch.' It also states prerequisite authority ('character ownership or DM authority and campaign assignment') and warns not to blindly resend because repeat applies the delta again, providing clear when-to/not-to guidance.

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