Skip to main content
Glama

orchestrator_validate_push_webhook

Validates A2A push webhook URLs and payloads, blocking SSRF targets and unsafe schemes while minting or verifying HMAC-SHA256 signatures and enforcing replay-lock deduplication.

Instructions

Audit A2A pushNotificationConfig webhook URLs and event payloads — blocking SSRF (127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.0.0/16 AWS/GCP IMDS, ::1, fc00::/7, non-HTTPS schemes, and embedded URL credentials) while verifying or minting constant-time HMAC-SHA256 X-A2A-Notification-Signature headers and (tenant_id, delivery_id) replay-lock deduplication.

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": {
      "tenant_id": "<tenant_id>",
      "webhook_url": "<webhook_url>"
    },
    "name": "orchestrator_validate_push_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadNoOptional JSON webhook payload object or raw UTF-8 string.
tenant_idYesTenant namespace (`SPEC_CLASS_13`) scoping webhook replay locks.
delivery_idNoOptional unique webhook delivery ID enforced against `(tenant_id, delivery_id)` replays.
hmac_secretNoOptional shared webhook secret used only in memory to mint/verify `X-A2A-Notification-Signature`.
resolve_dnsNoOptionally resolve DNS A/AAAA records and verify all resolved IPs against SSRF blocklists.
webhook_urlYesCandidate `pushNotificationConfig.url` endpoint (`https://` required).
record_deliveryNoPersist `(tenant_id, delivery_id)` in the replay lock table when validation succeeds.
signature_headerNoOptional inbound `X-A2A-Notification-Signature` (`sha256=<hex>`) to verify in constant time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only supply the generic profile (readOnlyHint=false, idempotentHint=false, destructiveHint=false, openWorldHint=false), while the description adds substantial behavioural context: the exact blocked CIDR ranges, IMDS endpoints, HTTPS-only enforcement, constant-time HMAC-SHA256 comparison, and replay-lock deduplication. It stops short of spelling out that state is persisted (only the record_delivery param and the phrase 'replay-lock deduplication' hint at it) and does not mention side effects, output shape, or whether any outbound notification is actually sent.

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?

A single front-loaded sentence that puts verb and resource first, then the enforcement details. The long parenthetical CIDR/scheme enumeration is dense and mostly relevant to understanding rejection behavior rather than to tool selection, so it borders on clutter but is not wasteful enough to penalize heavily.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 8 parameters and no output schema, the description should explain what a validation result looks like (pass/fail, violation reason, minted signature). It never describes the return value or error semantics, leaving a real gap for a tool whose whole purpose is to produce a verdict.

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 the baseline is 3, but the description earns a step up by adding meaning the schema lacks: which CIDRs and schemes webhook_url is rejected for, that hmac_secret is memory-only, and what the X-A2A-Notification-Signature format represents. It still does not explain interaction rules between the optional flags (e.g., signature_header plus hmac_secret selecting verify vs. mint).

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 names a precise verb ('Audit') and resource ('A2A pushNotificationConfig webhook URLs and event payloads') and then enumerates exactly what is checked: SSRF ranges, scheme/credential rules, HMAC signing, and replay dedup. No sibling operates in this domain, so an agent can tell instantly that this is the webhook security validation entry point.

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?

Usage is implied through the stated checks and the 'verifying or minting' phrasing, which signals the two operating modes (inbound signature verification vs. signature minting). However, it never states when an agent should call this versus other orchestrator steps, nor any prerequisites such as needing a task/A2A config first.

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