Skip to main content
Glama
Meta Business Messaging

Meta Business Messaging

webhook_verify_challenge

Validates Meta's GET webhook subscription handshake and returns the hub.challenge echo needed to complete verification.

Instructions

Validate Meta's GET webhook handshake. Returns {ok, response} where response is the hub.challenge echo to send back.

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": {
      "mode": "<mode>",
      "token": "<token>",
      "challenge": "<challenge>"
    },
    "name": "webhook_verify_challenge"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYeshub.mode query param — must equal 'subscribe'
tokenYeshub.verify_token query param sent by Meta
challengeYeshub.challenge query param to echo back
expected_tokenNoYour configured verify token (falls back to META_VERIFY_TOKEN env)

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 supplied, so the description carries the behavioral burden alone. It usefully discloses the return shape ({ok, response}) and the semantics of 'response' as the challenge echo, which is real added value. It omits the failure path (what ok=false means), whether a token mismatch is an error or a false flag, and confirms nothing about side effects or environment fallback.

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?

Two short sentences with zero filler, leading with the purpose and following with the return contract. Every clause earns its place, especially the return-value note given there is no output schema.

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?

For a four-parameter, fully-documented handshake validator with no annotations and no output schema, the description covers the essentials of purpose and return. It leaves gaps on failure semantics and token-mismatch behavior, which matter for an agent deciding how to respond to a non-ok result.

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 all four parameters are already documented, including the expected_token env fallback. The description adds only marginal meaning, chiefly clarifying that the returned value echoes the challenge parameter. Baseline 3 applies when 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?

The description uses a concrete verb and resource: 'Validate Meta's GET webhook handshake.' An agent immediately understands this handles the subscription verification callback. It does not distinguish itself from siblings such as webhook_validate_signature or webhook_parse_event, which is the only thing keeping it from a 5.

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 by 'Meta's GET webhook handshake' — an agent can infer this is the endpoint to call when Meta sends a hub.mode=subscribe request. However, there is no explicit statement of when to prefer this over webhook_validate_signature, nor any note about what to do when validation fails or which request stage triggers it.

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