Skip to main content
Glama

Pre-funded agent session tunnel

agent_session_open

Opens a prepaid $1 USDC session that mints an HMAC-signed Bearer token for high-frequency API calls with atomic balance debits; use direct x402/MPP for single paid calls or read-only checks.

Instructions

[$1.00] Deposit $1.00 USDC once to mint an HMAC-signed Bearer session token (x402s_...) for zero-402 high-frequency API calls with atomic balance debits. Do not use for single paid calls or read-only checks (call any tool directly with x402/MPP). Every call charges $1.00 USDC and mints a fresh x402s_... Bearer session (does not top up prior sessions); ttl_minutes sets expiry and payer_address binds ownership. Persists prepaid meter in SQLite (non-custodial); requires x402/MPP at 30-60 req/min.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "agent_session_open"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttl_minutesNoSession lifetime in minutes (default 60, max 1440)
payer_addressNoEVM wallet address opening the session (0x...)

Output Schema

NameRequiredDescriptionDefault
cachedNo
endpointNo
expires_atNo
session_idNo
deposited_usdNo
payer_addressNo
remaining_usdNo
session_tokenNo
schema_versionNo
auth_header_exampleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv5.3.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only say this is non-read-only, open-world, non-idempotent and non-destructive; the description adds cost ($1.00 USDC), that each call mints a fresh token rather than topping up an existing one, TTL and payer binding, SQLite-backed prepaid metering, and non-custodial handling. That is substantial disclosure beyond the annotations. The deduction is for a lingering ambiguity between 'Deposit $1.00 once' and 'Every call charges $1.00 ... and mints a fresh session', which leaves unclear whether repeated use stacks cost or reuses the deposit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the price tag and the core mint action, and nearly every clause carries operational meaning. It is dense but not padded, though the price is stated twice and the run-on sentence about charging plus minting could be split for readability.

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?

Because an output schema exists, return values need not be described, and the definition still covers auth mechanics, cost, rate limits, and storage model. What remains unstated is the behavior at expiry or whether unused prepaid balance is recoverable, which matters for a paid session-minting tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both parameters are already documented and the baseline is 3. The description still adds real semantics: ttl_minutes governs session expiry and payer_address binds session ownership, which tells the agent why the address matters beyond its type.

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?

States a specific verb and artifact: mint an HMAC-signed Bearer session token (x402s_...) enabling zero-402 high-frequency calls with atomic balance debits. It also distinguishes itself from the rest of the catalog by declaring that single paid calls and read-only checks should go through x402/MPP directly rather than this tool.

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?

Explicit both ways: use it for high-frequency call batches, do NOT use it for single paid calls or read-only checks, and the alternative (call any tool directly with x402/MPP) is named. The 30-60 req/min environment it targets is also stated, so an agent knows the workload profile that justifies the purchase.

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