Skip to main content
Glama

Pause or resume a subscription

set_subscription_state
DestructiveIdempotent

Sets whether a subscription in the current workspace delivers events and returns its id and resulting state. Use it to pause or resume a subscription from list_subscriptions or create_subscription. A successful resume can return state blocked with blockedReason subscription_limit_reached. An API refusal is an error. Use remove_subscription for permanent deletion. Requires manage.

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": {
      "subscriptionId": "<subscriptionId>",
      "state": "<state>"
    },
    "name": "set_subscription_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateYesUse on to deliver events or off to pause delivery.
subscriptionIdYesSubscription id from list_subscriptions or create_subscription.

Output Schema

NameRequiredDescriptionDefault
stateYes
workspaceYes
blockedReasonNo
subscriptionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=true, idempotentHint=true), the description discloses non-obvious behavior: a successful resume may land in state 'blocked' with blockedReason 'subscription_limit_reached', API refusals surface as errors, and a `manage` scope is required. It stops short of explaining why the call is flagged destructive (that pausing halts delivery) or how the blocked outcome should be handled, so not a full 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?

The core action and its return are front-loaded in the first sentence, then prerequisites, edge cases, and the sibling alternative follow in short declarative sentences. No sentence is filler; each carries a distinct operational fact.

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

Completeness5/5

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

For a two-parameter state toggle with an output schema present, the description covers everything an agent needs: what it does, the permission gate, the blocked-on-resume edge case, error behavior, and the alternative delete tool. Return-value detail can be left to the output schema as it is.

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 schema already documents both parameters, including the on/off semantics of 'state' and the id pattern. The description's 'pause or resume' framing restates that mapping without adding format or validation detail, so the 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?

Opens with a specific verb and resource plus scope: 'Sets whether a subscription in the current workspace delivers events and returns its id and resulting state.' It also distinguishes the operation from remove_subscription explicitly, so an agent can tell pause/resume apart from deletion without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

States the use case ('pause or resume a subscription from list_subscriptions or create_subscription'), names the alternative for the adjacent need ('Use remove_subscription for permanent deletion'), and gives the permission prerequisite ('Requires `manage`'). Both when-to-use and when-not-to-use are covered.

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.