Finance
Data source: Standard amortization formulas
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/mortgage-calculator/
claude_desktop_config.json
{
"mcpServers": {
"gnist-mortgage-calculator": {
"url": "https://context.gnist.ai/mcp/mortgage-calculator/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/mortgage-calculator/" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "calculate_monthly_payment", "arguments": {"principal": 1.0, "annual_rate": 1.0, "term_years": 1}}}'
REST API
API Root
https://context.gnist.ai/rest/mortgage-calculator/
4 endpoints available:
GET /rest/mortgage-calculator/calculate_monthly_paymentGET /rest/mortgage-calculator/calculate_amortizationGET /rest/mortgage-calculator/calculate_affordabilityGET /rest/mortgage-calculator/report_feedback
Shell
curl "https://context.gnist.ai/rest/mortgage-calculator/calculate_monthly_payment?principal=1.0&annual_rate=1.0&term_years=1" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/mortgage-calculator/calculate_monthly_payment",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"principal": 1.0,
"annual_rate": 1.0,
"term_years": 1
},
)
print(resp.json())
Command Line
Command
gc mortgage-calculator
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (4)
calculate_monthly_paymentCalculate fixed monthly mortgage payment.
| Parameter | Type | Required | Description |
|---|---|---|---|
principal | number | required | Loan amount. |
annual_rate | number | required | Annual interest rate as a percentage (e.g. 5.5 for 5.5%). |
term_years | integer | required | Loan term in years. |
calculate_amortizationGenerate a full amortization schedule for a mortgage.
| Parameter | Type | Required | Description |
|---|---|---|---|
principal | number | required | Loan amount. |
annual_rate | number | required | Annual interest rate as a percentage (e.g. 5.5 for 5.5%). |
term_years | integer | required | Loan term in years. |
calculate_affordabilityEstimate how much home a buyer can afford.
| Parameter | Type | Required | Description |
|---|---|---|---|
annual_income | number | required | Gross annual income. |
annual_rate | number | required | Annual interest rate as a percentage (e.g. 5.5 for 5.5%). |
monthly_debts | number | optional | Existing monthly debt obligations. (default: 0.0) |
down_payment | number | optional | Cash available for down payment. (default: 0.0) |
term_years | integer | optional | Loan term in years. (default: 30) |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |