Skip to main content
Glama

Attack

attack

One combat round: the player swings (d20 + attack vs defense), then every hostile monster in the room swings back. No target = first hostile monster; a calm monster is only provoked when named.

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": "attack"
  }
}

Input Schema

NameRequiredDescriptionDefault
gameNoInternal save name: leave it out (the current run is used)
withNoUse this item for this attack (e.g. a wand); omit for the equipped weapon
targetNoMonster id, words of its name, or uid like rat#2

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare the mutation/read profile (readOnlyHint=false, non-idempotent, not open-world); the description adds the crucial consequence that every hostile monster in the room retaliates in the same round. It also discloses the provoke-on-name side effect, which annotations do not convey. It omits what a failed or lethal swing returns, but the retaliation disclosure is the high-value piece.

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 tight sentences: the round mechanics come first, then the defaulting and provocation rules. Every clause carries information an agent needs to call it correctly.

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 3-optional-parameter combat tool with no output schema, the description covers the round structure, retaliation, and target defaulting well. It could do slightly more on what the call returns (hit/miss/damage narration) since no output schema exists, but the core is covered.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real semantics beyond the schema: omitting 'target' resolves to the first hostile monster, and naming a calm monster changes behavior. It says nothing extra about the 'with' or 'game' parameters, relying on the schema's own descriptions.

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?

States a specific verb and resource ('One combat round: the player swings... then every hostile monster in the room swings back'), plus the resolution formula, so an agent knows exactly what the call does. It does not differentiate itself from the sibling 'fight', which plausibly covers similar ground, leaving that ambiguity unresolved.

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 concrete context for use: no target means the first hostile monster, and a calm monster is only provoked when explicitly named, which is a clear when/when-not rule. It stops short of naming an explicit alternative (e.g. 'fight' or 'flee') for the retreat case.

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