Skip to main content
Glama

byte_verify_payload

Read-onlyIdempotent

Verify that a received data payload matches the on-chain cryptographic attestation before acting on it. Prevents use of tampered or corrupted data from BYTE publishers.

Instructions

Verify-before-act: confirm a data payload an agent is about to act on actually matches what the publisher cryptographically attested to on-chain. Recomputes keccak256 of the received bytes and compares it to the on-chain EIP-712 PayloadAttestation hash. ALWAYS call this on BYTE-sourced data before acting on it; if verified=false the bytes were tampered/corrupted in transit and MUST NOT be used. Anchor the check with EITHER expectedHash (an on-chain payloadHash you already hold, e.g. from byte_query_fact / byte_buy_data) OR txHash (the settlement tx — also recovers the attestation signer and confirms it is the named publisher). Read-only; no wallet or payment required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesThe exact payload bytes the agent received and is about to act on — the raw delivered string, or a 0x-prefixed hex byte string.
expectedHashNoOn-chain payloadHash to verify against (0x + 64 hex), e.g. the payloadHash returned by byte_query_fact or byte_buy_data.
txHashNoSettlement tx hash whose on-chain BroadcastStreamed attestation to verify against. When provided, also recovers the EIP-712 signer and confirms it is the attesting publisher.
hashModeNoHow to hash structured payloads: 'raw' (keccak of the utf8 string, default — matches byte_publish_data) or 'canonical' (keccak of key-sorted, whitespace-free JSON).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
verifiedYesTrue only if the recomputed hash matches the on-chain attested hash AND (when a signer was recovered) the signer is the publisher. If false: do NOT act on the data.
recomputedHashYeskeccak256 of the received bytes
onChainHashYesThe on-chain attested payloadHash compared against
hashMatchYesWhether the recomputed hash equals the on-chain hash
signerNoRecovered EIP-712 attestation signer (txHash mode)
attestingPublisherNoPublisher named in the on-chain event (txHash mode)
signerMatchNoWhether the recovered signer is the attesting publisher
sourceNoWhich anchor was used: 'txHash' or 'expectedHash'
txHashNoSettlement tx hash verified against (txHash mode)
blockNumberNoBlock number of the settlement tx (txHash mode)
reasonYesHuman-readable verdict an agent can surface when it acts or refuses
Behavior5/5

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

The description discloses the cryptographic verification process: 'Recomputes keccak256... compares to on-chain hash.' It explicitly states 'Read-only; no wallet or payment required,' aligning with annotations (readOnlyHint=true, destructiveHint=false). It also warns about consequences of failed verification, adding valuable context beyond annotations.

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?

The description is concise with 4 sentences, all front-loaded with purpose. Every sentence adds value: purpose, mechanism, mandatory usage instruction, and anchoring options. No wasted words.

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

Completeness5/5

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

Given the tool's simplicity (verification with a boolean result), the description fully covers what the tool does, when to use it, how it works, and the meaning of outputs (verified=true/false). The presence of output schema further reduces the need for return value explanation.

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?

Input schema covers 100% of parameters with descriptions. The description adds context: 'data' is the exact received payload, 'expectedHash' is the on-chain payloadHash, 'txHash' recovers the signer, and 'hashMode' explains hashing strategies. This enriches the schema definitions, though the schema alone is already informative.

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 clearly states the tool's purpose: 'Verify-before-act: confirm a data payload matches on-chain attestation.' It uses specific verbs (verify, confirm) and resource (data payload, on-chain hash), and distinguishes itself from siblings as a mandatory verification step before acting on BYTE-sourced data.

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?

The description explicitly instructs when to use: 'ALWAYS call this on BYTE-sourced data before acting on it' and when not: 'if verified=false the bytes were tampered and MUST NOT be used.' It also provides options for anchoring with expectedHash or txHash, referencing sibling tools. It could improve by explicitly stating when not to use (e.g., non-BYTE data), but overall it's clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0rkz/byte-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server