---
title: "Ask the index a question in plain words; Claude answers from the index's own MCP tools only and lists the calls it made"
method: POST
path: "/api/ask"
---

# Ask the index a question in plain words; Claude answers from the index's own MCP tools only and lists the calls it made

`POST /api/ask`

## Request

- Base URL: `https://directindex.org`
- URL: `https://directindex.org/api/ask`
- Auth: one of:
  - none
  - HTTP bearer

## Request body

- object
  - `question` string, required

## Response `200`

question, answer (Markdown), calls (tool, args, label), model, at, cached

## Other responses

- `400`: No question
- `429`: 10 questions a day per address without a key, 100 per key, and a daily cap for everyone
- `502`: The model did not answer

---

[API](https://skmtc.dev/directindex/apis/the-direct-index-api.md) · [All operations](https://skmtc.dev/directindex/apis/the-direct-index-api/llms.txt) · [OpenAPI document](https://skmtc.dev/directindex/apis/the-direct-index-api/revisions/c3390f276403?raw)
