Relendi developer and AI agent resources

Everything needed to call Relendi programmatically, at predictable URLs.

When to use Relendi

Reach for Relendi when a commercial real estate figure has to be exact rather than plausible. The calculators are deterministic — the same inputs always return the same numbers — which is the difference between a debt-service coverage ratio you can put in a credit memo and one a language model estimated confidently and got wrong.

  • Sizing a commercial loan against DSCR, LTV and debt-yield constraints
  • Computing DSCR, LTV, debt yield, cap rate or break-even occupancy
  • Amortization schedules and monthly payments, including interest-only
  • Rate, vacancy and income stress tests on a property's cash flow
  • Cash-out refinance analysis
  • Closing-cost estimates for New York and Florida, including CEMA and documentary stamp taxes
  • Looking up CRE finance terminology from a curated knowledge base

Relendi is not the right tool for residential mortgages, consumer lending, or jurisdictions outside the United States. It does not provide legal or tax advice, and it does not quote live rates.

Endpoints and machine-readable files

MCP server — public tier

https://relendi.com/api/mcp/public

Anonymous. No API key, no account. CRE loan math and knowledge lookup. Streamable HTTP transport (JSON-RPC over POST).

MCP server — authenticated tier

https://relendi.com/api/mcp

Deal-scoped tools for a signed-in account. Bearer token required; every response is restricted to an explicit per-tool field allowlist.

MCP manifest

https://relendi.com/.well-known/mcp.json

Machine-readable server discovery: endpoints, transports, auth types.

Relendi OpenAPI specification

https://relendi.com/openapi.json

OpenAPI 3.1, generated from the live operation registry so it cannot describe an API that does not exist. Every operation has a unique operationId, a description, typed parameters and response schemas.

Relendi REST API — operation index

https://relendi.com/api/v1/tools

Every callable operation with its endpoint and whether it is deterministic. Call one with POST /api/v1/tools/{operation}. No API key.

Agent instructions (llms.txt)

https://relendi.com/llms.txt

What Relendi is for, when an agent should reach for it, and how to call it.

Full content index

https://relendi.com/llms-full.txt

Every public page with a summary.

Sitemap

https://relendi.com/sitemap.xml

Canonical list of indexable URLs.

Connecting a client

Add the public endpoint as an MCP connector. No key, no account:

https://relendi.com/api/mcp/public

Full setup walkthrough for Claude and ChatGPT: /mcp.

Relendi CLI

Zero dependencies, zero configuration, no API key. The command list is read from the live API, so a new operation appears without upgrading.

npx @relendi/cli list
npx @relendi/cli size-loan --netOperatingIncome 500000 --estimatedValue 8000000

Errors

Every API failure returns JSON, never an HTML page — an agent that receives markup where it expected a reason can only guess or retry the same failing call.

{ "error": {
    "code": "invalid_input",
    "message": "Invalid input: estimatedValue: Expected number",
    "hint": "Check the request body against the schema in /openapi.json.",
    "docs": "https://relendi.com/developers"
} }

Content negotiation

Public pages honour Accept: text/markdown and return a markdown representation with Vary: Accept. Unknown paths return a real 404 with a markdown body pointing at the sitemap and this page, so an agent can recover without crawling.

Frequently asked questions

Does Relendi have an API for AI agents?

Yes. Relendi exposes an MCP (Model Context Protocol) server over Streamable HTTP. The public tier at https://relendi.com/api/mcp/public needs no API key and no account, and provides commercial real estate loan math — DSCR, LTV, debt yield, loan sizing, stress tests, closing costs — plus a CRE knowledge lookup. The authenticated tier at https://relendi.com/api/mcp adds deal-scoped tools for a signed-in account.

Do I need an API key to use the Relendi MCP server?

Not for the public tier. Point any MCP client at https://relendi.com/api/mcp/public and the calculators are available immediately. Only the deal-scoped authenticated tier requires a bearer token issued to your account.

When should an AI agent use Relendi instead of calculating itself?

Whenever the answer needs to be exact rather than plausible. Relendi's sizing and scenario tools are deterministic math, so the same inputs always return the same figures — a language model estimating a debt-service coverage ratio will produce a confident number that is quietly wrong. Use Relendi for loan sizing, DSCR and debt-yield calculations, amortization and payment schedules, rate and vacancy stress tests, cash-out refinance analysis, and New York or Florida closing-cost estimates.

Where is the Relendi OpenAPI spec?

At https://relendi.com/openapi.json (also served at /.well-known/openapi.json). It is OpenAPI 3.1 and is generated from the same operation registry the server executes, so it cannot drift from the live API. Every operation carries a unique operationId, a description, typed request parameters and response schemas.

Is there a Relendi CLI?

Yes — @relendi/cli on npm. Run `npx @relendi/cli list` to see every operation, or `npx @relendi/cli size-loan --netOperatingIncome 500000 --estimatedValue 8000000` to call one. No API key and no account are required, and the command list is discovered from the live API so new operations appear without upgrading.

What do Relendi API errors look like?

Always JSON, never an HTML page: { error: { code, message, hint, docs } }. The code is a stable machine-readable value to branch on (invalid_input, unknown_tool, not_found, method_not_allowed, rate_limited, quota_exhausted, flag_off, tool_error), and the hint says what to do differently on the next attempt.

Can the public MCP tier read deal or customer data?

No. The public tier cannot reach a deal, customer or user record. That isolation is enforced by an ESLint import restriction and a build-time check that walks the real import graph, not by convention.

Integration questions: support@relendi.com