Skip to main content
Glama
Meta Business Messaging

Meta Business Messaging

webhook_parse_event

Inspect a Meta webhook event body to identify its product and event types, helping you route and handle incoming WhatsApp, Messenger, or Instagram notifications correctly.

Instructions

Inspect a Meta webhook event body and describe which product/event types it contains.

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": {
      "body": "<body>"
    },
    "name": "webhook_parse_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesRaw JSON string or parsed object of the webhook body

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. 'Inspect' and 'describe' imply a non-mutating read-only operation, which is useful, but it doesn't say how malformed bodies are handled or what the response shape is. Adequate for a single-parameter inspection tool but with clear gaps.

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?

One tightly worded sentence with zero waste and the action front-loaded. It is perhaps overly terse for a tool whose output the caller must interpret, but there is no filler.

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 one-parameter inspection tool with no output schema, the description conveys both the input domain (a webhook event body) and the return content (contained product/event types), which is enough to call and use it. Additional detail on response structure would round it out.

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 coverage is 100% and the single 'body' parameter is documented in the schema as accepting either a raw JSON string or a parsed object. The description adds no format or parsing nuance beyond that, so the schema does the heavy lifting.

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?

Uses a specific verb ('Inspect') on a specific resource ('Meta webhook event body') and states the returned information ('which product/event types it contains'). This clearly distinguishes it from webhook_validate_signature and webhook_verify_challenge, though it doesn't explicitly name them.

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 routing intent is implied: determine event/product types so the caller can dispatch to the right handler. There is no explicit statement of when to use this versus the sibling webhook tools (validate signature, verify challenge), leaving prerequisites to inference.

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