Skip to main content
Glama

byte_publish_data

Destructive

Publish a data payload to a subscriber on the PayPerByte DataStream, hashing it and settling the fee in USDC.

Instructions

Publish data to a subscriber via the PayPerByte DataStream contract. Hashes the payload, records size on-chain, and settles the fee in USDC. Requires PRIVATE_KEY.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
subscriberYesSubscriber Ethereum address (0x...)
dataYesData payload to publish (will be hashed on-chain)
maxFeeYesMaximum fee in USDC willing to pay for this publish (e.g. 0.05)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successNoTrue if publish landed on-chain
txHashNoPublish transaction hash
payloadSizeNoPayload size recorded on-chain (bytes)
payloadHashNokeccak256 of the payload as recorded on-chain
Behavior4/5

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

Discloses key behavioral traits: hashing payload, recording size on-chain, settling fee in USDC. Annotations already indicate destructive hint (true) and no idempotency, so description adds useful context without contradiction.

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 concise sentences that convey the core action, on-chain behavior, and a critical requirement. No wasted words.

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?

Given the presence of an output schema and detailed annotations, the description is fairly complete. It explains what happens (hash, record, settle) and a prerequisite. Missing potential side-effect details, but sufficient for the complexity.

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 has 100% description coverage with clear parameter explanations. The description adds little beyond schema, e.g., 'will be hashed on-chain' is already in schema. Meets baseline for high schema coverage.

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?

Clearly states the verb 'Publish data to a subscriber via the PayPerByte DataStream contract', specifying the resource and contract. Distinguishes from sibling tools like byte_buy_data and byte_subscribe by focusing on the act of publishing data.

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?

Provides a critical prerequisite ('Requires PRIVATE_KEY') but does not give explicit guidance on when to use this tool versus alternatives. No mention of cases where other sibling tools would be preferred.

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