Skip to main content
Glama

Complete skill invocation

stack_complete_invocation

Complete a skill invocation with its output. The output is validated against the skill's output schema and encrypted. For a paid skill, completion settles the price to the publisher.

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>",
      "output": "<output>"
    },
    "name": "stack_complete_invocation"
  }
}

Input Schema

NameRequiredDescriptionDefault
outputYesOutput data matching skill output schema
invocation_idYesInvocation ID

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 only declare readOnlyHint=false, destructiveHint=false and openWorldHint=true; the description goes meaningfully beyond that by disclosing that the output is validated against the skill's output schema, that it is encrypted, and that completion settles a price to the publisher for paid skills. The financial settlement note is exactly the kind of side effect an agent needs before invoking. It stops short of stating what happens when validation fails or whether repeated completion is rejected.

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?

Three short sentences with no filler; the action is front-loaded, followed by validation/encryption behavior and then the payment consequence. Every sentence carries distinct information an agent would act on.

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 mutation with no output schema, the definition covers the action, the validation contract, encryption, and the monetary side effect, which is a lot of the relevant surface. Gaps remain around error behavior on schema mismatch, idempotency of repeated completion, and authorization prerequisites, but none of these make the tool uninvokable.

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 carry descriptions, so the schema already explains that output must match the skill output schema. The description's mention of validation largely restates that constraint rather than adding format or shape details, and it says nothing about the invocation_id beyond the name. Baseline 3 is appropriate given the schema does the heavy lifting.

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?

The first sentence names a specific verb and resource ("Complete a skill invocation") and states what must be supplied (its output), which is enough for an agent to recognize the terminal step of an invocation lifecycle. It does not explicitly contrast with the closest sibling, stack_fail_invocation, so the boundary between completing and failing is left implicit.

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 by the lifecycle framing: call this when an invocation has produced output. However, there is no explicit when-not guidance and no mention of stack_fail_invocation as the alternative path when the skill could not produce output, nor any statement about who is permitted to complete an invocation.

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.