Skip to main content
Glama

azeth_subscribe_service

Set up recurring payments to an x402-gated service by creating an on-chain payment agreement. Automates subscription billing without per-request payments.

Instructions

Subscribe to an x402-gated service by creating a payment agreement.

Use this when: You want to set up a subscription instead of paying per-request. The tool fetches the service URL, parses the 402 payment-agreement extension terms, and creates an on-chain payment agreement matching those terms.

Returns: The agreement ID, transaction hash, and subscription details.

Note: The service must advertise payment-agreement terms in its 402 response. After subscribing, subsequent calls to azeth_pay will automatically detect the agreement. No need to pass an agreementId — the server recognizes your wallet via SIWx authentication.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoTarget chain. Defaults to AZETH_CHAIN env var or "baseSepolia". Accepts "base", "baseSepolia", "ethereumSepolia", "ethereum" (and aliases like "base-sepolia", "eth-sepolia", "sepolia", "eth", "mainnet").
urlYesThe HTTPS URL of the x402-gated service to subscribe to.
intervalSecondsNoOverride the suggested interval (seconds, minimum 60). Defaults to the service suggestion.
maxExecutionsNoMaximum number of payments (count cap). 0 or omit for no count limit — an amount cap (totalCap) applies instead.
totalCapNoMaximum total payout in human-readable token units (e.g., "100.00"). Omit BOTH this and maxExecutions to default to ~1 year of payments (amountPerInterval × 365).
Behavior4/5

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

No annotations provided, so description carries full burden. Explains the process: fetches URL, parses 402 terms, creates on-chain agreement. Mentions returns and prerequisite (service must advertise terms). Could detail side effects like gas costs, but overall transparent.

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?

Description is concise: a brief paragraph plus a note. Every sentence adds value—purpose, usage, process, returns, and important note about automatic detection. Front-loaded and efficient.

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?

Covers purpose, usage, behavior, prerequisites, and returns. Without an output schema, it names the returned fields (agreement ID, transaction hash, details). Lacks exact format but is sufficient for the tool's complexity (5 params, 1 required, no nested objects).

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 coverage is 100%, so baseline 3 applies. The description does not add significant meaning beyond the schema's parameter descriptions; it focuses on high-level behavior rather than parameter details. Adequate but not over-performing baseline.

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 subscribes to an x402-gated service by creating a payment agreement. It distinguishes from the sibling tool azeth_pay by specifying it is for setting up a subscription instead of per-request payment, and implicitly differentiates from azeth_create_payment_agreement by focusing on automatic parsing of 402 terms.

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?

Explicitly states 'Use this when: You want to set up a subscription instead of paying per-request,' and notes that after subscribing, azeth_pay will automatically use the agreement. Provides clear context but does not explicitly list alternatives or when not to use.

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/azeth-protocol/mcp-server'

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