How to find trending Solana pools and check a token with MCP
Call find_new_hot_pools with the chain and
listing=trending to get a shortlist. Each eligible row includes
assessment_args for a separate token risk check.
Find pools
Choose which pools to look at
The default mixed listing puts new pools before trending pools. A small
limit can therefore return only new pools. Select trending to take the
provider's trending order on the requested network before applying the limit. This is a
listing snapshot. It can miss newly created pools between reads.
scanned counts distinct pools examined in this response and
count counts the rows returned. Check sources_ok and
sources_failed. A mixed scan can return partial when one
listing fails. A trending-only scan reports an error if that listing fails. A successful
empty list means the selected source answered with no rows. served_stale,
when present, identifies cached fallback data and its age.
Run a shortlist and check its first token
This Python 3 example uses the standard library. It reads up to three Solana
trending pools and sends the first row's token and network unchanged to
assess_token_risk when the handoff is available. It needs no key or wallet.
import json
import re
from urllib.request import Request, urlopen
def call(name, arguments):
payload = {"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {"name": name, "arguments": arguments}}
request = Request("https://vetagent.dev/mcp", data=json.dumps(payload).encode(),
headers={"User-Agent": "PoolDiscoveryExample/1.0",
"Content-Type": "application/json",
"Accept": "application/json, text/event-stream"})
with urlopen(request, timeout=30) as response:
reply = json.load(response)
if "error" in reply or reply["result"].get("isError"):
raise RuntimeError(f"{name} failed")
return reply["result"]["structuredContent"]
def token_key(address, chain):
if not isinstance(address, str):
return None
if chain != "solana":
return address.lower() if re.fullmatch(r"0x[0-9a-f]{40}", address, re.I) else None
alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
if not 32 <= len(address) <= 44 or any(char not in alphabet for char in address):
return None
value = 0
for char in address:
value = value * 58 + alphabet.index(char)
size = (value.bit_length() + 7) // 8 + len(address) - len(address.lstrip("1"))
return address if size == 32 else None
def matches_target(reply, target):
chain = target.get("chain_hint")
if chain not in ("solana", "ethereum", "base", "bsc", "arbitrum", "optimism", "polygon", "avalanche"):
return False
wanted = token_key(target.get("address"), chain)
if not wanted or token_key(reply.get("address"), chain) != wanted:
return False
evidence = reply.get("evidence") or {}
if not isinstance(evidence, dict):
return False
pair = evidence.get("best_pair") or {}
if (evidence.get("chain_searched") != chain or not isinstance(pair, dict)
or pair.get("chain", chain) != chain):
return False
if "network_selection" not in reply:
return True
selection = reply["network_selection"]
return (isinstance(selection, dict) and selection.get("status") == "matched"
and selection.get("requested_chain") == chain and selection.get("returned_chain") == chain)
scan = call("find_new_hot_pools", {"chain": "solana", "listing": "trending", "limit": 3})
print(f"{scan['count']} returned from {scan['scanned']} observed pools")
if scan["status"] != "ok":
print("Incomplete scan. Check sources_failed before using this list.")
elif scan.get("served_stale"):
print("Cached fallback. Recheck the listing before using it as current.")
elif not scan["pools"]:
print("The observed listing was empty.")
else:
target = scan["pools"][0].get("assessment_args")
if not target:
print("The first row has no token handoff. Skip it.")
else:
risk = call("assess_token_risk", target)
if not matches_target(risk, target):
print("The assessment did not confirm this token and network. Skip this result.")
elif risk["risk_level"] == "unknown":
print("Unknown risk. Pause and inspect evidence.data_gaps.")
else:
print(risk["risk_level"], risk.get("recommendation", ""))
Consider pool age, current liquidity and 24-hour volume together. Missing values
leave those observations unknown. A trending entry cannot establish sustained funding
or whether a holder can sell. pool_id identifies the discovered venue.
The next call uses the token address in assessment_args and can select
another pool. Verify the returned token address and evidence.chain_searched, and reject
conflicting network metadata. Even when both match, the verdict alone cannot establish
whether the discovered pool was tested. No sell test
runs on Solana. If the verdict is unknown, keep
automated action paused.
Recheck the pool shown in a discovery row
When the row includes liquidity_args, pass it unchanged to
get_token_liquidity. This requests the discovered pool from the provider
that listed it. Check market_selection to see whether the provider could
confirm the same pool on the recheck. The discovery row shows the listing provider's
USD liquidity estimate. A matched recheck can return unpriced if VetAgent
cannot price either reserve asset independently. In the list above, choose
Recheck this pool to see its source, market retrieval time and
available figures. If the original GeckoTerminal lookup is unavailable, you can
request a separate CoinGecko observation for a compatible pool.
Check token risk and simulation scope runs a strict network assessment. It compares the listed pool with the pool actually named by the simulation provider. An exact identity match and reported simulation completion answer separate questions. The result cannot establish execution for a specific holder, amount or route.
Discovery fields
These tables use the same schema as the MCP server's tools/list.
Request fields
| Field | Contract |
|---|---|
chain | string, default solana |
limit | integer, default 10, 1 to 50 |
listing | string, mixed / trending, default mixed |
min_liquidity_usd | number |
min_volume_24h_usd | number |
require_activity_both_windows | boolean, default False |
Response fields
| Field | Contract |
|---|---|
status | string, ok / partial, required |
listing | string, trending |
chain | string, required |
network | string, required |
count | integer, required |
scanned | integer, required |
matched_count | integer |
sources_ok | array, required |
sources_failed | array, required |
checked_at | string |
served_stale | array |
pools | array, required |
Fields in each pool row
| Field | Contract |
|---|---|
pool_id | string, required |
name | string, required |
token_address | string, required |
assessment_args | object |
liquidity_args | object |
kind | string, new / trending, required |
price_usd | number or null |
liquidity_usd | number or null |
volume_24h_usd | number or null |
trade_activity | object |
pool_age_days | integer or null |
Full input and output JSON schemas
{
"name": "find_new_hot_pools",
"inputSchema": {
"type": "object",
"properties": {
"chain": {
"type": "string",
"default": "solana",
"description": "Chain name, e.g. solana / ethereum / base / bsc"
},
"limit": {
"type": "integer",
"default": 10,
"minimum": 1,
"maximum": 50
},
"listing": {
"type": "string",
"enum": [
"mixed",
"trending"
],
"default": "mixed",
"description": "mixed scans new then trending; trending scans only that listing."
},
"min_liquidity_usd": {
"type": "number",
"minimum": 0,
"description": "Minimum observed USD liquidity, inclusive."
},
"min_volume_24h_usd": {
"type": "number",
"minimum": 0,
"description": "Minimum observed 24-hour USD volume, inclusive."
},
"require_activity_both_windows": {
"type": "boolean",
"default": false,
"description": "Require trades in the last hour and preceding five hours."
}
}
},
"outputSchema": {
"type": "object",
"description": "Discovery only, never an endorsement. Use assessment_args when present to preserve the discovered chain preference; do not guess when it is absent. Require returned evidence.chain_searched to match its chain_hint before using the result.",
"properties": {
"status": {
"type": "string",
"enum": [
"ok",
"partial"
],
"description": "Completeness only, in the default mixed view: ok means both listings were observed; partial means only one usable listing was observed. This is not a token risk verdict or a safety endorsement. With listing=trending, ok means the selected listing was observed, including an empty list; new is not requested."
},
"listing": {
"type": "string",
"enum": [
"trending"
],
"description": "Present only for the explicitly selected trending scope; absent for mixed."
},
"chain": {
"type": "string"
},
"network": {
"type": "string",
"description": "The upstream's own name for the chain, which differs from `chain` (eth vs ethereum)."
},
"count": {
"type": "integer",
"description": "How many pools are in `pools`. NOT how many were examined -- that is `scanned`. This field reported the fetched total beside a shorter list until 2026-09-08, so a caller reading it believed it had seen twenty pools when it had three."
},
"scanned": {
"type": "integer",
"description": "How many distinct pools were examined before the limit was applied. Always >= count."
},
"matched_count": {
"type": "integer",
"minimum": 0,
"description": "Observed pools meeting the supplied filters before the limit."
},
"sources_ok": {
"type": "array",
"items": {
"type": "string",
"enum": [
"new",
"trending"
]
},
"description": "Which of the two upstream listings answered. Both means a full mixed scan. In trending mode only the selected trending listing is requested."
},
"sources_failed": {
"type": "array",
"items": {
"type": "string",
"enum": [
"new",
"trending"
]
},
"description": "Which requested listings did NOT answer. Unrequested listings are not failures. A non-empty array means this is a PARTIAL scan: a smaller `scanned` here is a coverage gap, not a quiet market. Treat it as missing information, not as absence."
},
"checked_at": {
"type": "string",
"description": "When this answer was made, ISO-8601 UTC."
},
"served_stale": {
"type": "array",
"items": {
"type": "object"
},
"description": "Present only when an upstream was unreachable and cached data was used. Each entry names the source and its age in seconds."
},
"pools": {
"type": "array",
"items": {
"type": "object",
"properties": {
"pool_id": {
"type": "string",
"description": "Valid 20-byte/32-byte EVM or Solana base58 pool IDs remain complete, preserving case and any matching network prefix. Other values retain escaped display text capped at 64 input characters plus an ellipsis; they are not complete identities. This identifies the discovered pool, not the assessment's selected market or simulator venue."
},
"name": {
"type": "string"
},
"token_address": {
"type": "string",
"description": "The base token. Use assessment_args for the chain preference, then verify the returned chain; pool_id is not a token address."
},
"assessment_args": {
"type": "object",
"description": "Arguments preserving the selected chain preference, not a strict lock. Omitted for invalid or wrong-family addresses or unsupported networks. Check returned evidence.chain_searched against chain_hint before use.",
"properties": {
"address": {
"type": "string"
},
"chain_hint": {
"type": "string"
}
},
"required": [
"address",
"chain_hint"
],
"additionalProperties": false
},
"liquidity_args": {
"type": "object",
"description": "Pass unchanged to get_token_liquidity to recheck the discovered pool with the same provider. Omitted without a consistent pool and token identity.",
"properties": {
"address": {
"type": "string"
},
"chain_hint": {
"type": "string"
},
"market_ref": {
"type": "object",
"additionalProperties": false,
"description": "Exact market from a previous listing. Only this chain, provider and complete identity can match.",
"required": [
"chain",
"source"
],
"oneOf": [
{
"required": [
"pool_id"
],
"not": {
"required": [
"market_id"
]
}
},
{
"required": [
"market_id",
"dex"
],
"not": {
"required": [
"pool_id"
]
}
}
],
"properties": {
"chain": {
"type": "string"
},
"source": {
"enum": [
"dexscreener",
"coingecko",
"geckoterminal"
]
},
"pool_id": {
"type": "string"
},
"market_id": {
"type": "string",
"minLength": 128,
"maxLength": 128,
"pattern": "^0x[0-9a-fA-F]{40}(?:-0x[0-9a-fA-F]{40}){2}$",
"description": "Full DexScreener Ethereum Curve or Balancer market ID. For market rechecks only."
},
"dex": {
"type": "string",
"description": "Venue ID, required for a composite market ID."
}
}
}
},
"required": [
"address",
"chain_hint",
"market_ref"
],
"additionalProperties": false
},
"kind": {
"type": "string",
"enum": [
"new",
"trending"
]
},
"price_usd": {
"type": [
"number",
"null"
]
},
"liquidity_usd": {
"type": [
"number",
"null"
],
"description": "USD liquidity estimate from the provider's listing. A recheck of this pool may return unpriced."
},
"volume_24h_usd": {
"type": [
"number",
"null"
]
},
"trade_activity": {
"type": "object",
"description": "Buys plus sells for this pool in the last hour and the five hours before it, as of the listing observation. Can be reported for a verified market without a USD estimate. Omitted when the provider's counts are missing or inconsistent.",
"properties": {
"trades_last_1h": {
"type": "integer",
"minimum": 0
},
"trades_prior_5h": {
"type": "integer",
"minimum": 0
}
},
"required": [
"trades_last_1h",
"trades_prior_5h"
]
},
"pool_age_days": {
"type": [
"integer",
"null"
]
}
},
"required": [
"pool_id",
"name",
"token_address",
"kind"
]
}
}
},
"required": [
"status",
"chain",
"network",
"count",
"scanned",
"sources_ok",
"sources_failed",
"pools"
]
}
}See the API integration guide for client setup and the assessment method for the limits of the follow-up check.