Skip to main content
Glama

byte_subscribe

Prevent silent payment failures when subscribing to a data feed by automatically setting USDC allowance. Optionally skip for manual cap.

Instructions

Subscribe to a PayPerByte publisher's data feed. By default also sets USDC allowance to DataStreamLib to type(uint256).max so the subscription doesn't silently lose payments when allowance depletes (the contract's allowance-skip path emits DataStreamed with amount=0 on transferFrom failure rather than reverting). Pass skipAllowance: true to opt out and set a finite cap manually. Requires PRIVATE_KEY.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
publisherYesPublisher Ethereum address (0x...) to subscribe to
skipAllowanceNoIf true, don't bundle the USDC approve(max) call. Default false. Auto-approve is also skipped when the wallet already has ≥ $1000 USDC of allowance to DataStreamLib.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successNoTrue if subscribe landed on-chain
txHashNoSubscribe transaction hash
allowanceTxHashNoUSDC approve(max) transaction hash, if bundled
publisherNoPublisher subscribed to
Behavior5/5

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

The description discloses critical behavioral traits: the auto-allowance to type(uint256).max, the contract's silent failure path with DataStreamed emit and amount=0, and the skipAllowance option. These details go well beyond the annotations (readOnlyHint=false, destructiveHint=false) and are essential for understanding the tool's side effects.

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?

The description is informative but slightly verbose with technical details about the allowance-skip path. However, the information is valuable and well-structured. A minor trim could improve conciseness, but it remains effective.

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 presence of an output schema (not shown but implied from context), the description need not explain return values. It covers the main action, prerequisite, and edge cases (allowance depletion behavior). It is complete for a mutation tool with two parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the description adds significant meaning: clarifying that publisher is an Ethereum address, and explaining skipAllowance's default, the auto-approve logic, and the condition when it is skipped (wallet already has >= $1000 USDC allowance). This enriches the parameter schema.

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 'Subscribe to a PayPerByte publisher's data feed' with a specific verb and resource. It distinguishes itself from sibling tools like byte_unsubscribe and byte_check_subscription by describing the core action and the default allowance setting behavior.

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 includes a prerequisite ('Requires PRIVATE_KEY') and explains when to use skipAllowance: true vs the default. It could be more explicit about when to choose this tool over alternatives like byte_buy_data or byte_list_my_subscriptions, but it provides sufficient context for an AI agent to select it correctly.

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