Skip to main content
Glama

Update a subscription

update_subscription
Idempotent

Modify a flight subscription's webhook URL, events filter, delay threshold, headers, or metadata by sending only the fields to change. The flight itself cannot be changed.

Instructions

Change a subscription's webhookUrl, events filter, delayThresholdMinutes, headers or metadata. Send only the fields to change; headers and metadata replace the stored maps. The flight cannot be changed: create a new subscription for a different flight.

Input Schema

NameRequiredDescriptionDefault
idYesSubscription id, e.g. "sub_7Kd91mQx0Zb2", as returned by create_subscription or list_subscriptions.
eventsNoChange types to deliver; omit to deliver all 23. Common picks: "flight.departed", "flight.arrived", "flight.cancelled", "flight.diverted", "departure.gate.changed", "arrival.baggage.changed", "delay.increased".
headersNoExtra HTTP headers sent with every delivery, e.g. {"Authorization": "Bearer <receiver token>"}.
metadataNoString map echoed back in every webhook, e.g. {"bookingId": "BK-1042"}. Use it to tie deliveries to your own records.
webhookUrlNoThe user's public http(s) endpoint that receives a signed POST for every change. Addresses that resolve to private, loopback or link-local ranges are refused. Never invent one.
delayThresholdMinutesNoDelay changes smaller than this many minutes are not delivered. 1 to 240; the default is 1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Goes beyond the annotations (which only declare idempotent/non-destructive/non-readOnly) by disclosing the replace-vs-merge semantics of `headers` and `metadata` and the immutability of the flight binding — behavior an agent cannot infer from the schema or annotations. Minor gaps remain: no mention of delivery-history effects or whether a new webhookUrl is re-verified.

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 sentences, zero waste: mutable fields first, patch semantics second, the hard constraint and its workaround last. Every sentence carries information not present elsewhere.

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 6-parameter mutation tool with no output schema, the description covers what can be changed, how to send changes, and the one immutable property. It would be complete at 5 with a note on validation/re-verification of a changed webhookUrl or on whether existing deliveries are affected.

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

Parameters4/5

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

Schema coverage is already 100%, so baseline is 3; the description adds real value by clarifying that `headers` and `metadata` replace the stored maps rather than merge, and by framing the operation as a partial patch so unchanged fields are left intact. That nuance is not in the schema descriptions.

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?

States a specific verb (change) and resource (subscription) and enumerates exactly which fields are mutable (webhookUrl, events, delayThresholdMinutes, headers, metadata), which alone distinguishes it from create_subscription and get_subscription. The explicit statement that the flight is immutable further pins down the tool's scope.

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?

"Send only the fields to change" is a precise call pattern, and "create a new subscription for a different flight" names the alternative for the case this tool cannot handle. It stops short of routing the agent to pause_subscription/resume_subscription for temporary silencing, which would have earned a 5.

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