Skip to main content
Glama
arbengine

mailbox-mcp

test_webhook_endpoint_with_sample

Idempotent

Run the Sample test: opens and scans the member's Mojave sample letter if needed (free, fictional), delivers its real inbound.pages_ready / inbound.keywords_matched events to this webhook, and returns a verdict computed from the receiver's…

Instructions

Run the Sample test: opens and scans the member's Mojave sample letter if needed (free, fictional), delivers its real inbound.pages_ready / inbound.keywords_matched events to this webhook, and returns a verdict computed from the receiver's actual HTTP result plus a next step. success proves transport receipt and, when keywords are configured, a keyword match; it never proves agent processing. No mail, charge, email or facility work. Requires webhook.manage. Uses the same bounded control plane and tenant/agent/Live-Sandbox authorization as /api/v1/webhooks/endpoints. Reuse the exact idempotency_key and input after an uncertain mutation. Webhook docs: https://mailbox.bot/docs/webhooks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endpoint_idYesWebhook endpoint id (UUID) from list_webhook_endpoints.
idempotency_keyYesA new UUID for this one intent; reuse it only to retry the identical request.
expected_revisionYesThe endpoint's current revision from list_webhook_endpoints; a stale revision is refused so concurrent edits are never overwritten.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.3

TDQS

A4.4/5.0
Behavior5/5

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

With annotations already covering the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true), the description adds substantial behavioral context: it is free, fictional, opens/scans a sample letter, delivers real events, proves only transport receipt and keyword match (never agent processing), requires webhook.manage, uses bounded control plane and tenant/agent/Live-Sandbox authorization, and specifies idempotency key reuse. This far exceeds the annotation coverage.

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 front-loaded with the core action and keeps every sentence relevant: scope, limits, permissions, idempotency, and docs link. It is dense but not redundant; a slightly leaner phrasing could still convey the same information, but the length is justified by the tool's complexity.

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 the tool's complexity (a test that mutates webhook delivery state), the presence of annotations, and an output schema, the description is complete. It covers what the tool does, what it does not do, auth requirements, idempotency behavior, and how to interpret success, leaving no critical gap for an agent to call it correctly.

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 description coverage is 100%, so the baseline is 3. The description adds a meaningful nuance beyond the schema's idempotency_key description by specifying 'Reuse the exact idempotency_key and input after an uncertain mutation,' clarifying when reuse is appropriate. It also ties expected_revision to concurrent-edit safety, though that is largely echoed in 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 states a specific verb and resource ('Run the Sample test' on a webhook endpoint) and distinguishes itself from the generic sibling test_webhook_endpoint by naming the 'Sample' test and describing the exact events delivered (inbound.pages_ready / inbound.keywords_matched). An agent can tell what this tool does without opening any other schema.

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

Usage Guidelines3/5

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

The description gives some contextual guidance ('Reuse the exact idempotency_key and input after an uncertain mutation') and prerequisites ('Requires webhook.manage'), but it never explicitly says when to choose this tool over test_webhook_endpoint or replay_webhook_delivery. Usage is implied by the name and context rather than stated with alternatives or exclusions.

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