Skip to main content
Glama

Buy a 7-day pass

buy_pass
Read-onlyIdempotent

Explains how to buy a 7-day pass (5 USDC) for a wallet. Recommended: x402 at POST https://agentsla.io/v1/pass (one USDC signature, no gas, no approval). Alternative: the returned unsigned Base Mainnet transactions (a USDC approve, only if its allowance is below 5 USDC, then paySubscription() on the escrow contract). Use it when check_pass shows no active pass. Calling it is free and changes nothing: the wallet signs and sends the returned transactions itself (gas in ETH on Base); AgentSLA holds no keys and moves no funds. Buying while a pass is active extends it by 7 days from its current expiry. Returns the ordered transactions (to, data, value, chainId) and warnings such as an insufficient USDC balance.

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": {
      "walletAddress": "<walletAddress>"
    },
    "name": "buy_pass"
  }
}

Input Schema

NameRequiredDescriptionDefault
walletAddressYesBase Mainnet wallet that will sign, pay for and own the pass, e.g. "0x1234...abcd".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Although annotations already mark the tool read-only, open-world, and idempotent, the description adds crucial behavior: calling it is free and changes nothing, AgentSLA holds no keys and moves no funds, and the wallet signs and sends the returned transactions itself with ETH gas on Base. It also discloses return contents (ordered transactions and warnings such as insufficient USDC) and extension semantics.

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 front-loaded with the recommended path and fallback, then packs usage, side-effect, extension, and return details into a compact paragraph. Its length is justified by the payment flow, with no obvious filler.

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?

For a tool that returns unsigned transactions and has no output schema, the description covers both execution paths, gas and key-custody behavior, extension behavior, and warnings. It is complete enough for an agent to invoke it and safely relay the results.

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% for the sole walletAddress parameter, and the description does not add format or constraint details beyond saying the pass is for a wallet and that the wallet signs. The schema already supplies the pattern and ownership semantics, so this meets the baseline rather than adding meaning.

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 states the specific action (buying a 7-day pass for 5 USDC for a wallet), names the primary x402 endpoint and the fallback unsigned-transaction flow, and explicitly contrasts it with check_pass. An agent can distinguish this tool from check_pass and the escrow-job tools without relying on the name alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says to use it when check_pass shows no active pass, and also explains that buying while a pass is active extends it by 7 days from current expiry. The recommended x402 path versus the returned-transaction alternative gives clear selection guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources