Tool Overview
| Tool | Description |
|---|---|
get_asset_price | Fetch the current on-chain price for a single asset |
get_multiple_prices | Fetch prices for multiple assets in a single call |
get_derived_pair | Get a cross-asset price between two supported feeds |
get_supported_assets | List all currently supported assets and their IDs |
get_asset_id | Resolve a symbol string to its bytes32 asset ID |
check_price_freshness | Check the age and freshness status of a price feed |
get_network_info | Return contract addresses and RPC details for all supported networks |
get_asset_price
Fetches the current on-chain price for a single supported asset directly from the deployed oracle contract.
Inputs
| Parameter | Type | Required | Description |
|---|---|---|---|
asset | string | Yes | Asset symbol in "SYMBOL/USD" format — e.g. "USDT/USD", "CNGN/USD" |
network | string | No | Target network. Defaults to base-mainnet. Options: base-mainnet, base-sepolia, assetchain-testnet |
Output
Usage Notes
priceis the human-readable value after decimal scaling. Use this for display and LLM responses.raw_priceis the unscaledint256value from the contract. Use this when passing the value to Solidity logic.age_secondsis computed at the time of the tool call. It reflects how long ago the oracle was last updated, not how long ago you queried it.- If the asset is not supported, the tool returns an error with
"error": "asset_not_supported".
Example Prompt
“What is the current USDT/USD price on Base Mainnet?”
get_multiple_prices
Fetches current on-chain prices for multiple assets in a single RPC call. More efficient than calling get_asset_price repeatedly when you need several feeds at once.
Inputs
| Parameter | Type | Required | Description |
|---|---|---|---|
assets | string[] | Yes | Array of asset symbols in "SYMBOL/USD" format |
network | string | No | Target network. Defaults to base-mainnet |
Output
Usage Notes
- Results are returned in the same order as the input
assetsarray. - Each result includes an
existsfield. Iffalse, that asset is not supported and its price fields will be zero. - Always check
existsbefore using a price from a batch result.
Example Prompt
“Get the current prices for USDT, CNGN, and ZARP from IFÁ Labs.”
get_derived_pair
Computes a cross-asset price between two supported feeds using the oracle’s derived pair functions. For example: how much USDT is one CNGN worth, or how much CNGN is one USDT worth.
Inputs
| Parameter | Type | Required | Description |
|---|---|---|---|
asset0 | string | Yes | The asset being priced — e.g. "CNGN/USD" |
asset1 | string | Yes | The denominator asset — e.g. "USDT/USD" |
direction | string | No | "forward" (asset0 in asset1 terms) or "backward" (asset1 in asset0 terms). Defaults to "forward" |
network | string | No | Target network. Defaults to base-mainnet |
Output
Usage Notes
"forward"direction means: how much ofasset1is one unit ofasset0worth?"backward"direction means: how much ofasset0is one unit ofasset1worth?- The
interpretationfield is a plain-language summary of the derived price — useful for LLM responses and user-facing output. - Both underlying USD feeds must be fresh for the derived pair to return a valid result. If either feed is stale, the tool returns a staleness error.
Example Prompts
“How much USDT is one CNGN worth right now?”
“What is the ZARP to USDC exchange rate according to IFÁ Labs?”
get_supported_assets
Returns the complete list of all currently supported assets, including their symbol strings, bytes32 asset IDs, categories, and available networks.
Inputs
| Parameter | Type | Required | Description |
|---|---|---|---|
network | string | No | Filter by network. Returns assets available on that network. Defaults to all networks. |
Output
Usage Notes
- The
categoryfield distinguishes global stablecoins, emerging-market stablecoins, and reference assets like ETH. - This tool does not make an RPC call — asset metadata is resolved locally from the server’s configuration. It is the fastest tool call available.
- Use this tool at the start of any workflow that needs to discover or validate which assets are available before querying prices.
Example Prompt
“Which stablecoins does IFÁ Labs currently support?”
get_asset_id
Resolves an asset symbol string to its bytes32 asset ID. Useful for developers who need to verify an ID before hardcoding it in a contract, or for AI workflows that need to translate a human-readable symbol into an on-chain identifier.
Inputs
| Parameter | Type | Required | Description |
|---|---|---|---|
symbol | string | Yes | Asset symbol string — e.g. "USDT/USD" or "CNGN/USD" |
Output
Usage Notes
- The
generation_methodfield shows exactly how the asset ID was derived — allowing independent verification. verified: trueconfirms the asset ID exists as an active feed in the deployed contract.verified: falsemeans the ID was generated correctly but no feed exists for it yet.- Symbol strings are case-sensitive.
"usdt/usd"and"USDT-USD"will not match. Always use uppercase with a forward slash:"USDT/USD".
Example Prompt
“What is the IFÁ Labs asset ID for ZARP/USD?”
check_price_freshness
Checks the age of a price feed and evaluates whether it meets a given staleness threshold. Returns the raw age, a freshness verdict, and the time remaining before the feed would be considered stale.
Inputs
| Parameter | Type | Required | Description |
|---|---|---|---|
asset | string | Yes | Asset symbol in "SYMBOL/USD" format |
max_age_seconds | integer | No | Maximum acceptable age in seconds. Defaults to 3600 (1 hour) |
network | string | No | Target network. Defaults to base-mainnet |
Output
Usage Notes
is_freshis the primary signal.truemeans the feed is within the specifiedmax_age_secondsthreshold.time_until_stale_secondsis only present whenis_freshistrue. It tells you how long until the feed would breach your threshold at the current update time — useful for scheduling proactive checks.- Use this tool before executing any critical workflow that depends on a fresh price — a deployment, a settlement, a liquidation simulation.
Example Prompts
“Is the CNGN/USD price feed fresh enough to use for a liquidation check?”
“How long until the USDT/USD feed goes stale based on a 30-minute threshold?”
get_network_info
Returns contract addresses, RPC endpoints, chain IDs, and block explorer links for all networks supported by IFÁ Labs.
Inputs
| Parameter | Type | Required | Description |
|---|---|---|---|
network | string | No | Filter to a specific network. Returns all networks if omitted. |
Output
Usage Notes
- Use this tool when building automated workflows that need to programmatically resolve contract addresses or RPC endpoints rather than hardcoding them.
- The
statusfield distinguishes production deployments from testnets. - RPC URLs returned are the public defaults. For production workflows, override with a dedicated provider using the
--rpc-urlserver argument.
Example Prompt
“What is the IFÁ Labs oracle contract address on Base Mainnet?”
Error Reference
All tools return a consistent error format when something goes wrong:| Error Code | Cause | Resolution |
|---|---|---|
asset_not_supported | The requested asset has no feed on the target network | Check get_supported_assets for the full list of available feeds |
price_feed_stale | The feed exists but exceeds the staleness threshold | Widen max_age_seconds or check if a relayer issue is affecting the feed |
network_not_supported | The network parameter value is not recognised | Use one of: base-mainnet, base-sepolia, assetchain-testnet |
rpc_connection_failed | The server could not connect to the configured RPC endpoint | Check your --rpc-url configuration or switch to a dedicated RPC provider |
invalid_symbol_format | The symbol string is malformed | Use uppercase with forward slash: "USDT/USD" not "usdt-usd" |
derived_pair_failed | One or both underlying feeds are unavailable or stale | Check freshness of both feeds individually before retrying |
Next Steps
Example Queries
Practical prompts and real workflows for every MCP client.
MCP Client Compatibility
Detailed compatibility notes for every supported MCP client.

