get_cached_metadata
Check if contract metadata is cached before decoding to avoid re-transmitting ABI and save tokens. Returns cache status, token savings, and verification.
Instructions
Diagnostic: retrieve cached metadata status for a contract.
Use this to check if metadata is cached before making decode calls. Cached metadata provides significant token savings by avoiding re-transmission of full ABI and format definitions.
Returns:
Cache status (found/not found)
Approximate token count saved
Verification status
Cache statistics (hit rate, total entries)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contractAddress": "<contractAddress>"
},
"name": "get_cached_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | No | Chain ID | |
| contractAddress | Yes | Contract address to check (0x...) |