Skip to main content
Glama

Pre-funded agent session tunnel

open_agent_session

Mints a prepaid $1.00 USDC-backed Bearer session token for Solana or Base, letting subsequent tool calls skip per-call signing; set optional TTL (5–43200 minutes).

Instructions

Mint a prepaid x402s_... Bearer session token backed by a $1.00 USDC deposit (Solana or Base) so subsequent tool calls skip per-call signing. Pass optional ttl_minutes (range 5-43200; default 43200 = 30 days). Returns session_token, balance_usd, and expires_at. Inspect balance later with get_agent_session_status (sessions auto-expire; no close call needed). Do not use for single read calls (call tools directly). Requires HTTP 402 payment ($1.00 USDC).

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": "open_agent_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttl_minutesNoSession lifetime in minutes (default 43200 = 30 days, range 5-43200)
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. Addedv5.6.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true), and the description adds real operational context: a $1.00 USDC deposit, HTTP 402 payment requirement, session auto-expiry, and that no close call is needed. The main gap is that idempotentHint=false is never addressed — it does not say whether calling twice mints (and charges for) a second session, which is the most consequential behavior for an agent to know.

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?

Well front-loaded: the mint action and cost lead, then parameters, then return values, then exclusions. It is a dense single paragraph with some redundancy (the $1.00 amount and ttl range appear twice), but nothing is padded.

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?

An output schema exists, so the return-field mention is a bonus rather than a requirement, and payment/expiry/permissions are all covered. The missing pieces are the repeat-invocation semantics (new session per call vs. reuse) and any guidance on the 402 payment flow itself, which matter for a non-idempotent, paid tool.

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 both parameters are already documented. The description restates ttl_minutes' default and 5-43200 range rather than adding new meaning, and payer_address is not mentioned at all (Solana or Base support is mentioned but not tied to the wallet parameter).

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 opens with a specific verb and resource: 'Mint a prepaid x402s_... Bearer session token backed by a $1.00 USDC deposit (Solana or Base)', plus the effect ('subsequent tool calls skip per-call signing'). That is clearly distinguishable from siblings like get_agent_session_status or the individual data-fetching tools.

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 states when not to use it ('Do not use for single read calls (call tools directly)'), the prerequisite ('Requires HTTP 402 payment ($1.00 USDC)'), and the follow-up path ('Inspect balance later with get_agent_session_status'). The alternative and its selecting condition are both explicit.

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