Skip to main content
Glama

update-subscription

update-subscription
Destructive

Renew a Microsoft Graph webhook subscription by extending its expirationDateTime to prevent missed change notifications.

Instructions

Renew a subscription by extending its expiry time. The table in the Permissions section lists the resources that support subscribing to change notifications. Subscriptions expire after a length of time that varies by resource type. In order to avoid missing change notifications, an app should renew its subscriptions well in advance of their expiry date. See subscription for maximum length of a subscription for each resource type.

šŸ’” TIP: Renews a webhook subscription by extending its expiration. Body: { expirationDateTime (ISO 8601, new expiry) }. Call before the current expirationDateTime to avoid missing notifications. Max extension varies by resource type — check Microsoft Graph docs for subscription limits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes
confirmNoFor destructive operations when the confirm gate is enabled (MS365_MCP_REQUIRE_CONFIRM=true; off by default). Set to true only after the user has explicitly approved this action. When the gate is on, calls without confirm: true return { error: "confirmation_required" } without touching user data.
includeHeadersNoInclude response headers (including ETag) in the response metadata
subscriptionIdYesValue for the 'subscriptionId' path segment. Pass it under the name 'subscriptionId', not as 'id'. Use the 'id' field of the subscription object as returned by Microsoft Graph.
excludeResponseNoExclude the full response body and only return success or failure indication
Behavior4/5

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

Annotations already indicate destructiveHint=true and readOnlyHint=false, so the description does not need to repeat these. The description adds that renewal extends expiration and warns about max limits, which is consistent with the destructive flag. It also reiterates the need to renew before expiry. No contradictions; the description complements annotations with practical timing context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is moderately sized, with the main purpose in the first sentence. The second paragraph is a helpful tip that front-loads the essential information (body format and timing). The first paragraph includes somewhat generic context about permissions and expiry, which is useful but could be trimmed. Overall, well-structured and not verbose.

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 tool with a complex schema and no output schema, the description supplies enough context to call it correctly: it tells the agent to pass the new expirationDateTime before expiry, and to check limits. It does not cover the generic flags like confirm or includeHeaders, but these are likely consistent across tools and not essential for this purpose. The description is complete for the core operation.

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

Parameters5/5

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

With 80% schema coverage, the description still adds significant value by explicitly stating the essential body parameter: 'Body: { expirationDateTime (ISO 8601, new expiry) }.' This clarifies that in the update operation, only the expiry field is required in the body, which is not immediately apparent from the schema that lists many optional properties. Additionally, the description highlights the subscriptionId parameter implicitly by its focus on renewal, and the schema itself clarifies the naming. This goes beyond the schema's existing documentation.

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 the tool's purpose: 'Renew a subscription by extending its expiry time.' It specifies the verb (renew), the resource (subscription), and the action (extending expiry). This distinguishes it from sibling tools like create-subscription, delete-subscription, and reauthorize-subscription, which have different actions.

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 provides clear context on when to use this tool: 'Call before the current expirationDateTime to avoid missing notifications.' It also advises checking maximum extension limits for each resource type. However, it does not explicitly mention exclusions or when not to use it, but the sibling set makes that obvious. This is more than implied; it gives actionable timing 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/A-Impact-Pavel/ms365-mcp'

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