# Read-only research tool reference

Generated from the runtime contract. Version 1.1.0.

Connect anonymously to `https://decentralized-finance.io/api/mcp`. Call `tools/list` to discover the deployed schemas. These tools cannot connect a wallet, execute transactions or publish content.

Content filters: `all`, `protocols`, `stablecoins`, `ecosystems`, `comparison`, `glossary`, `token`, `guide`, `answer`, `news`, `leader`, `help`, `path`, `research`, `hub`, `tool`.

## search_defi

Search the Decentralized Finance Publication corpus — DeFi protocol guides, stablecoin and ecosystem research, head-to-head comparisons, the glossary, beginner guides, token entity pages, news, industry-leader profiles, reader help, learning paths and research tools. Returns titles, canonical URLs, IDs and summaries in text and structured JSON. Follow up with get_document.

Arguments: `query` (required), `kind` (optional), `limit` (optional).

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search_defi",
    "arguments": {
      "query": "data freshness",
      "kind": "help",
      "limit": 3
    }
  }
}
```

## get_document

Fetch one indexed DFR page as Markdown when a mirror exists, or return a labelled summary. Use search_defi first. Prefer the canonical URL; a bare slug must be unique. Do not call this for every search hit — pick the best match.

Arguments: `slug` (required).

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_document",
    "arguments": {
      "slug": "https://decentralized-finance.io/help/data-freshness-and-limitations/"
    }
  }
}
```

## list_top_protocols

Ranked DeFi protocols from the most recent build-time DeFiLlama TVL snapshot. Returns the snapshot date — these figures are not live, so always cite the date.

Arguments: `category` (optional), `chain` (optional), `limit` (optional).

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_top_protocols",
    "arguments": {
      "category": "Lending",
      "limit": 5
    }
  }
}
```

## explain_term

Define a DeFi or crypto term from the DFR glossary, with links to related research.

Arguments: `term` (required).

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "explain_term",
    "arguments": {
      "term": "impermanent loss"
    }
  }
}
```

Search and TVL tools return structured JSON alongside compatible text. TVL includes `asOf` and `live: false`; cite the snapshot date. Document retrieval uses canonical paths before slugs and reports ambiguity. It tries the Markdown twin and an existing text mirror, then explicitly labels any summary fallback.

In browsers that support WebMCP (`document.modelContext`), the site registers these same tools: the page calls `tools/list` and `tools/call` on `/api/mcp`. A2A accepts `read https://decentralized-finance.io/article/aave/` for document retrieval, simple glossary questions or keyword search. See [agent access](https://decentralized-finance.io/auth.md) for limits and reuse terms.
