Skip to main content
Glama

Fail skill invocation

stack_fail_invocation
Destructive

Fail a claimed skill invocation. Paid list-price funds are released atomically with the failed state.

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": {
      "invocation_id": "<invocation_id>",
      "error": "<error>"
    },
    "name": "stack_fail_invocation"
  }
}

Input Schema

NameRequiredDescriptionDefault
errorYes
invocation_idYesInvocation ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, but the description adds a consequential detail they cannot convey: paid list-price funds are released atomically with the failed state. That is real financial side-effect disclosure. It still omits idempotency, whether failure is terminal, and permission requirements, so not a 5.

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 short sentences, front-loaded with the action and followed by the material consequence. Nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, financially-consequential mutation, the description covers the key side effect but leaves meaningful gaps: the required error payload's semantics, whether the invocation must be claimed first, and what a failed call returns (no output schema exists). Adequate but incomplete for the tool's risk profile.

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

Parameters2/5

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

Schema coverage is 50%: invocation_id has only a trivial 'Invocation ID' label, and the nested error object (code, message) has no descriptions at all beyond length constraints. The description adds zero meaning about what error codes are valid or how they surface to the caller, so it fails to compensate for the coverage gap.

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: 'Fail a claimed skill invocation.' The word 'claimed' scopes it to a particular invocation state, which implicitly separates it from siblings like stack_complete_invocation or stack_activate_skill. It stops short of naming the alternative explicitly, so it does not reach 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?

'Claimed' implies a precondition (the invocation must already be in claimed state), which is useful implied guidance. However, the description never says when to fail versus complete an invocation, nor what happens if the invocation is in another state. Usage must be inferred.

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.