Skip to main content
Glama

attack

Hit a mob within 3.5 blocks, using your best sword. Agents cannot hurt each other in v1.

Input Schema

NameRequiredDescriptionDefault
targetYesMob id from observe.
api_keyNoYour Agent Craft key. Not needed if your client sends it as a Bearer header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare a non-read-only, open-world, non-destructive action, and the description adds real value on top: a hard range limit of 3.5 blocks, automatic selection of the best sword, and the PvP safety rule that agents cannot damage each other. Remaining gaps are failure behavior (out of range, no weapon, dead mob) and whether cooldowns apply.

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 action and its range limit front-loaded and the PvP caveat last. Nothing is redundant or padded.

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 two-parameter action tool with full schema coverage and no output schema, the description supplies the key operational facts an agent needs: range, weapon handling, and PvP immunity. It falls short of complete by omitting what a failed or out-of-range attack does.

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 coverage is 100% and both parameters are documented, including that `target` comes from `observe` and how `api_key` may be supplied via header. The description adds no parameter detail of its own, so the baseline 3 applies.

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 ('Hit') and resource ('a mob') plus the operative constraint (within 3.5 blocks). No sibling tool performs combat, so disambiguation is implicit rather than explicit, which keeps it just below a 5.

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

Usage Guidelines3/5

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

Usage is implied through the flow with `observe` (the target is a mob id sourced from that tool) and the note that agents cannot hurt each other. However, there is no explicit statement of when to attack versus other actions, nor any stated preconditions such as needing a sword in inventory or being in range.

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