Skip to main content
Glama

cmbs.news: CMBS loan data

Full monthly history of a loan

get_loan_history
Read-onlyIdempotent

Returns one loan's monthly reports back to its first filing (late 2016 at the earliest): balance, payment status, special servicing, workout strategy, modification, coverage and occupancy. Use it to see how a loan reached its current state. Without a key it returns a notice that a key is needed; the loan page on cmbs.news shows the last 12 monthly reports.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "slug": "<slug>"
    },
    "name": "get_loan_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe loan slug: the last part of its cmbs.news URL, from search_loans

Output Schema

NameRequiredDescriptionDefault
toNoLast month in months, YYYY-MM; null when there are none.
urlNoThe loan's page on cmbs.news.
asOfNoData date of the loan record (latest reporting-period end in the database), YYYY-MM-DD.
fromNoFirst month in months, YYYY-MM; null when there are none.
planNoFree plan only. Values: free = Free plan.
slugNoThe loan's slug.
errorNo'history temporarily unavailable': the history read failed; months is empty and from/to are null.
foundNoPresent only when the loan asked for is not on file: false.
limitsNoFree plan only.
monthsNoOne row per calendar month in which at least one of the loan's notes filed a report, oldest first, back to the first ABS-EE filing (late 2016 at the earliest).
onFileNoPart of the proRequired answer shape, but getLoanHistory passes null so it is never emitted here (it is on getLoanParties).
sourceNoWhere the history comes from.
keyNoteNoSent when the key given was a placeholder (such as YOUR_KEY): the call was answered as a call without a key, and this says why.
messageNoFree plan only.
missingNoNotes of the loan for which no history record was found (their balances are not in months).
noiNoteNoSentence present when monthly NOI is withheld because this loan's history has not been re-read under the current annualization rule (every months[].noi is then null).
nextCallNoOn a found: false answer: the exact call to make next, as {tool, arguments}. An argument written in <angle brackets> is a template to fill in.
callsLeftNoWithout a key: calls left today on the free allowance, this one counted. Not sent with a Pro or Team key.
matchNoteNoPresent when the text sent was not an exact identifier but fit exactly one record: how it was read, so the caller can check it is the record meant.
candidatesNoOn a found: false answer: the closest real records, most likely first; empty when nothing is close.
sourceLineNoFixed source and terms line (same text as source on other endpoints).
proRequiredNoFree plan only.
argumentNoteNoSent when an argument was renamed, read in another form or left out because it could not be used: says which and how.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedOutput schema / properties / candidates
      Added value: +{
      +  "description": "On a found: false answer: the closest real records, most likely first; empty when nothing is close.",
      +  "items": {
      +    "description": "One real record close to what was asked.",
      +    "properties": {
      +      "city": {
      +        "description": "A loan: the property city.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "class": {
      +        "description": "A certificate class: its class as the trust files it, e.g.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "cusip": {
      +        "description": "A certificate class: its 9-character CUSIP.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "leftTheTrusts": {
      +        "description": "A loan: true when it paid off or left the trusts, so its page shows its last figures.",
      +        "type": [
      +          "boolean",
      +          "null"
      +        ]
      +      },
      +      "name": {
      +        "description": "A trust: its name.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "slug": {
      +        "description": "A loan: its slug, to pass to get_loan.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "state": {
      +        "description": "A loan: the two-letter state.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "title": {
      +        "description": "A loan: its property name.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "trust": {
      +        "description": "A certificate class: the slug of its trust.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "trustName": {
      +        "description": "A certificate class: the name of its trust.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "url": {
      +        "description": "The record's page on cmbs.news.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": [
      +      "object",
      +      "null"
      +    ]
      +  },
      +  "type": [
      +    "array",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / found
      Added value: +{
      +  "description": "Present only when the loan asked for is not on file: false.",
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / matchNote
      Added value: +{
      +  "description": "Present when the text sent was not an exact identifier but fit exactly one record: how it was read, so the caller can check it is the record meant.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / nextCall
      Added value: +{
      +  "description": "On a found: false answer: the exact call to make next, as {tool, arguments}. An argument written in <angle brackets> is a template to fill in.",
      +  "properties": {
      +    "arguments": {
      +      "description": "Its arguments.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "tool": {
      +      "description": "The tool to call.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Every field with its unit and codes, in full: https://cmbs.news/openapi.json (operation getLoanHistory). Money in US dollars; a rate, occupancy or share is a fraction of 1 (0.0475 is 4.75%) unless it says percent; DSCR is a multiple; dates YYYY-MM-DD.",
      +  "properties": {
      +    "argumentNote": {
      +      "description": "Sent when an argument was renamed, read in another form or left out because it could not be used: says which and how.",
      +      "type": "string"
      +    },
      +    "asOf": {
      +      "description": "Data date of the loan record (latest reporting-period end in the database), YYYY-MM-DD.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "callsLeft": {
      +      "description": "Without a key: calls left today on the free allowance, this one counted. Not sent with a Pro or Team key.",
      +      "type": "integer"
      +    },
      +    "error": {
      +      "description": "'history temporarily unavailable': the history read failed; months is empty and from/to are null."
      +    },
      +    "from": {
      +      "description": "First month in months, YYYY-MM; null when there are none.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "keyNote": {
      +      "description": "Sent when the key given was a placeholder (such as YOUR_KEY): the call was answered as a call without a key, and this says why.",
      +      "type": "string"
      +    },
      +    "limits": {
      +      "description": "Free plan only.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "message": {
      +      "description": "Free plan only.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "missing": {
      +      "description": "Notes of the loan for which no history record was found (their balances are not in months).",
      +      "items": {
      +        "properties": {
      +          "asset": {
      +            "description": "Asset number of the note in that trust.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "deal": {
      +            "description": "Trust name of the note.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "months": {
      +      "description": "One row per calendar month in which at least one of the loan's notes filed a report, oldest first, back to the first ABS-EE filing (late 2016 at the earliest).",
      +      "items": {
      +        "properties": {
      +          "balance": {
      +            "description": "Loan balance in dollars that month: sum of the notes' actual ending balances; a note that skipped the month between its first and last reports counts at its last reported balance.",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "dscr": {
      +            "description": "NOI DSCR as filed that month, a plain ratio, from one note (the same note every month); null when that note left it blank or the loan is filed property by property.",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "modified": {
      +            "description": "True when any note's report that month has modifiedIndicator true.",
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "month": {
      +            "description": "Calendar month, YYYY-MM.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "msReturn": {
      +            "description": "Most recent return-to-master-servicer date as filed that month (first note that files one), YYYY-MM-DD. Can predate ssTransfer.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "noi": {
      +            "description": "NOI in dollars on a full-year basis as read from that month's filing, from the same note; null when the statement shows no year basis, when the loan is filed property by property, or when the record...",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "occupancy": {
      +            "description": "Physical occupancy that month as a fraction of 1, from the same note; null when blank.",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "rate": {
      +            "description": "Interest rate for that reporting period as a fraction of 1 (from the figure note, else the largest note).",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "reported": {
      +            "description": "Count of the loan's notes that filed a report that month.",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "source": {
      +            "description": "The SEC filing that supplied the month (for the first reporting note).",
      +            "type": [
      +              "object",
      +              "null"
      +            ]
      +          },
      +          "ssTransfer": {
      +            "description": "Most recent special servicer transfer date as filed that month (first note that files one), YYYY-MM-DD. It stays filled after the loan returns, so read withSS for the state.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "status": {
      +            "description": "Schedule AL payment status code that month: the worst across the notes that reported (severity 5 > 3 > 2 > 1 > 4 > B > A > 0). Values: 0 = Current; 1 = 30-59 days delinquent; 2 = 60-89 days delinquent; 3 = 90+ days delinquent; 4 = Performing matured balloon; 5 = Non performing matured balloon; A = Payment not received but still in grace period or not yet due; B = Late payment but less than 30 days delinquent.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "statusLabel": {
      +            "description": "Label of status; null when status is null.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "total": {
      +            "description": "Count of the loan's notes open that month (reported plus those carried at their last balance).",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "valuation": {
      +            "description": "Most recent valuation amount in dollars as filed that month (the note's property rows summed); null on a loan filed property by property or when not filed.",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "withSS": {
      +            "description": "True when any note's report that month shows a special servicer transfer date on or before its period end with no later return-to-master date.",
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "workout": {
      +            "description": "Schedule AL workoutStrategyCode filed that month (first note that files one); null when none. Values: 1 = Modification; 2 = Foreclosure; 3 = Bankruptcy; 4 = Extension; 5 = Note sale; 6 = DPO; 7 = REO; 8 = Resolved; 9 = Pending return to master servicer; 10 = Deed-in-lieu of Foreclosure; 11 = Full Payoff; 12 = Reps and Warranties; 13 = TBD; 98 = Other.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "workoutLabel": {
      +            "description": "Label of workout; null when workout is null.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "noiNote": {
      +      "description": "Sentence present when monthly NOI is withheld because this loan's history has not been re-read under the current annualization rule (every months[].noi is then null)."
      +    },
      +    "onFile": {
      +      "description": "Part of the proRequired answer shape, but getLoanHistory passes null so it is never emitted here (it is on getLoanParties)."
      +    },
      +    "plan": {
      +      "description": "Free plan only. Values: free = Free plan.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "proRequired": {
      +      "description": "Free plan only.",
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "slug": {
      +      "description": "The loan's slug.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "description": "Where the history comes from.",
      +      "properties": {
      +        "label": {
      +          "description": "Fixed label: SEC Form ABS-EE, Exhibit 102 (Schedule AL), as each trust filed it.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "trusts": {
      +          "description": "The trusts whose filings the history was built from.",
      +          "type": [
      +            "array",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "sourceLine": {
      +      "description": "Fixed source and terms line (same text as source on other endpoints).",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "to": {
      +      "description": "Last month in months, YYYY-MM; null when there are none.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "url": {
      +      "description": "The loan's page on cmbs.news.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/non-destructive, so the description's added value is the auth behavior: without a key the tool returns a notice rather than data, which tells the agent to expect a soft failure mode instead of an error. It also discloses the historical depth, which matters for result sizing. Return shape is left to the output schema, appropriately.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two dense sentences, front-loaded with the verb and scope, followed by the field list and the auth caveat. No filler and nothing repeated from the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read tool with a full output schema, the description covers purpose, temporal depth, returned dimensions, auth prerequisite, and a lighter-weight alternative source. Nothing an agent needs to decide to call it or to interpret a keyless response is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema itself explains the slug ('the last part of its cmbs.news URL, from search_loans'), including which sibling produces it. The description adds no further parameter meaning, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Returns one loan's monthly reports') and pins the scope precisely ('back to its first filing, late 2016 at the earliest'), then enumerates the fields returned (balance, payment status, special servicing, workout strategy, modification, coverage, occupancy). The temporal scope plus the 'see how a loan reached its current state' framing separates it cleanly from a current-snapshot sibling like get_loan.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit use case ('Use it to see how a loan reached its current state') and offers a lighter alternative for recent data (the loan page on cmbs.news shows the last 12 monthly reports). It does not name an in-tool alternative or state when not to call it, which keeps it short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources