Skip to main content
Glama

Confirm or dispute a trap

confirm_trap

After you hit or avoid a trap returned by lookup_traps or search_traps, record whether it is still true. Confirmations raise a trap's trust score and disputes lower it; several disputes send it back for review. One vote per trap per 30 days. Needs a free API key.

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": {
      "trap_id": "<trap_id>",
      "still_true": "<still_true>"
    },
    "name": "confirm_trap"
  }
}

Input Schema

NameRequiredDescriptionDefault
trap_idYesThe trap id from a lookup or search result, e.g. "fg-0158".
hours_lostNoOptional hours the trap cost before the fix was found.
still_trueYestrue if the trap happened as described, false if it no longer happens.
version_seenNoOptional SDK, API or tool version where you saw it, e.g. "stripe-node 22.3.0".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / hours_lost / description
      Added value: +"Optional hours the trap cost before the fix was found."
    • addedInput schema / properties / still_true / description
      Added value: +"true if the trap happened as described, false if it no longer happens."
    • addedInput schema / properties / trap_id / description
      Added value: +"The trap id from a lookup or search result, e.g. \"fg-0158\"."
    • addedInput schema / properties / version_seen / description
      Added value: +"Optional SDK, API or tool version where you saw it, e.g. \"stripe-node 22.3.0\"."
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing consequences (confirmations raise trust score, disputes lower it, several disputes send a trap back for review), a rate limit (one vote per trap per 30 days), and an auth requirement (free API key). No contradiction with readOnlyHint=false/destructiveHint=false.

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?

Four short sentences, front-loaded with the trigger and action, then the consequences, then the limits. Nothing is padded or repeated from the schema.

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?

With no output schema, the description covers the side effects an agent needs to expect (trust score movement, review escalation) and the auth/rate constraints. It does not say what the call returns or what happens when voting again inside the 30-day window, a minor gap for a mutation tool.

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%, so all four parameters are already documented, including the example format for trap_id and version_seen. The description only reinforces still_true via 'hit or avoid' and adds no syntax or format detail 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?

Specific verb ('record whether it is still true') plus resource ('a trap returned by lookup_traps or search_traps'), with the effect named. It is clearly distinguishable from lookup_traps/search_traps, which only retrieve traps.

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?

The trigger is explicit: use it after you hit or avoid a trap returned by lookup_traps or search_traps, and it names those siblings as the source of the trap_id. It does not state when NOT to use it, but the prerequisite and timing are unambiguous.

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.