Skip to main content
Glama

x402_create_protected_endpoint

Create a paywall-protected endpoint requiring x402 payment. Set price in USD, token, network, and rate limits to charge for API access.

Instructions

Define a new paywall-protected endpoint. This tool configures pricing for an API endpoint that will require x402 payment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesURL path pattern (e.g., '/api/joke', '/api/premium/*')
priceYesPrice in USD (e.g., '0.001' for $0.001)
tokenNoPayment tokenUSDs
methodsNoHTTP methods (default: all)
networkNoBlockchain networkarbitrum
rateLimitNoMax requests per payer per hour
descriptionNoHuman-readable description of the endpoint
Behavior2/5

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

No annotations are provided, so the description must carry the burden of behavioral disclosure. It mentions the action is to 'define' and 'configure pricing,' which implies a creation/setup operation, but it does not disclose any side effects, prerequisites (e.g., whether an existing endpoint is required), reversibility, or what happens on success. For a mutation tool with zero annotation coverage, this is a significant transparency gap.

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 succinct sentences, front-loaded with the primary purpose, and no filler. Every word contributes to understanding. Excellent conciseness.

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

Completeness2/5

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

While the schema fully documents parameters, there is no output schema and no annotations. The description does not explain what the tool returns on success (e.g., endpoint ID, confirmation) or any lifecycle context (e.g., how this relates to x402_create_paywall). For a creation tool, this missing return-value and behavioral context is a notable gap.

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?

The input schema provides full descriptions (100% coverage) for all 7 parameters, so the description doesn't need to explain them. The description's mention of 'pricing' loosely references the price parameter but doesn't add meaning beyond the schema. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a clear verb+resource: 'Define a new paywall-protected endpoint.' It goes on to explain the core function: configuring pricing for an API endpoint that requires x402 payment. However, it doesn't explicitly differentiate from similar sibling tools like x402_create_paywall or x402_set_pricing, so it doesn't earn a 5.

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: use this when you want to set up a monetized endpoint with x402 payment. But it provides no explicit when-to-use or when-not-to-use guidance, and no alternative tools are mentioned. This is implied rather than explicit guidance.

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/nirholas/universal-crypto-mcp'

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