Endpoints
| URL | Content | Size |
|---|---|---|
docs.nilemarkets.com/llms.txt | Page index with titles and descriptions | Compact |
docs.nilemarkets.com/llms-full.txt | Full rendered content of every page | Large |
docs.nilemarkets.com/.well-known/llms.txtdocs.nilemarkets.com/.well-known/llms-full.txt
How It Works
Mintlify auto-generates both files from page frontmatter. Every MDX page with atitle and description in its YAML frontmatter is included automatically.
description field becomes the page summary in llms.txt. This is why every page description in the Nile Markets docs is a self-contained sentence describing the key concept or formula — not a generic “Learn about X” placeholder.
Auto-Discovery
Mintlify adds an HTTPLink header to every page response:
llms-txt link relation can discover the index automatically from any page on the docs site.
Feeding Docs to an Agent
Full Context Loading
For agents with large context windows, load the complete documentation:Selective Loading
For smaller context budgets, start with the index and fetch individual pages:Markdown Export
Any page URL on the docs site supports Markdown export via two methods:- File extension: append
.mdto the URL path (e.g.,docs.nilemarkets.com/protocol/pnl.md) - Accept header: request with
Accept: text/markdown
Page Description Best Practices
Thellms.txt index is only as useful as the page descriptions. Nile Markets docs follow these conventions:
Good Descriptions
Self-contained sentences that include the key formula, parameter, or concept.
- “PnL = notional x (currentPrice - entryStrike) / PRICE_PRECISION for LONG; losses capped at locked margin”
- “Initial margin = notional / leverage; maintenance = initial x 80%”
- “Connect AI agents directly to the Nile Markets subgraph via The Graph’s hosted MCP server”
Avoid
Generic placeholders that don’t help an LLM decide whether to read the page.
- “How profit and loss is calculated”
- “Learn about margin requirements”
- “Overview of the MCP integration”