Skip to main content
Glama

ROKI Connect

Verify a ROKI webhook signature and diagnose why it fails

roki_verify_webhook_signature
Read-onlyIdempotent

Check the header, raw body and disposable signing secret of a synthetic webhook fixture. Tests common HMAC construction errors. For real deliveries, verify inside the merchant backend.

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>",
      "signing_secret": "<signing_secret>"
    },
    "name": "roki_verify_webhook_signature"
  }
}

Input Schema

NameRequiredDescriptionDefault
raw_bodyYesThe EXACT raw request body as received, byte for byte, before any JSON parsing.
signing_secretYesDisposable signing secret used to generate the synthetic fixture.
signature_headerYesThe full ROKI-Signature header value, e.g. "t=1719234300,v1=8f3c..."

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / signing_secret / description
      Previous value: -"The signing secret from the portal, for the same environment as the event. Held in memory for the duration of the call only: this server logs no tool arguments."New value: +"Disposable signing secret used to generate the synthetic fixture."
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the safety bar is low; the description still adds real value by stating the input must be a synthetic fixture with a disposable secret and that the tool is a diagnostic test harness. It does not state what the diagnosis response contains (pass/fail plus the specific construction error), which matters for a no-output-schema tool.

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?

Three short sentences, no wasted words: what it checks first, what it diagnoses second, the hard boundary third. Front-loaded and easy to scan.

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 3-parameter, annotation-covered, no-output-schema tool, the description covers inputs, scope limitation, and diagnostic intent. The only missing piece is a hint about the shape of the result (match/mismatch plus failure cause), which would help an agent plan next steps.

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% and already spells out the critical 'byte for byte, before any JSON parsing' constraint and the ROKI-Signature header format. The description only echoes the parameter set ('header, raw body and disposable signing secret'), reinforcing the disposable-fixture requirement but adding no new semantics. Baseline 3 applies.

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?

Specific verb ('Check'/'Verify') plus resource ('webhook signature') scoped to a 'synthetic webhook fixture', which clearly separates it from any real-delivery verification. The second sentence names the diagnostic angle (common HMAC construction errors). It stops just short of naming which sibling doc/guide tool to consult first, so it is clear but not maximally differentiated.

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?

Explicit when-not guidance: 'For real deliveries, verify inside the merchant backend' tells the agent this is sandbox-only. The implied when-to-use (diagnosing failing HMAC construction against a fixture) is readable from 'Tests common HMAC construction errors'. No sibling tool is named as the alternative, which is the only gap.

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.

Resources