Install
Google ADK is a peer dependency:
Quick Start
If the grant token doesn’t include the required scope, create_grantex_tool raises a PermissionError immediately.
API Reference
Creates a plain function with the correct __name__ and __doc__ for ADK tool discovery. Before execution it verifies the token against the configured JWKS endpoint and enforces scopes from the verified claims.
Returns unverified scopes decoded from a grant token. Use this only for display or debugging, never for authorization.
decode_jwt_payload(token)
Decodes the payload of a JWT without verifying the signature.
Requirements
- Python 3.9+
grantex >= 0.1.0
google-adk >= 0.2.0 (peer dependency)
Last modified on July 11, 2026