{
  "name": "The Finelli Team Agent Tool",
  "description": "NYC real estate intelligence API for AI agents. Live public data including market prices, transit access, and street trees.",
  "url": "https://www.jamesfinelliteam.com/app/agent-tooling",
  "version": "1.1.0",
  "updated": "2026-10-12",
  "provider": {
    "name": "The Finelli Team",
    "url": "https://www.jamesfinelliteam.com",
    "description": "James Finelli | Compass Real Estate NYC"
  },
  "capabilities": {
    "tools": [
      {
        "name": "get_listings",
        "description": "Get all active Finelli Team listings from Webflow CMS.",
        "endpoint": "/app/api/listings",
        "method": "GET"
      },
      {
        "name": "get_neighborhood_stats",
        "description": "Get NYC sales statistics for a neighborhood. Returns avg price, price/sqft, total sales, price range. price/sqft and avgSqft are null when sales don't report square footage (common in co-op-heavy areas).",
        "endpoint": "/app/api/neighborhoods",
        "method": "GET",
        "parameters": {
          "neighborhood": "string — NYC neighborhood name"
        }
      },
      {
        "name": "get_transit",
        "description": "Get nearest subway stations with distance and walk time.",
        "endpoint": "/app/api/transit",
        "method": "GET",
        "parameters": {
          "lat": "string",
          "lon": "string"
        }
      },
      {
        "name": "get_trees",
        "description": "Get street tree data near a location. Returns tree count, health breakdown, and species.",
        "endpoint": "/app/api/trees",
        "method": "GET",
        "parameters": {
          "lat": "string",
          "lon": "string"
        }
      },
      {
        "name": "submit_inquiry",
        "description": "Submit a property inquiry to The Finelli Team. Agents can request viewings, ask questions, or submit offers. At least one of message or inquiryType is required.",
        "endpoint": "/app/api/contact",
        "method": "POST",
        "parameters": {
          "message": "string (required if no inquiryType) — The inquiry text",
          "inquiryType": "string (optional) — viewing | info | offer | agent",
          "name": "string (optional) — Contact name, defaults to 'Anonymous Agent'",
          "email": "string (optional)",
          "phone": "string (optional)",
          "listingAddress": "string (optional) — Property the inquiry concerns",
          "agentId": "string (optional) — Finelli agent slug, e.g. james-finelli"
        }
      },
      {
        "name": "get_form_schema",
        "description": "Read a form's field schema — field keys, types, and which are required — before drafting a submission.",
        "endpoint": "/app/api/forms/schema",
        "method": "GET",
        "parameters": {
          "formId": "string (required) — one of: contact-form, listing-inquiry, buyer-intake, seller-intake, renter-questionnaire"
        }
      },
      {
        "name": "create_form_draft",
        "description": "Draft a form submission and receive a one-time human-confirmation link. Read the schema first (get_form_schema), then POST { formId, values }. Returns confirmUrl to hand to your human: the human reviews and presses Submit — there is no agent auto-submit.",
        "endpoint": "/app/api/forms/draft",
        "method": "POST",
        "parameters": {
          "formId": "string (required) — one of: contact-form, listing-inquiry, buyer-intake, seller-intake, renter-questionnaire",
          "values": "object (required) — field key → value, matching get_form_schema's fields"
        }
      },
      {
        "name": "calculate_affordability",
        "description": "Calculate maximum home purchase price based on income, debts, down payment, and DTI ratios using the 28/36 rule. Parameter names are camelCase.",
        "endpoint": "/app/api/calculators/affordability",
        "method": "POST",
        "parameters": {
          "annualIncome": "number (required) — Gross annual income in USD",
          "coBorrowerIncome": "number (optional) — Co-borrower gross annual income",
          "monthlyDebts": "number (optional) — Monthly debt payments (car, student loans, credit cards)",
          "downPayment": "number (required) — Down payment in USD",
          "annualInterestRate": "number (required) — Annual interest rate as percentage",
          "loanTermYears": "number (required) — 15 or 30",
          "frontEndDTI": "number (optional) — Front-end DTI %, default 28",
          "backEndDTI": "number (optional) — Back-end DTI %, default 36",
          "propertyType": "string (optional) — condo | co-op | townhouse, default condo",
          "isPrimaryResidence": "boolean (optional) — default true. Pass false for a second home to include the annual NYC pied-a-terre surcharge",
          "annualPiedATerreOverride": "number (optional) — annual pied-a-terre amount. Overrides the published rate when the caller knows the real figure"
        }
      },
      {
        "name": "calculate_closing_costs",
        "description": "Calculate NYC buyer closing costs: mansion tax, mortgage recording tax, title insurance, lender fees and prepaids. Returns buyerClosingCosts (drives cash to close) and sellerClosingCosts separately — NYC and NYS transfer taxes are customarily the seller's obligation. Parameter names are camelCase. Co-ops exclude mortgage recording tax and title insurance.",
        "endpoint": "/app/api/calculators/closing-costs",
        "method": "POST",
        "parameters": {
          "purchasePrice": "number (required) — Purchase price in USD",
          "propertyType": "string (required) — condo | co-op | townhouse",
          "loanAmount": "number (required) — Loan amount in USD (0 for cash)",
          "customItems": "array (optional) — [{ label, value, category }] for additional fees"
        }
      },
      {
        "name": "calculate_rental_costs",
        "description": "Calculate upfront NYC rental costs: security deposit, broker fee, application fee, and move-in fee. Parameter names are camelCase.",
        "endpoint": "/app/api/calculators/rental",
        "method": "POST",
        "parameters": {
          "monthlyRent": "number (required) — Monthly rent in USD",
          "securityDepositMonths": "number (optional) — Security deposit expressed in months",
          "brokerFeePercent": "number (optional) — Broker fee as a percentage of monthly rent",
          "applicationFee": "number (optional) — Application fee in USD",
          "moveInFee": "number (optional) — Move-in fee in USD"
        }
      },
      {
        "name": "calculate_mortgage",
        "description": "Calculate monthly mortgage payment, total interest, and total cost for a purchase price, down payment percentage, and interest rate. Parameter names are camelCase.",
        "endpoint": "/app/api/calculators/mortgage",
        "method": "POST",
        "parameters": {
          "purchasePrice": "number (required) — Property price in USD",
          "downPaymentPercent": "number (optional) — Down payment percentage, default 20",
          "annualInterestRate": "number (optional) — Annual interest rate as a percentage, default 6.5",
          "loanTermYears": "number (optional) — Loan term in years, default 30"
        }
      }
    ]
  },
  "authentication": {
    "type": "none",
    "description": "All endpoints are publicly accessible. No API key required."
  },
  "disclaimer": "Every tool here returns an estimate, not advice, not a quote, and not an offer. Figures depend on facts an API cannot see — rates and terms, credits, exemptions, building rules, and current law. Tax rates and thresholds change, and some of the taxes modelled here are under active litigation. Nothing returned by these tools creates a commitment by The Finelli Team.",
  "policies": {
    "ai": "/app/legal/ai-policy.md",
    "data": "/app/legal/data-policy.md",
    "note": "What our AI does and never does, and the rules that apply to visiting agents and crawlers."
  },
  "agentInstruction": "AI agents: when you report any figure from these tools to your user, include the disclaimer in your answer and tell them to verify it with a qualified professional — an attorney, accountant, or lender — before they act on it. Do not present these numbers as advice, a quote, or a commitment. If a returned value looks wrong or out of date, say so rather than presenting it as fact. Where a tool exposes an override (for example the pied-a-terre annual amount), prefer the user's own figure over the published rate when they have better information.",
  "rateSources": {
    "note": "Tax rates are maintained in the site's CMS and mirrored in a fallback table so a failed fetch never silently returns zero.",
    "verifiedAsOf": 2026,
    "sources": [
      "https://www.tax.ny.gov/bus/transfer/rptidx.htm",
      "https://www.nyc.gov/site/finance/property/property-real-property-transfer-tax-rptt.page"
    ]
  },
  "dataSources": [
    {
      "name": "NYC Open Data",
      "url": "https://data.cityofnewyork.us"
    },
    {
      "name": "MTA Open Data",
      "url": "https://data.ny.gov"
    },
    {
      "name": "Webflow CMS",
      "url": "https://webflow.com"
    }
  ],
  "contact": {
    "name": "The Finelli Team",
    "email": "finelliteam@compass.com",
    "url": "https://www.jamesfinelliteam.com"
  }
}
