get-pool-spot-price
Retrieve the current spot price between two tokens in a specific Osmosis liquidity pool to calculate exchange rates and inform trading decisions.
Instructions
Returns the current spot price between two tokens in a pool
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": {
"poolId": "<poolId>",
"baseAssetDenom": "<baseAssetDenom>",
"quoteAssetDenom": "<quoteAssetDenom>"
},
"name": "get-pool-spot-price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poolId | Yes | The ID of the liquidity pool | |
| baseAssetDenom | Yes | The base asset denomination | |
| quoteAssetDenom | Yes | The quote asset denomination |