Skip to main content

Overview

DebtStack is designed for AI agents. The API returns structured JSON that’s easy for LLMs to parse, supports field selection to minimize context usage, and provides atomic primitives that compose naturally.
New to DebtStack? Start with our interactive demo scenarios to see the API in action before building agents.

Design Principles

1. Atomic Primitives

Each endpoint does one thing well. Agents can compose primitives to answer complex questions:

2. Field Selection

Request only what you need to minimize token usage:

3. Structured Errors

Errors include actionable suggestions:

Agent Architecture

ReAct Pattern

DebtStack works well with ReAct (Reasoning + Acting) agents:

Tool Definitions

Example: Credit Analysis Agent

Best Practices

Minimize Token Usage

  1. Use field selection - Only request fields you need
  2. Use batch operations - Combine multiple calls
  3. Limit results - Use limit parameter

Handle Errors Gracefully

Cache Frequently Used Data

Next Steps

LangChain Integration

Use DebtStack as a LangChain tool

MCP Integration

Connect to Claude via Model Context Protocol