Title96/100
Get ERC-20 allowances
The title clearly communicates the tool’s action and subject. Keep it concise.
Description98/100
Returns the Permit2 and LiquidityPool allowances for the given (chainId, address, token) tuples. chainId values come from swap_get_config (e.g. "101" for Ethereum), not standard EVM chain IDs. token is an asset symbol such as USDT; each result echoes it back as token and also reports the underlying contract as tokenAddress. Allowances are returned as human-readable decimal amounts. A per-result error field is set when a single chain could not be read. Useful for telling the user whether an approve is required before swapping. Read-only.
The description explains the capability, when to use it, and what to expect.
Inputs96/100
Input documentation gives an agent enough context to populate the arguments.
queries › items › chainId
the chain id from swap_get_config (e.g. 101 for Ethereum), NOT a standard EVM chain id
Clear enough to supply this argument.
queries › items › address
the wallet address to check allowances for
Clear enough to supply this argument.
queries › items › token
optional token symbol; if empty, returns all tokens for chain+address
Clear enough to supply this argument.
Annotations75/100
Declare idempotentHint based on the tool’s actual behavior.
{
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}Output schema64/100
Describe the returned fields so an agent can interpret the result.
View output schema
{
"type": "object",
"required": [
"results"
],
"properties": {
"results": {
"type": [
"null",
"array"
],
"items": {
"type": "object",
"required": [
"chainId",
"address",
"token"
],
"properties": {
"error": {
"type": "string"
},
"token": {
"type": "string"
},
"address": {
"type": "string"
},
"chainId": {
"type": "string"
},
"tokenAddress": {
"type": "string"
},
"allowancePool": {
"type": "string"
},
"allowancePermit2": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}