# Use Reducto in LlamaIndex: a FunctionTool and a custom reader

> Wrap the Reducto Python SDK in FunctionTool.from_defaults for a FunctionAgent, or in a BaseReader that returns one Document per parse chunk for a VectorStoreIndex.

Canonical: https://reducto.ai/tools/reducto-tool-llamaindex  
Last updated: 2026-11-15  
For: Python developers using LlamaIndex, RAG teams

## How to do it

1. pip install llama-index reductoai.
2. Copy reducto_llamaindex.py.
3. Use parse_tool in an agent, ReductoReader for an index.
4. Run the example.

## Limits and pricing

- Uses your Reducto API key and its limits.
- No-key fallbacks: 5 pages per document, per-IP rate limit.
- Pricing is per page; see the pricing page.
- Pricing: https://reducto.ai/pricing

## When to use what

- **This tool definition**: when your own agent code decides when to read a document.
- **The hosted MCP server**: when the agent runs in an MCP client (Claude, Cursor, Codex, VS Code).
- **/read or /api/tools**: for one short document without a key.

## FAQ

### Is this LlamaParse?

No. LlamaParse is LlamaIndex's own parser. This code calls Reducto through the official Reducto Python SDK.

### Can I build an index from the reader?

Yes: VectorStoreIndex.from_documents(ReductoReader().load_data("./report.pdf")).

### Where does the API key come from?

Create one at studio.reducto.ai (15,000 free credits), or let the agent sign up over HTTP by following reducto.ai/auth.md. The SDKs read REDUCTO_API_KEY from the environment.

### Can the agent try it without an API key?

Yes, for short documents: GET https://reducto.ai/read/<public URL> returns Markdown, and POST https://reducto.ai/api/tools/<tool> takes a file. Both are free up to 5 pages with a per-IP limit.

### How is it billed?

In credits per page. See the pricing page and the credit usage docs for current rates.

Sample document (synthetic): https://reducto.ai/tools/samples/harborline-bank-statement.pdf

## Related

- [RAG pipeline for messy PDFs](https://reducto.ai/cookbooks/reducto-turn-a-complex-10-k-into-grounded-rag-with-r-1)
- [LlamaIndex tools guide](https://developers.llamaindex.ai/python/framework/module_guides/deploying/agents/tools/)
- [All agent recipes](https://reducto.ai/tools/agents)
