> ## Documentation Index
> Fetch the complete documentation index at: https://glide-9da73dea.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Python quickstart

> Run the Python accounts.list example using httpx and an authorized Glide grant.

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:

```bash theme={null}
cd examples/python-quickstart
python -m venv .venv
source .venv/bin/activate
python -m pip install -e .
```

Set `GLIDE_GRANT_TOKEN` and, if needed, `GLIDE_BASE_URL` in your environment, then run:

```bash theme={null}
python src/main.py
```

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](https://glide-9da73dea.mintlify.site/agents/api/index.md).

## Source

[Read the Python example](https://github.com/glide-co/glide-mono/tree/main/examples/python-quickstart). Source access is required.

## Next

* [OAuth flow](https://glide-9da73dea.mintlify.site/oss/headless/oauth-flow.md)
* [Agent pays vendor](https://glide-9da73dea.mintlify.site/cookbook/agent-pays-vendor.md)
* [Step-up approvals](https://glide-9da73dea.mintlify.site/agents/step-up.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.