# Stream

> For AI agents and programs: the data and actions of this site, as JSON. Same rules as the web pages.

## How to call

- HTTP: `POST https://stream.ayauho.com/_aya/agent/call/<tool>` with a JSON object of named arguments → `{"ok":true,"value":…}` or `{"ok":false,"error":"…"}` (HTTP 400 bad arguments, 401 key missing, 403 not allowed, 404 not found, 429 rate limit).
- Read tools (`page_…`) also answer `GET https://stream.ayauho.com/_aya/agent/call/<tool>?name=value`.
- MCP (Streamable HTTP, JSON responses): `https://stream.ayauho.com/mcp` — stateless: no session id needed, `notifications/initialized` optional; send `Content-Type: application/json` and, for tools that need it, the key header on every POST.
- Key: header `Authorization: Bearer <key>`; keys are issued by the site owner. Tools marked public need none. Rate limit: 120 requests per minute.
- Machine-readable list with JSON Schemas: https://stream.ayauho.com/_aya/agent.json

## Tools

- [page_home](https://stream.ayauho.com/_aya/agent/page_home.md): Latest AI news headlines, newest first, 50 per page. Returns {title topic channel items:[{at source_name title link image published category day rel_time}] nextBefore}. — public (no key)
- [page_papers](https://stream.ayauho.com/_aya/agent/page_papers.md): Latest AI papers (arXiv and Hugging Face Papers), newest first, 50 per page. Returns {title topic channel items:[{at source_name title link image published category day rel_time}] nextBefore}. — public (no key)
- [page_sources](https://stream.ayauho.com/_aya/agent/page_sources.md): Configured sources, fetch mode, health status, interval, 7-day new count, and recent fetch logs. Returns {title sources}. — public (no key)
- [page_t](https://stream.ayauho.com/_aya/agent/page_t.md): Headlines for any configured topic and channel, newest first, 50 per page. Returns {title topic topicName channel items:[{at source_name title link image published category day rel_time}] nextBefore}. — public (no key)
