# resources and prompts

Beyond tools, the MCP server provides 2 resources (read-only data) and 2 prompts (structured analysis templates).

## Resources

Resources are read-only data endpoints that AI clients can subscribe to or fetch on demand.

### trending-markets

**URI**: `yesno://trending-markets`

Returns the top 20 markets by 24-hour volume. Updated in real-time from the Gamma API.

Each market includes:

* Question text
* Current YES price
* 24h change
* Volume
* Auto-classified sector

Use case: Quick overview of what's active. Good as context for follow-up analysis.

### sector-overview

**URI**: `yesno://sector-overview`

Snapshot of all 8 sectors with aggregate metrics.

Each sector includes:

* Market count
* Average YES probability
* Total volume
* Notable movers

Use case: Sector-level pulse check. Identify which sectors have unusual activity.

***

## Prompts

Prompts are pre-built analysis templates that AI clients can invoke. They structure the AI's approach to common tasks.

### analyze-market

**Name**: `analyze-market`

Full quantitative analysis of a single market. When invoked, the prompt instructs the AI to:

1. Fetch market data using `get_markets`
2. Get enriched signals using `get_market_signals`
3. Run AI analysis using `get_market_analysis`
4. Check whale flow using `get_whale_trades`
5. Synthesize into a structured report covering:
   * Verdict (YES/NO) with confidence
   * Composite probability vs market price
   * Key signals (momentum, whale flow, smart money)
   * Risk factors
   * Position sizing recommendation

Arguments:

| Parameter | Type   | Required | Description                   |
| --------- | ------ | -------- | ----------------------------- |
| `market`  | string | Yes      | Market question or identifier |

### compare-markets

**Name**: `compare-markets`

Side-by-side comparison of two or more markets. When invoked, the prompt instructs the AI to:

1. Fetch data for each market
2. Get signals for each
3. Compare across dimensions:
   * Price and momentum
   * Volume and liquidity
   * Signal alignment
   * Risk/reward profile
4. Recommend which market offers the better opportunity

Arguments:

| Parameter | Type   | Required | Description                                     |
| --------- | ------ | -------- | ----------------------------------------------- |
| `markets` | string | Yes      | Comma-separated market questions or identifiers |

## Using Prompts

In Claude Desktop or Cursor, you can invoke prompts directly:

{% hint style="info" %}
For example: "Use the analyze-market prompt on 'Will the Fed cut rates in March?'"

The AI will follow the structured analysis flow, calling the appropriate tools in sequence.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yesno-1.gitbook.io/yesno-docs/mcp-server/resources-and-prompts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
