l402_create_resource
Create or update a protected L402 gateway resource with a sat price, optional description, content type, and TTL so AI agents can manage paid access.
Instructions
Create or update a protected resource on the configured L402 gateway.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resource_id": "<resource_id>",
"price_sats": "<price_sats>"
},
"name": "l402_create_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price_sats | Yes | Price in sats | |
| description | No | Optional resource description | |
| resource_id | Yes | Resource identifier | |
| ttl_seconds | No | Optional resource TTL in seconds | |
| content_type | No | Optional content type |