Skip to main content
The Python example calls accounts.list and prints the response. It uses httpx and the wrapper in src/glide_client.py. It does not mint tokens, initiate payments or generate settlement receipts.

Prerequisites

Use Python 3.11 or later and an MCP gateway that exposes accounts.list. Obtain an active grant with accounts:read through your configured authorization server.

Run the example

From the product repository:
Set GLIDE_GRANT_TOKEN and, if needed, GLIDE_BASE_URL in your environment, then run:
The script prints the authorized accounts and fetch timestamp. Missing tokens and API errors exit with a failure. A successful balance or account query does not establish payment availability.

Extend it

Use the tool’s required scope, category and input schema. The caller must handle token renewal, approval responses and payment status. See the MCP tool reference.

Source

Read the Python example. Source access is required.

Next