Skip to main content
Glama

Xero Verify Webhook

xero_verify_webhook

Validates Xero webhook payloads by checking the HMAC-SHA256 signature in X-Xero-Signature against the raw request body, confirming authenticity before processing.

Instructions

Verify a Xero webhook HMAC-SHA256 signature.

Xero signs webhook payloads with HMAC-SHA256 using your webhook key. The signature is base64-encoded in the X-Xero-Signature header.

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": {
      "raw_body": "<raw_body>",
      "signature_header": "<signature_header>"
    },
    "name": "xero_verify_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
raw_bodyYesRaw webhook request body (JSON string)
signature_headerYesX-Xero-Signature header value (base64)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; it does explain the signing scheme (HMAC-SHA256, base64 in X-Xero-Signature) which is genuinely useful context. However it does not say whether the tool is a pure read-only computation, where the webhook key comes from (implicitly server-configured, not a parameter), or how mismatch is surfaced — some of that is mitigated by the presence of an output schema.

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?

Very short and front-loaded with the core action, with zero filler. The second and third sentences partially restate the first (HMAC-SHA256, signature header) and read as line-break fragments rather than a structured explanation.

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 two-parameter utility with full schema coverage and an output schema, the description covers what the tool does and the signature format. The main gap is the outcome semantics — what a pass/fail result looks like behaviorally and where the signing key originates — but the output schema absorbs much of the return-value burden.

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 both parameters (raw_body, signature_header) are already documented and the baseline is 3. The description adds only marginal meaning — that the signature is base64 in the X-Xero-Signature header and that verification uses a configured webhook key rather than a parameter.

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?

States a specific verb (verify) and specific resource (Xero webhook HMAC-SHA256 signature), so the operation is unambiguous. It does not explicitly contrast with any other tool, but no sibling in the listed catalog performs signature verification, so confusion risk is low.

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 only implied: the mention of Xero signing payloads with 'your webhook key' suggests this is called on inbound webhook requests, but there is no explicit when-to-use statement, no note about what to do on a failed verification, and no alternatives to consider.

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