Skip to main content
Glama

create_paywall

Generate paywall URLs that charge agents for accessing protected resources using on-chain payments, returning HTTP 402 until payment is verified.

Instructions

Create an x402 paywall that charges agents/clients for accessing a resource. Returns a public access URL that returns HTTP 402 until paid. Agents pay on-chain, then retry with proof to get the content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wallet_idYesWallet ID to receive payments
nameYesHuman-readable paywall name (e.g. "Premium API Access")
descriptionNoDescription shown in the 402 response
amountYesPrice in human-readable format (e.g. "0.01" for 0.01 USDC)
token_typeNo"erc20" for EVM stablecoins, "spl" for Solana SPL tokens, "native" for ETH/SOL/POL/etc.erc20
token_addressNoToken contract address (ERC-20 for EVM, SPL mint Base58 for Solana). Required if token_type is "erc20" or "spl". Use get_chains to find stablecoin addresses.
token_decimalsNoToken decimals (6 for USDC, 18 for ETH/most tokens)
token_nameNoToken display name (e.g. "USDC", "ETH")USDC
chain_idNoChain ID for payments (8453=Base, 1=Ethereum, etc.)
resource_urlYesURL of the protected resource to serve after payment verification
resource_mimeNoMIME type of the resource (e.g. "application/json", "text/plain")application/json
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes the tool's behavior: creating a paywall that returns a URL, which returns HTTP 402 until payment is made, and then serves the protected resource after verification. It covers the payment flow and outcome, though it could add more about error conditions or rate limits.

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 efficiently structured in two sentences that directly explain the tool's purpose and workflow. Every word earns its place, with no redundant or vague language, making it easy to understand at a glance.

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 creation tool with 11 parameters and no annotations or output schema, the description provides a solid overview of what the tool does and its behavioral flow. It covers the core functionality and outcome, though it could be more complete by mentioning potential errors, the format of the returned URL, or how the proof mechanism works in detail.

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%, so the schema already documents all 11 parameters thoroughly. The description doesn't add any parameter-specific semantics beyond what the schema provides, such as explaining interactions between parameters like 'token_type' and 'token_address'. Baseline 3 is appropriate when the schema does the heavy lifting.

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 specific action ('Create an x402 paywall'), the target resource ('that charges agents/clients for accessing a resource'), and the outcome ('Returns a public access URL that returns HTTP 402 until paid'). It distinguishes this tool from siblings like 'update_paywall' or 'delete_paywall' by focusing on creation rather than modification or removal.

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?

The description implies usage context by mentioning that agents pay on-chain and retry with proof, but it doesn't explicitly state when to use this tool versus alternatives like 'update_paywall' or 'pay_x402'. It provides some operational guidance but lacks explicit comparisons or exclusions relative to sibling tools.

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/hifriendbot/agentwallet-mcp'

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