Overview
grantex enforce test lets you dry-run scope enforcement against a real grant token without writing any code. Pass a token, connector, and tool name to see whether the call would be allowed or denied, and why.
grantex enforce test
Test whether a grant token permits a specific tool call.Allowed Example
Denied Example
Capped Scopes
Use the--amount flag to test enforcement against capped scopes:
JSON Output
Use--json for machine-readable output, useful for scripting and CI pipelines:
Options
| Flag | Description |
|---|---|
--token <jwt> | The grant token to test against (required) |
--connector <name> | The connector name (required) |
--tool <name> | The tool name (required) |
--amount <number> | Amount to test against capped scopes |
--json | Output machine-readable JSON |
Exit Codes
| Code | Meaning |
|---|---|
0 | Tool call is allowed |
1 | Tool call is denied |
2 | Usage error (missing arguments, invalid token) |
Related Commands
| Command | Description |
|---|---|
grantex manifest list | Browse all 54 pre-built tool manifests |
grantex manifest show <connector> | Inspect tools and permissions for a connector |
grantex manifest validate | Validate agent tools against a manifest |
grantex verify | Inspect a grant token’s scopes, expiry, and delegation chain |