Skip to main content
Glama

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 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. A repeated idempotency_key with the same input replays the stored result.

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": {
      "expected_revision": "<expected_revision>",
      "idempotency_key": "<idempotency_key>",
      "endpoint_id": "<endpoint_id>"
    },
    "name": "test_webhook_endpoint_with_sample"
  }
}

Input Schema

NameRequiredDescriptionDefault
endpoint_idYesWebhook endpoint id (UUID).
idempotency_keyYesA UUID for this one intent; the same key replays the identical request.
expected_revisionYesThe endpoint's current revision; a stale revision is refused so concurrent edits are never overwritten.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / endpoint_id / description
      Previous value: -"Webhook endpoint id (UUID) from list_webhook_endpoints."New value: +"Webhook endpoint id (UUID)."
    • changedInput schema / properties / expected_revision / description
      Previous value: -"The endpoint's current revision from list_webhook_endpoints; a stale revision is refused so concurrent edits are never overwritten."New value: +"The endpoint's current revision; a stale revision is refused so concurrent edits are never overwritten."
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"A new UUID for this one intent; reuse it only to retry the identical request."New value: +"A UUID for this one intent; the same key replays the identical request."
  2. Changed3 schema fields changed
    • addedInput schema / properties / endpoint_id / description
      Added value: +"Webhook endpoint id (UUID) from list_webhook_endpoints."
    • addedInput schema / properties / expected_revision / description
      Added value: +"The endpoint's current revision from list_webhook_endpoints; a stale revision is refused so concurrent edits are never overwritten."
    • addedInput schema / properties / idempotency_key / description
      Added value: +"A new UUID for this one intent; reuse it only to retry the identical request."
  3. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (which only say mutating, idempotent, non-destructive, open-world), the description discloses the webhook.manage permission requirement, the shared tenant/agent/Live-Sandbox authorization boundary, the bounded control plane, the semantics of the returned verdict, and that repeated idempotency keys replay a stored result. That is exactly the behavior context annotations cannot carry.

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 core action and the verdict caveat are front-loaded in the first two sentences, with constraints, permissions and idempotency after. It is dense but nearly every clause earns its place; only the authorization/host-route sentence is somewhat heavy relative to the rest.

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?

With three required params, an output schema, and full annotations, this description covers what an agent still needs: side-effect scope, permission prerequisite, verdict meaning, and idempotent replay. Nothing material about invoking it correctly is missing.

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 description coverage is 100%, so the baseline is 3. The description's only parameter-adjacent statement restates the idempotency_key replay behavior already documented in the schema, adding no new format, constraint, or usage detail for expected_revision or endpoint_id.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Run the Sample test ... delivers its real inbound.pages_ready / inbound.keywords_matched events to this webhook, and returns a verdict" is a specific verb plus resource plus object. It implicitly separates itself from the plain endpoint test via the 'Sample test / free, fictional' framing, but never names the sibling, so differentiation is inferred rather than stated.

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?

It establishes clear context for choosing this tool: the sample is free and fictional, has no mail/charge/email/facility side effects, and states exactly what a success verdict proves and does not prove. It stops short of an explicit 'use X instead when Y' routing statement against test_webhook_endpoint.

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.