Checks whether a Polymarket market is well-defined and safe to trade before an agent takes a position
Parameters
marketstringrequired— Polymarket market slug (e.g. 'will-bitcoin-reach-150k-in-2026'), numeric Gamma market id, or a polymarket.com market URL (the last path segment is used).