Skip to main content
Glama

cancel_upgrade_request

DestructiveIdempotent

Withdraw a pending upgrade request to stop its approval URL from working when the blocker is resolved. It fails if the request is already completed, declined, canceled, or expired.

Instructions

Withdraw a pending upgrade request (for example, the blocker went away). The approval URL stops working. Fails with upgrade_request_not_pending if the request is already completed, declined, canceled, or expired.

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": {
      "id": "<id>"
    },
    "name": "cancel_upgrade_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesUpgrade request ID (upr_...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.6.2

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructive and idempotent behavior, and the description adds real value: the approval URL is invalidated as a side effect and the exact failure code upgrade_request_not_pending is returned for the completed, declined, canceled, and expired states. It does not cover permissions or whether the request record survives the cancellation.

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, front-loaded with the action, then the side effect, then the failure mode. No wasted wording.

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 single-parameter mutation with annotations and no output schema, this covers the important behavior: scope, side effect, and error state. Only the success outcome and permission requirements are left implicit.

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 the single id parameter is documented in the schema as the upr_... identifier. The description adds no further syntax or format meaning beyond that baseline.

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: "Withdraw a pending upgrade request." The word "pending" narrows scope and implicitly separates it from get_upgrade_request and request_upgrade, though no sibling is named explicitly.

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 a concrete use case ("the blocker went away") and a precondition: only pending requests qualify. It describes the when, but does not point to alternatives such as get_upgrade_request for checking state first.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.