Skip to main content
Glama

Cancel contract product

cancel_contract_product
Destructive

Cancel a single service on a contract with options for no refund, full refund, or pro-rata refund. Use to terminate a live service immediately.

Instructions

Cancel a single service on a contract, with refund control. refund_mode: 0 = no refund, 1 = full refund, 2 = pro-rata refund. DESTRUCTIVE: cancels a live service.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contract_idYesContract UUID
refund_modeNo0 no refund (default), 1 full, 2 pro-rata
refund_sourceNo0 original source (default), 1 wallet only
cancellation_reasonNo
contract_product_idYesContract product UUID
Behavior4/5

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

Annotations already indicate destructiveHint=true and readOnlyHint=false. The description adds context by explicitly stating 'DESTRUCTIVE: cancels a live service' and detailing refund modes, reinforcing the destructive nature and elaborating on behavior beyond the annotation. No contradiction with annotations.

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?

The description is concise and well-structured: the first sentence states the core action, and the second explains refund modes and adds a destructive warning. Every sentence carries meaningful information with no waste.

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 destructive tool with annotations and schema, the description covers the essential purpose, refund control, and the destructive nature. It does not mention refund_source or cancellation_reason (though the schema covers them), nor post-cancellation effects, but overall it is sufficiently complete for an agent to understand the tool's role.

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 description coverage is 80%, so baseline is 3. The description explains refund_mode values (0/1/2) which the schema already covers, and does not add new meaning for contract_id, contract_product_id, refund_source, or cancellation_reason. It provides no additional parameter semantics beyond the schema.

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?

The description clearly states it cancels a single service on a contract, with refund control. The phrase 'single service' distinguishes it from the sibling `cancel_contract`, which cancels the whole contract, so the purpose is specific and unambiguous.

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 description implies when to use it: canceling a single service on a contract, and the refund mode details provide options. However, it does not explicitly mention alternatives or when not to use it (e.g., for full contract cancellation), so it lacks clear exclusions but provides enough contextual guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/spidyhost-crm/upmind-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server