Skip to main content
Glama
klodr

mercury-invoicing-mcp

mercury_update_webhook

Modify a Mercury webhook's URL, status, or event subscriptions. Rotate destination URLs, adjust event listening, or reactivate auto-disabled webhooks by setting status to active. Changes take effect immediately for future events.

Instructions

Update an existing webhook endpoint (URL, status, or subscribed events).

USE WHEN: rotating a webhook's destination URL, changing the event subscription, or reactivating a webhook Mercury auto-disabled after consecutive delivery failures (set status: "active").

DO NOT USE: to inspect delivery history. Same SSRF / non-HTTPS URL guard as mercury_create_webhook applies to the new URL.

SIDE EFFECTS: overwrites the webhook record. Persistent. If status flips to active, Mercury resumes delivery on the next matching event. The new URL takes effect immediately for future events.

RETURNS: { id, url, status, events, ... } — the updated webhook.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
webhookIdYesThe webhook endpoint ID
urlNoNew publicly reachable HTTPS URL (same rules as mercury_create_webhook).
statusNoWebhook status
eventTypesNoEvent types to subscribe to. Common values: - transaction.created / transaction.updated - transaction.posted / transaction.pending / transaction.failed - invoice.created / invoice.sent / invoice.paid / invoice.overdue / invoice.cancelled - customer.created / customer.updated - recipient.created / recipient.updated Check https://docs.mercury.com/reference/webhooks for the full list.
Behavior5/5

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

Without annotations, the description fully covers behavioral traits: side effects (overwrites record, persistent, resume delivery if status flips to active, immediate effect of new URL). It also notes the same SSRF guard applies, and returns the updated webhook object. No contradiction with annotations as none exist.

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 extremely concise, using sections (USE WHEN, DO NOT USE, SIDE EFFECTS, RETURNS) to present information efficiently. Every sentence adds value, and there is no redundant or extraneous content.

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?

Given no output schema, the description specifies the return format explicitly. It covers preconditions (SSRF guard), side effects, and usage guidance. With 4 parameters (1 required) and no annotations, the description is sufficiently complete for an agent to use the tool correctly.

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?

Schema coverage is 100%, but the description adds significant meaning: it explains the use of status for reactivation after failures, provides common eventTypes examples with a link to full list, and clarifies that the URL has the same rules as mercury_create_webhook. This goes well beyond the schema's basic 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?

The description starts with a clear verb+resource: 'Update an existing webhook endpoint', and specifies the updatable fields (URL, status, subscribed events). It distinguishes itself from siblings like mercury_create_webhook and mercury_delete_webhook by focusing on updating rather than creating or deleting.

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?

The description includes explicit 'USE WHEN' and 'DO NOT USE' sections, stating when to use (rotating URL, changing events, reactivating auto-disabled webhooks) and when not (inspecting delivery history). It also references the SSRF guard from the sibling create tool, providing clear boundaries.

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/klodr/mercury-invoicing-mcp'

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