Skip to main content
Glama

x402_agentid_get_v1_session_sid

Retrieve a signed agent session token by SID to verify its signature, expiry, and on-chain payment binding. Use it to confirm a bearer token is valid before trusting an agent.

Instructions

agentid — Mint verifiable signed session tokens for AI agents. POST /v1/session ($0.001) issues an HMAC-signed bearer token; because minting is paid, the session is bound on-chain to the payer wallet + tx hash. GET /v1/session/{sid} and POST /v1/verify are free — anyone can verify a token's signature, expiry, and bound payment. [GET /v1/session/{sid}] $0.01 USDC on eip155:8453+137+42161+480. Example: /v1/session/{uuid}

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

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It does disclose valuable behavior — on-chain binding to payer wallet + tx hash, and supported chains eip155:8453/137/42161/480 — but it self-contradicts on cost: it states "GET /v1/session/{sid} and POST /v1/verify are free" and then labels the same GET endpoint "$0.01 USDC". An agent cannot tell whether this call charges money, which is exactly the fact that matters most for a paid x402 endpoint.

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

Conciseness3/5

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

Sentences are dense but largely about the family rather than this endpoint; the first sentence ("Mint verifiable signed session tokens") describes POST, not this GET. The identifying information is buried in a trailing bracket, which is poor front-loading, though no sentence is purely padding.

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

Completeness3/5

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

Payment chains, on-chain binding, and sid shape are covered, and the schema handles the retry/dedupe parameters. However, with no output schema the description should say what a session record contains (token, expiry, payer binding), and the unresolved free-vs-paid contradiction leaves a material gap for a paid endpoint.

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%, and the schema itself explains the body, query, restart, and operationId semantics in detail. The description adds nothing about parameters besides the sid path component. Baseline 3 applies since the schema already does the work.

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

Purpose3/5

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

The tool's actual identity appears only in the trailing bracketed line: "[GET /v1/session/{sid}]" with example "/v1/session/{uuid}". The bulk of the text describes the agentid service as a whole (minting via POST, verification via POST /v1/verify), so the agent must read to the end to learn this is a retrieval-by-sid call. Verb and resource are identifiable, but not front-loaded and not cleanly separated from the sibling endpoints.

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 implicitly routes: POST /v1/session mints (paid), POST /v1/verify verifies, this endpoint retrieves an existing session by sid. That is useful sibling context, but there is no explicit "use this when you already have a sid" statement or any exclusion guidance distinguishing when to fetch the session vs. call verify.

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

Deploy Server

Other Tools