> For the complete documentation index, see [llms.txt](https://api-docs.hengelending.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.hengelending.com/mcp/tool-reference/los-fields-and-mismo.md). Agents can also search and read this documentation through its [MCP server](https://api-docs.hengelending.com/~gitbook/mcp).

# LOS fields and MISMO

Read and write loan fields in the LOS by id, move a loan to a named LOS status, and import or export MISMO 3.4 files.

{% hint style="info" %}
Generated from the MCP server's code. Do not edit this page in GitBook: changes are overwritten on the next sync.
{% endhint %}

## add\_loan\_los\_collection\_record

Add ONE new record to an LOS collection straight to the LOS. THIS WRITES TO THE LOAN ORIGINATION SYSTEM OF RECORD and is not idempotent (a retry adds a second record): show the user the collection, the consumer and each field's value, and add only after they explicitly confirm; check with get\_loan\_los\_collection\_records first that the record is not already there. Identify the loan by its MLM ExternalId (preferred) or internal Henge GUID; the loan must be in the LOS. Send collection (Assets, Liabilities, RealProperties, IncomeSources, EmploymentRecords, HousingHistoryEntries, sAdjustmentList or sProrationList; any other is refused by name), consumerId (required except for sAdjustmentList and sProrationList, which take none; it must be a consumer on the loan) and fields \[{ fieldId, value, label }], up to 25, label REQUIRED. Fields follow the rules of set\_loan\_los\_collection\_fields: only Editable, Verified fields of the collection are written, and if ANY field is refused NOTHING is written (every field comes back refused). The service makes the record's temporary id and, in the same LOS save, the ownership link the collection needs (ConsumerAssetOwnerships, ConsumerLiabilities, ConsumerRealPropertyOwnerships or ConsumerIncomeSources; EmploymentRecords and HousingHistoryEntries carry the consumer on the record), so send neither. Which fields the LOS requires to create a record is not fixed: the fields that created a record in testing were AssetType and ValueData (Assets), DebtType, Bal and Pmt (Liabilities), Status and MarketValue (RealProperties), IncomeType and BaseIncomeAmount (IncomeSources), EmployerName and IsCurrent (EmploymentRecords), IsPresentAddress False and ResidencyType (HousingHistoryEntries), Description and Amount (sAdjustmentList and sProrationList); a missing required field comes back as mlm\_error with the LOS's message. IsPresentAddress True is refused on an add: add the record False, then swap with set\_loan\_los\_collection\_fields. On RealProperties, IncomeSources, EmploymentRecords and HousingHistoryEntries the add is refused while the loan is still editable in Henge (a loan form save would delete the new record). Assets and Liabilities are not held: the loan form never writes them, so one can be added at any stage, including after approval when Henge's own asset tools are locked. Henge's copy is refreshed from the LOS after an add to any of those six; sAdjustmentList and sProrationList are not carried by Henge. The new record is found by comparing the collection's ids before and after the save, then read back. Returns recordId and each field's sent, readBack and outcome (confirmed, not\_kept, mlm\_error or refused). A save that creates no record is not\_kept for every field with no recordId. If a record is created but a field does not stick, the record STAYS, recordId is returned and applied is false: tell the user, and fix it with set\_loan\_los\_collection\_fields or remove it with delete\_loan\_los\_collection\_record. applied is true only when a record was created, every field is confirmed and its ownership link reads back; never describe applied false as a success. Writes one activity-log line naming the collection and record id, never a value. Every field outcome is recorded in the field catalog. Admin and Processor only. With the release flag mlm-write-redirect on, a field a Henge tool covers is not written: the answer names that tool and input (realfinityTool and realfinityInput), and a call that also holds other fields writes nothing and says to send them again through this tool.

**Who can call it:** Admin, Processor

**Reads or writes:** writes; can delete, cost money or reach someone outside, so a client should ask first

| Input               | Type            | Description                                                                                                                                                                                                                                                                                            |
| ------------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `collection`        | string          | The LOS collection to add a record to: Assets, Liabilities, RealProperties, IncomeSources, EmploymentRecords, HousingHistoryEntries, sAdjustmentList or sProrationList. Any other collection is refused.                                                                                               |
| `consumerId`        | string          | The Id of the consumer (borrower) the record belongs to, as get\_loan\_los\_collection\_records on Consumers returns it. Required for every collection but sAdjustmentList and sProrationList, which take none. Must be a consumer on the loan.                                                        |
| `fields`            | array of object | The fields of the new record, up to 25: \[{ fieldId, value, label }], under the same rules as set\_loan\_los\_collection\_fields. Send the fields the LOS needs to create the record (e.g. AssetType and ValueData for an asset); a missing one comes back as mlm\_error.                              |
| `fields[].fieldId`  | string          | The LOS field id within the collection, e.g. MarketValue or Address.City. Case does not matter.                                                                                                                                                                                                        |
| `fields[].value`    | string          | The value as text. bool: true or false. int and Decimal: a number (a $ sign, commas and % are ignored). enum: the LOS's raw numeric code (read the record first to see the current one). date: YYYY-MM-DD or MM/DD/YYYY. string: free text. An empty string clears a text, date, int or Decimal field. |
| `fields[].label`    | string          | REQUIRED. What the field means in plain English, e.g. 'market value of the rental property'. Recorded in the field catalog so the next caller can find the field by meaning.                                                                                                                           |
| `externalId`        | string          | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored.     |
| `loanApplicationId` | string (uuid)   | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                             |

## check\_mismo\_los\_round\_trip

For a loan that is already in the LOS, compare the LOS's own MISMO 3.4 export with our live read of the same loan and report field by field where they differ. SUBMITS NOTHING AND WRITES NOTHING — safe against a production loan. Identify the loan by MLM ExternalId (preferred) or internal Henge GUID. Every difference is attributed to a leg (here always the LOS export) and marked expected when MISMO is documented not to carry the field; the ones worth reporting to an engineer are the UNEXPECTED losses. A loan that is not yet in the LOS is refused. This checks the LOS-export leg only: the import and write legs need a run through the LOS from the MismoLosRoundTrip test app, which submits a UAT test loan.

**Who can call it:** Admin, Processor

**Reads or writes:** reads only

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## check\_mismo\_round\_trip

Export a loan application to MISMO 3.4, read it straight back, and report field by field what the format did not carry. WRITES NOTHING — safe to run against any loan, including in production. Identify the loan by MLM ExternalId (preferred) or internal Henge GUID. Returns a fidelity percentage (our export read back against the loan) and, beside it, sourceCoveragePercent with droppedElements (how much of the exported document the import kept, measured against the document itself; a value dropped on the first read shows only there). Also returns a list of differences, each marked expected or not: 'expected' means a field MISMO has no home for and is documented as not carried, so the ones worth reporting to an engineer are the UNEXPECTED differences, especially those of kind 'Lost'. This is the tool to answer 'can we trust the MISMO export for this loan' or to investigate before sending a file to an investor. Run it over several completed loans rather than one — a mapping gap usually only shows on loans that use the affected field.

**Who can call it:** Admin, Agent, DualLicensedAgent, Processor, CompanyAdmin, Assistant, ConciergeKey

**Reads or writes:** reads only

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## delete\_loan\_los\_collection\_record

Delete ONE record from an LOS collection straight to the LOS. THIS DELETES FROM THE LOAN ORIGINATION SYSTEM OF RECORD: read the record with get\_loan\_los\_collection\_records, show the user what will be deleted, and delete only after they explicitly confirm. Identify the loan by its MLM ExternalId (preferred) or internal Henge GUID; the loan must be in the LOS. Send collection (Assets, Liabilities, RealProperties, IncomeSources, EmploymentRecords, HousingHistoryEntries, sAdjustmentList or sProrationList), recordId and reason (REQUIRED, written to the loan's activity). The record is read first and its values (every field except account numbers and fields another tool owns) are returned as values, so the delete can be undone by hand with add\_loan\_los\_collection\_record. REFUSED before anything is written (outcome refused): a record that is not on the loan; a RealProperties record with IsSubjectProp True; a RealProperties record a stored liability is tied to through securedPropertyId (the liability is named: untie or delete it first); a HousingHistoryEntries record with IsPresentAddress True (swap the flag to another record first); and, on RealProperties, IncomeSources, EmploymentRecords and HousingHistoryEntries, any delete while the loan is still editable in Henge (Assets, Liabilities, sAdjustmentList and sProrationList skip that). The LOS removes a record's ownership link with it; the call reads the collection back and reports outcome deleted only when the record's Id and its ownership link no longer read back, else not\_kept with what still does. After a delete Henge's own copy is refreshed from the LOS. Writes one activity-log line naming the collection, record id and reason. Admin and Processor only. With the release flag mlm-write-redirect on, find\_los\_fields shows realfinityTool and realfinityInput for a field a Henge tool covers; this tool takes no field, so it is never redirected.

**Who can call it:** Admin, Processor

**Reads or writes:** writes; can delete, cost money or reach someone outside, so a client should ask first

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `collection`        | string        | The LOS collection to delete a record from: Assets, Liabilities, RealProperties, IncomeSources, EmploymentRecords, HousingHistoryEntries, sAdjustmentList or sProrationList.                                                                                                                       |
| `recordId`          | string        | The record's Id in the LOS, as get\_loan\_los\_collection\_records returns it. The record must be on the loan.                                                                                                                                                                                     |
| `reason`            | string        | REQUIRED. Why the record is deleted, in plain English. Written to the loan's activity.                                                                                                                                                                                                             |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## describe\_los\_field

Add what you know about an LOS field to the field catalog without touching any loan: a plain-English label, an alias (another name for it, such as the LOS screen label), or a note (how to use it, e.g. 'needs sXLckd=True'). Send at least one. Use it when you have worked out what a field means, so the next caller finds it with find\_los\_fields. A field id the LOS's dictionary does not have is still added (behavior Unknown, not synced): it becomes searchable but can never be written until the dictionary is regenerated. Never put loan values or borrower details in a label, alias or note. Returns the field as the catalog now holds it. Admin and Processor only. With the release flag mlm-write-redirect on, a field a Henge tool covers shows realfinityTool and realfinityInput: set it with that tool.

**Who can call it:** Admin, Processor

**Reads or writes:** reads only

| Input     | Type   | Description                                                                                                                                                                      |
| --------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `fieldId` | string | The LOS field id to describe.                                                                                                                                                    |
| `scope`   | string | The field's scope, e.g. Loan, Applicant, or 'Collection: Liabilities'. Needed only when the id is in more than one scope; a field the dictionary does not have defaults to Loan. |
| `label`   | string | What the field means in plain English.                                                                                                                                           |
| `alias`   | string | Another name people use for it, e.g. the LOS screen label or the 1003 line.                                                                                                      |
| `note`    | string | Anything learned about using it, e.g. 'needs sXLckd=True', 'only set before submit'. Never put loan values or borrower details here.                                             |

## export\_loan\_application\_mismo

Render a loan application as a MISMO 3.4 XML document and return the XML as text, along with a report of anything on the loan that MISMO has no home for. Identify the loan by its MLM ExternalId (preferred when the loan is in MLM) or its internal Henge GUID. This is the format to hand an investor, an AUS, or another lender's system. Read-only: nothing on the loan changes. The document can be large — a loan with several borrowers and a full credit section runs to hundreds of kilobytes — so prefer summarizing the report over echoing the whole document back to the user.

**Who can call it:** Admin, Agent, DualLicensedAgent, Processor, CompanyAdmin, Assistant, ConciergeKey

**Reads or writes:** reads only

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## find\_los\_fields

Search the LOS field catalog before reading or writing a field by id: about 11,000 fields from the LOS's field dictionary, plus what callers have learned using them. Matches the query, ignoring case, against field ids, the plain-English labels and aliases earlier callers gave, their notes, and the LOS's description; fields with the most confirmed writes come first. Each row returns fieldId, scope (Loan is the only scope get\_loan\_los\_fields and set\_loan\_los\_fields take; fields with a scope of 'Collection: ...' belong to records and are read with get\_loan\_los\_collection\_records, written with set\_loan\_los\_collection\_fields and added or deleted with add\_loan\_los\_collection\_record and delete\_loan\_los\_collection\_record; Applicant fields are out of scope except the per-borrower credit fields (aB.../aC... scores, model, factors, created date and credit authorization date for the three bureaus), which come back with requiresBorrower true and borrowerRole (Borrower or CoBorrower) and are read and written by get\_loan\_los\_fields and set\_loan\_los\_fields with a borrower selector), behavior (Editable, Calculated or Unknown), dataType, description, source (null for a field from the LOS's own dictionary; 'Screen index' for one found on an LOS screen, which the dictionary lacks) and verification (for those: Verified means a write was saved and read back on a test file; Readable means the LOS returns it but a write is not proven, so it is read-only), writable with notWritableReason (naming the tool to use when another tool owns the field; for a collection field, set\_loan\_los\_collection\_fields, which takes the Editable, Verified ones), syncedToday (whether Henge's own loan model already carries it), labels, aliases, notes, hints (e.g. 'send sXLckd=True with it'), and two mapping records kept separately: read (status confirmed, not\_returned or untested; confirmedCount, notReturnedCount, lastConfirmedAt) says whether the LOS returns the field, and write (status of the LATEST attempt: confirmed, not\_kept, error or untested; lastOutcome, lastMessage, lastAt, and history counts count, confirmedCount, notKeptCount, errorCount, lastConfirmedAt) says whether writes to it stick. Plus the totals getCount, confirmedSetCount, failureCount and lastFailureReason, and codes: for an enum whose code list is known, each raw code with the name the LOS shows for it, so the field can be written by name, with codesSource saying where the list was read (the LOS's own dropdowns and radio buttons). A field whose write status is confirmed is a proven mapping: prefer it over guessing; one whose write status is not\_kept or error did not stick last time, so read its lastMessage and hints first. Paged with offset and limit; mayHaveMore says another page may follow. Beside the catalog's fields, screenFields lists the inputs on the LOS's loan-editor screens that match (on the first page only: up to 10 when the catalog matched, up to limit when it did not), from an index of every screen's markup: screenKey and menu (where it is), label, elementId, ngModel, kind (dictionary: a dictionary field, fieldId names it; record: a property of a record such as an REO or income source, which get\_loan\_los\_fields and set\_loan\_los\_fields cannot reach; custom; unmapped: on the screen only), options (code and name), conditions (when the screen shows it), heldValue (whether it held a value on a populated loan, never the value) and usage. Check screenFields when a label could name a record's field rather than the loan's: 'Occ. Rate' on the REO screen is the record's OccR, not the loan's sOccR. search\_los\_screens reads a screen's markup. Admin and Processor only. With the release flag mlm-write-redirect on, a field a Henge tool covers shows realfinityTool and realfinityInput: set it with that tool.

**Who can call it:** Admin, Processor

**Reads or writes:** reads only

| Input      | Type    | Description                                                                                                                                                                                                                      |
| ---------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `query`    | string  | Words or an id to search for, ignoring case: matches field ids, the labels and aliases callers have given, notes, and the LOS's description. E.g. 'property tax', 'casefile', 'sProRealETxT'. May be omitted with usedOnly=true. |
| `scope`    | string  | Only fields in this scope. 'Loan' for the loan-level fields get\_loan\_los\_fields and set\_loan\_los\_fields take; omit for every scope.                                                                                        |
| `usedOnly` | boolean | Only fields someone has read or written through these tools (proven mappings). Default false.                                                                                                                                    |
| `offset`   | integer | Rows to skip, for paging. Default 0.                                                                                                                                                                                             |
| `limit`    | integer | Rows per page, 1 to 100. Default 25.                                                                                                                                                                                             |

## get\_loan\_los\_collection\_records

Read the records of one LOS collection straight from the LOS (the system of record): each record's Id (RecordId for sAgentDataSet) and the fields asked for, so you can find a record id and see current values before set\_loan\_los\_collection\_fields. Identify the loan by its MLM ExternalId (preferred) or internal Henge GUID; the loan must be in the LOS. Send collection (Assets, Liabilities, RealProperties, IncomeSources, EmploymentRecords, HousingHistoryEntries, Consumers and the other collections find\_los\_fields lists with a scope of 'Collection: ...') and optionally fieldIds; with none, every catalog field of the collection is returned. A field is returned only if it is in the collection in the LOS's field dictionary: ids not in it, denylisted fields (another tool owns them) and account numbers are REFUSED by name before anything is read. A dotted id such as Address.City is read through the whole record (the LOS cannot name it in a read), and Consumers cannot take a dotted id at all. Returns records: \[{ id, fields: { fieldId: value } }], with null for a requested field the LOS returned nothing for. Admin and Processor only.

**Who can call it:** Admin, Processor

**Reads or writes:** reads only

| Input               | Type            | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `collection`        | string          | The LOS collection id, e.g. Assets, Liabilities, RealProperties, IncomeSources, EmploymentRecords, HousingHistoryEntries or Consumers. find\_los\_fields with a scope such as 'Collection: Assets' lists a collection's fields.                                                                    |
| `fieldIds`          | array of string | The fields to return for every record, e.g. \['MarketValue', 'Address.City']. Omit to get every catalog field of the collection. Up to 50.                                                                                                                                                         |
| `externalId`        | string          | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid)   | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## get\_loan\_los\_fields

Read up to 50 loan-level fields straight from the LOS (the system of record) by field id, for fields no other tool returns. Look the ids up with find\_los\_fields first; it also shows what earlier callers learned. Identify the loan by its MLM ExternalId (preferred) or internal Henge GUID; the loan must be in the LOS. Send fields as \[{ fieldId, label }]: label is REQUIRED, your plain-English meaning of the field (e.g. 'proposed monthly property tax'), and is recorded in the field catalog (values never are). Only loan-level single-value fields that the LOS's dictionary marks Editable or Calculated are read. Sensitive fields (account and ABA numbers, raw AUS responses, credentials), applicant-level fields (a\*, per borrower), collection rows (liabilities, assets, employment, fees) and ids not in the dictionary are REFUSED by name before anything is read. Returns per field the value as the LOS holds it (null if it returned nothing), dataType (an enum comes back as the LOS's raw numeric code, with valueName beside it when the field's code list is known) and behavior (Editable or Calculated). With a borrower ({ hdBorrowerId } or { pairIndex }) the call reads the per-borrower credit fields find\_los\_fields lists with requiresBorrower true from that borrower's LOS record instead (the aB... ids are the pair's borrower's, the aC... ids its co-borrower's); SSN, account numbers and every Applicant field outside that allowlist are refused by name, and a call without borrower is unchanged. Admin and Processor only.

**Who can call it:** Admin, Processor

**Reads or writes:** reads only

| Input                   | Type            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ----------------------- | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `fields`                | array of object | Up to 50 loan-level LOS fields to read, each { fieldId, label }. Look ids up with find\_los\_fields first.                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `fields[].fieldId`      | string          | The LOS field id, e.g. sProRealETxT. Case does not matter.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `fields[].label`        | string          | REQUIRED. What the field means in plain English, e.g. 'proposed monthly property tax'. Recorded in the field catalog so the next caller can find the field by meaning.                                                                                                                                                                                                                                                                                                                                                                    |
| `borrower`              | object          | Needed for the per-borrower credit fields (the aB... and aC... ids find\_los\_fields lists with requiresBorrower true), and never for a loan-level field: send it only with those. Name the borrower by hdBorrowerId (from get\_loan\_application), or by pairIndex (0 is the primary pair): an aB field is then the pair's borrower's and an aC field its co-borrower's. Both may be sent and must agree. An unknown borrower, a pair with nobody in that role, or an ambiguous match is refused by name and nothing is read or written. |
| `borrower.hdBorrowerId` | string (uuid)   | The borrower's id (hdBorrowerId on get\_loan\_application). An aB field needs the primary borrower of a pair and an aC field its co-borrower.                                                                                                                                                                                                                                                                                                                                                                                             |
| `borrower.pairIndex`    | integer         | The borrower pair, 0 to 3; 0 is the primary pair. aB fields are the pair's borrower's, aC fields its co-borrower's.                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `externalId`            | string          | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored.                                                                                                                                                                                                                                        |
| `loanApplicationId`     | string (uuid)   | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                                                                                                                                                                                                                                                                |

## import\_mismo\_loan\_application

THIS CREATES A NEW LOAN APPLICATION AND EMAILS THE BORROWER. Parse a MISMO 3.4 XML document and create a loan application from it. The borrower's client record is resolved by email or created. Creating a loan application always sends the borrower welcome email and queues a further cascade of reminder emails, and there is no way to suppress it — pass delayEmailSeconds when importing more than one file, and do not call this speculatively. Run validate\_mismo\_file first and show the user what the file contains, including any warnings, before importing. Returns the new loan application id and the mapping report, including droppedElements (every element of the file that was read and not kept) and sourceCoveragePercent.

**Who can call it:** Admin, Processor, CompanyAdmin, ConciergeKey

**Reads or writes:** writes

| Input               | Type          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `loanOfficerId`     | string (uuid) | Henge user id (GUID) of the loan officer the new loan is assigned to. Defaults to the calling user. The loan officer is never read from the file, so a party inside the document claiming to be the LO is ignored.                                                                                                                                                                                                                                           |
| `clientId`          | string (uuid) | Optional Henge client id (GUID) to attach the primary borrower to. When omitted, the client is resolved by the borrower's email under the loan officer, and created if there is no match.                                                                                                                                                                                                                                                                    |
| `delayEmailSeconds` | integer       | Delay the borrower welcome-email cascade by this many seconds. Creating a loan application always sends it and there is no way to suppress it, so set this when importing more than one file.                                                                                                                                                                                                                                                                |
| `verify`            | boolean       | After importing, read the loan back out of the platform and export it again, then report field by field what the whole trip cost against what the file said. Use this when the question is whether an integration is lossless rather than simply whether the file loaded. Returns two numbers: persistenceFidelity (what our storage lost) and endToEndFidelity (what a counterparty would get back). Adds a couple of extra reads, so it is off by default. |
| `xml`               | string        | The complete MISMO 3.4 XML document, as text. Must be the whole file — a fragment or a summary cannot be parsed.                                                                                                                                                                                                                                                                                                                                             |

## merge\_mismo\_into\_loan\_application

THIS CHANGES AN EXISTING LOAN. Parse a MISMO 3.4 XML document and merge it onto a loan application that already exists, identified by MLM ExternalId (preferred) or internal Henge GUID. Fields absent from the file are left alone by default, because a partner file is usually a partial view of the loan; set treatMissingAsCleared only when the file is known to be complete. Loan assignments are never taken from the file. Returns the merged loan, a note for every field that changed, and droppedElements: every element of the file that was read and not kept (label-free path, count, masked sample), with sourceCoveragePercent. Use this to refresh a loan from a counterparty's updated file rather than importing a second copy.

**Who can call it:** Admin, Processor, CompanyAdmin, ConciergeKey

**Reads or writes:** writes; can delete, cost money or reach someone outside, so a client should ask first

| Input                   | Type          | Description                                                                                                                                                                                                                                                                                        |
| ----------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `xml`                   | string        | The complete MISMO 3.4 XML document, as text.                                                                                                                                                                                                                                                      |
| `treatMissingAsCleared` | boolean       | When true, a value absent from the file clears the stored value. Leave false (the default) unless the file is known to be a complete picture of the loan — a partial partner file would otherwise wipe fields it simply does not model.                                                            |
| `externalId`            | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId`     | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## move\_loan\_status

A move writes one date, the target status's milestone date stamped with today's Pacific date, and clears nothing unless clearSameDayDates is sent. The LOS status order, earliest first, is: Loan Open, Pre-qual, Pre-Processing, Processing, Document Check, Submitted, In Underwriting, Pre-approved, Approved, Condition Review, Final Underwriting, Clear to Close, Docs Out, Docs Back, Funded, Recorded, Loan Closed, Ready for Sale, Loan Shipped, Investor Conditions, Loan Sold; the outcomes (Counter Offer Approved, Loan On-hold, Loan Canceled, Loan Suspended, Loan Denied, Loan Withdrawn, Loan Archived) sit outside it. Pre-approved comes AFTER In Underwriting, so a move from Pre-approved to Pre-Processing or Processing is a move back. Move a loan to a named LOS status such as Submitted or Loan On-hold, forward or back to an earlier status, or set or correct a milestone date. THIS WRITES TO THE LOS, the live Loan Origination System of record, and a status change there can set off automations: borrower tasks when a loan reaches Preapproval or Underwriting, the borrower's final approval email at Clear To Close, the loan closed email at Closed, and the condition sync freeze while a loan is Submitted or In Underwriting. It can also set an outcome (Loan On-hold, Loan Suspended, Loan Canceled, Loan Denied, Loan Withdrawn, Loan Archived, Counter Offer Approved), which takes the loan out of the pipeline; state that plainly when confirming. CONFIRM WITH THE USER BEFORE CALLING: name the loan, the status and the date, say what it can trigger, and for a move back say which milestone dates would be cleared (none unless clearSameDayDates is sent), and get a yes. Identify the loan by its MLM ExternalId (preferred) or internal GUID; it must already be in the LOS. Send status (a name; 'Submitted' is the LOS's Loan Submitted milestone, not the earlier 'Registered' one) and reason (REQUIRED, recorded in the activity log). Send date (yyyy-MM-dd, not in the future) only to set or correct that milestone's date, which is not a safer way to move (an older date moves nothing, and a correction can move the status, even back); without it the loan is moved to the status with today's Pacific date. The LOS settles the status on the milestone with the latest date, and on a tie on the one furthest along: so a date older than the current status's date does not move the loan, and correcting a date can move the status, even back (the result says so). A loan on an outcome stays there for the rest of that day. Some milestones (for example Docs Ordered) take a date but never move the status; they are refused without a date. An unknown status, or one this tool does not offer, is refused with the supported names and nothing is written. The tool writes only the milestone date and the LOS settles the status, so the LOS may keep a different status than you asked for (for example when its status is locked): read applied, outcome, oldStatus and newStatus in the result and tell the user what the LOS kept, never that the move happened unless applied is true. A loan already at the status is left alone. A request with no date for an earlier status than the loan is at (for example back to Processing from Underwriting) or off an outcome such as Loan Withdrawn is a move back: it stamps the target's date with today's Pacific date, replaces an older date on it (the result carries oldMilestoneDate) and clears no other date, so the loan keeps its milestone history and its Approved status history row. If a later milestone is dated today or after, a stamp cannot win the tie: nothing is written, the result says the status was not moved and lists each blocking milestone with its date in blockingDates. Tell the user which dates those are; only if they say yes, call again with clearSameDayDates true, which clears exactly those dates (listed in datesCleared with their old values, so the move can be undone by hand) and then stamps the target. If the stamp does not move the status, the tool falls back to the LOS status override (overrideUsed is true): the loan then stays at that status whatever its dates say, and a later forward move will not move it until the override is released in the LOS; tell the user. Moving back and forward again repeats the status's automations, including the borrower email at Clear To Close and the loan closed email at Closed, exactly as the same moves do in the LOS; say so when confirming. Henge's own copy of the loan is brought up to date from the LOS. Restricted to Admin and Processor; loan officers cannot use it. Fields sStatusT, sStatusLckd, sStatusD and the milestone date fields stay refused by set\_loan\_los\_fields.

**Who can call it:** Admin, Processor

**Reads or writes:** writes; can delete, cost money or reach someone outside, so a client should ask first

| Input               | Type          | Description                                                                                                                                                                                                                                                                                                                                                                                       |
| ------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `status`            | string        | The LOS status to move the loan to, by name, for example 'Submitted', 'Processing' or 'Clear to Close'. An unknown name, or a status this tool does not offer, is refused with the list of supported names.                                                                                                                                                                                       |
| `date`              | string        | Optional. The milestone date as yyyy-MM-dd, not in the future: sets or corrects that status's date. Omit it to move the loan to the status with today's date. Not a safer way to move: a date older than the loan's current status date does not move it, and correcting a date can move the status.                                                                                              |
| `reason`            | string        | REQUIRED. Why the loan is being moved, in the user's words. Recorded in the loan's activity log.                                                                                                                                                                                                                                                                                                  |
| `clearSameDayDates` | boolean       | Optional, default false. DESTRUCTIVE: erases milestone dates in the LOS. Only for a move back with no date that was refused because later milestones are dated today or after; the result names them with their dates. With true, exactly those dates are cleared, then the target is stamped. Send it only after the user has seen those milestones and dates and said yes. Ignored with a date. |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored.                                                                                                |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                                                                                                                        |

## search\_los\_screens

Search the index of the LOS's loan-editor screens for a field find\_los\_fields cannot place: every input on every screen of the loan editor, with each screen's markup (its values removed), from a crawl of a blank loan template and of a funded loan. With query (at least 3 characters): the screens whose markup or inputs contain it, most matches first, each with screenKey, menu, pageId, path, services (the endpoints the page saves through), matchCount, snippets (the markup around the first matches) and fields (the matching inputs, as find\_los\_fields' screenFields describes them). With screenKey: that one screen, its inputs and a slice of its markup (html, htmlPass populated or blank, htmlTotalLength, nextHtmlOffset to read on with htmlOffset). Use it to see how a screen binds and saves a field: an ngModel names a record property, an element id a dictionary field. The index holds no loan values. Empty, not an error, where no index is loaded. Read-only. Admin and Processor only.

**Who can call it:** Admin, Processor

**Reads or writes:** reads only

| Input        | Type    | Description                                                                                                                                                                                                                                            |
| ------------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `query`      | string  | Text to find, ignoring case, at least 3 characters: a screen label ('Intended Occupancy'), an element id ('sDuCaseId'), an Angular binding ('selectedRealProperty.OccR'), a save service, or any text in the screen's markup. Optional with screenKey. |
| `screenKey`  | string  | Read one screen instead of searching: its markup (a slice at a time) and its inputs. Take it from a result's screenKey, e.g. 'REO' or 'Status/General.aspx'.                                                                                           |
| `offset`     | integer | Screens to skip, for paging a search. Default 0.                                                                                                                                                                                                       |
| `limit`      | integer | Screens per page, 1 to 25. Default 10.                                                                                                                                                                                                                 |
| `htmlOffset` | integer | With screenKey: the character to start the markup slice at. Pass the previous result's nextHtmlOffset to read on. Default 0.                                                                                                                           |

## set\_loan\_los\_collection\_fields

Write fields of existing records of one LOS collection straight to the LOS by record id, for fields no typed tool writes. THIS WRITES TO THE LOAN ORIGINATION SYSTEM OF RECORD and can change the loan's qualifying figures: first read the records with get\_loan\_los\_collection\_records, show the user each field's current and new value, and write only after they explicitly confirm. Identify the loan by its MLM ExternalId (preferred) or internal Henge GUID; the loan must be in the LOS. Send collection and records as \[{ recordId, fields: \[{ fieldId, value, label }] }]: up to 10 records, 25 fields per record and 100 per call; label is REQUIRED, your plain-English meaning of the field, recorded in the field catalog (values never are). value is text: true/false for bool, a number for int and Decimal, the LOS's raw numeric code for an enum, YYYY-MM-DD for a date. This edits records that already exist on the loan; it never adds or deletes one (add\_loan\_los\_collection\_record and delete\_loan\_los\_collection\_record do). Only fields whose row in the field dictionary is in the collection, Editable and Verified are written. REFUSED by name, and then NOTHING in the call is written (every field comes back with outcome refused): Readable fields, calculated fields (the refusal names the input to write instead, such as ValueData for Value), ids not in the dictionary, denylisted fields (another tool owns them), account numbers, values that do not fit the field's type, a record that does not exist on the loan, and sDUDwnPmtSrcCollection, sDuThirdPartyProviders and sHomeownerCounselingOrganizationCollection, which have no stable record id. The LOS's rules are applied for you: a save of any Address.\* field also sends Address.$Type (yours, else the record's, else UnitedStatesAddress); on a RealProperties record with IsSubjectProp True, MarketValue, Status, Type, MtgAmt and MtgPmt are refused because the LOS keeps nothing for them; HousingHistoryEntries.IsPresentAddress is taken only as a swap, False on the record that holds it and True on the new one in the same call, and a failed swap can leave the flag on either record so check which one holds it before trying again; and a lock flag is sent with the input it locks (NetRentIncLocked=True with NetRentIncData) and shows as an extra field. Fields Henge writes back from its own copy are refused while the loan is still editable in Henge, because the next loan form save would overwrite them; once the loan is application submitted and e-consent accepted they are written, and Henge's copy is refreshed from the LOS. The call reads the records, saves them in one LOS save, checks the LOS's save result for each field, then reads every record back and compares each field with what was sent. Returns per record and field old, sent, readBack, outcome and message. outcome is confirmed (no error or warning for it and it reads back as sent), not\_kept (the LOS took the save but holds a different value), mlm\_error (the LOS answered Error, which fails every field in the call, or warned about one field, which fails that field; message is the LOS's text) or refused (nothing was written). The top-level applied is true only when every field is confirmed; if it is false, tell the user each field's outcome and message and never describe the call as a success. Every outcome is recorded in the field catalog under that field and scope (find\_los\_fields), failures included. Writes an activity-log line naming each record and the fields kept, never their values. Admin and Processor only. With the release flag mlm-write-redirect on, a field a Henge tool covers is not written: the answer names that tool and input (realfinityTool and realfinityInput), and a call that also holds other fields writes nothing and says to send them again through this tool.

**Who can call it:** Admin, Processor

**Reads or writes:** writes; can delete, cost money or reach someone outside, so a client should ask first

| Input                        | Type            | Description                                                                                                                                                                                                                                                                                            |
| ---------------------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `collection`                 | string          | The LOS collection id, e.g. Assets, Liabilities, RealProperties, IncomeSources or EmploymentRecords. The same for every record in the call.                                                                                                                                                            |
| `records`                    | array of object | Up to 10 existing records to edit, each { recordId, fields: \[{ fieldId, value, label }] }.                                                                                                                                                                                                            |
| `records[].recordId`         | string          | The record's Id in the LOS (RecordId for sAgentDataSet), as get\_loan\_los\_collection\_records returns it. The record must already exist on the loan.                                                                                                                                                 |
| `records[].fields`           | array of object | Up to 25 fields of this record to write.                                                                                                                                                                                                                                                               |
| `records[].fields[].fieldId` | string          | The LOS field id within the collection, e.g. MarketValue or Address.City. Case does not matter.                                                                                                                                                                                                        |
| `records[].fields[].value`   | string          | The value as text. bool: true or false. int and Decimal: a number (a $ sign, commas and % are ignored). enum: the LOS's raw numeric code (read the record first to see the current one). date: YYYY-MM-DD or MM/DD/YYYY. string: free text. An empty string clears a text, date, int or Decimal field. |
| `records[].fields[].label`   | string          | REQUIRED. What the field means in plain English, e.g. 'market value of the rental property'. Recorded in the field catalog so the next caller can find the field by meaning.                                                                                                                           |
| `externalId`                 | string          | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored.     |
| `loanApplicationId`          | string (uuid)   | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                             |

## set\_loan\_los\_fields

Write up to 25 loan-level fields straight to the LOS by field id, for fields no other tool writes. THIS WRITES TO THE LOAN ORIGINATION SYSTEM OF RECORD and can change the loan's disclosures, fees and qualifying ratios: first read the fields with get\_loan\_los\_fields, show the user each field's current and new value, and write only after they explicitly confirm. Look ids up with find\_los\_fields first. Identify the loan by its MLM ExternalId (preferred) or internal Henge GUID. Send fields as \[{ fieldId, value, label }]: label is REQUIRED, your plain-English meaning of the field, recorded in the field catalog (values never are). value is text: true/false for bool, a number for int and Decimal, for an enum the LOS's raw numeric code, or the name when find\_los\_fields lists the field's codes (otherwise read the field first to see the current code), YYYY-MM-DD for a date. Only loan-level single-value fields the LOS marks Editable are written. REFUSED by name, and then NOTHING in the call is written (every field comes back with outcome refused): calculated fields, sensitive fields, applicant-level and collection fields, ids not in the dictionary, values that do not fit the field's type, and fields another tool owns (the refusal names it: update\_loan\_setup for rate, term, program and lock fields; set\_loan\_trailing\_document; status fields and loan team assignments are set in the LOS or Henge). Fields Henge's loan form writes (housing expenses, HOA dues, subject property, product flags, registered custom fields) are refused only while the loan is still editable in Henge, because the next form save would overwrite them; once the loan is application submitted and e-consent accepted they are written like any other field. find\_los\_fields shows this as writeCondition. The call reads the current values, saves, checks the LOS's save result for each field, then reads every field back and compares it with what was sent. Returns per field old, sent, readBack (with oldName, sentName and readBackName for an enum whose codes are known), outcome and message. Mortgage insurance has its own tool, update\_loan\_mortgage\_insurance. outcome is confirmed (no error or warning for it and it reads back as sent), not\_kept (the LOS took the save but holds a different value), mlm\_error (the LOS answered Error; message is its text; every field in the call gets it), mlm\_warning (the LOS warned about this field; message is the warning) or refused (nothing was written). The top-level applied is true only when every field is confirmed; if it is false, tell the user each field's outcome and message and never describe the call as a success. A hint such as 'the LOS calculates this field; send sXLckd=True with it' means sending that lock flag with the field. When a confirmed field is one Henge syncs, its own loan copy is refreshed from the LOS. Every outcome is recorded in the field catalog (find\_los\_fields), failures included. Writes an activity-log line with each field's old and new value. With a borrower ({ hdBorrowerId } or { pairIndex }) the call writes the per-borrower credit fields find\_los\_fields lists with requiresBorrower true (aB... is the pair's borrower's, aC... its co-borrower's, e.g. aBEquifaxScore and aCEquifaxScore in one call) to that borrower's LOS record under the same rules: show the current and new value per borrower first, write only after the user confirms, and the result is per field with old, sent, readBack, outcome (applied and notKept as above) and hdBorrowerId. After a write that reached the LOS the response adds representativeScores, the representative and qualifying scores the LOS calculates (sCreditScoreType1, sCreditScoreType2, sCreditScoreType2Soft, sCreditScore2Avg, sCreditScoreType3 and sCreditScoreLpeQual on the loan, each borrower's FicoScore and HighestScore, each LOS application's representative score), so the loan-level score can be confirmed; they are read-only and never change applied. SSN, account numbers and Applicant fields outside the allowlist are refused by name and nothing is written. A call without borrower is unchanged. Admin and Processor only. With the release flag mlm-write-redirect on, a field a Henge tool covers is not written: the answer names that tool and input (realfinityTool and realfinityInput), and a call that also holds other fields writes nothing and says to send them again through this tool.

**Who can call it:** Admin, Processor

**Reads or writes:** writes; can delete, cost money or reach someone outside, so a client should ask first

| Input                   | Type            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ----------------------- | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `fields`                | array of object | Up to 25 loan-level LOS fields to write, each { fieldId, value, label }.                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `fields[].value`        | string          | The value as text. bool: true or false. int and Decimal: a number (a $ sign, commas and % are ignored). enum: the LOS's raw numeric code, or its name when find\_los\_fields lists the field's codes; otherwise read the field first to see the current code. date: YYYY-MM-DD or MM/DD/YYYY. string: free text. An empty string clears a text, date, int or Decimal field.                                                                                                                                                               |
| `fields[].fieldId`      | string          | The LOS field id, e.g. sProRealETxT. Case does not matter.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `fields[].label`        | string          | REQUIRED. What the field means in plain English, e.g. 'proposed monthly property tax'. Recorded in the field catalog so the next caller can find the field by meaning.                                                                                                                                                                                                                                                                                                                                                                    |
| `borrower`              | object          | Needed for the per-borrower credit fields (the aB... and aC... ids find\_los\_fields lists with requiresBorrower true), and never for a loan-level field: send it only with those. Name the borrower by hdBorrowerId (from get\_loan\_application), or by pairIndex (0 is the primary pair): an aB field is then the pair's borrower's and an aC field its co-borrower's. Both may be sent and must agree. An unknown borrower, a pair with nobody in that role, or an ambiguous match is refused by name and nothing is read or written. |
| `borrower.hdBorrowerId` | string (uuid)   | The borrower's id (hdBorrowerId on get\_loan\_application). An aB field needs the primary borrower of a pair and an aC field its co-borrower.                                                                                                                                                                                                                                                                                                                                                                                             |
| `borrower.pairIndex`    | integer         | The borrower pair, 0 to 3; 0 is the primary pair. aB fields are the pair's borrower's, aC fields its co-borrower's.                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `externalId`            | string          | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored.                                                                                                                                                                                                                                        |
| `loanApplicationId`     | string (uuid)   | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                                                                                                                                                                                                                                                                |

## validate\_mismo\_file

Parse a MISMO 3.4 XML document and report exactly what would be imported from it, WITHOUT creating anything. Returns the mapped loan data, a note for every field that could not be mapped and why, and droppedElements: every element of the file that was read and not kept (label-free path, count, masked sample), with sourceCoveragePercent. This is the tool to reach for when onboarding a new counterparty or when an import behaved unexpectedly: it answers 'what does this file actually contain' without side effects. Always prefer this over import\_mismo\_loan\_application when the user is asking a question about a file rather than asking to bring the loan in.

**Who can call it:** Admin, Agent, DualLicensedAgent, Processor, CompanyAdmin, Assistant, ConciergeKey

**Reads or writes:** reads only

| Input | Type   | Description                                                                                                      |
| ----- | ------ | ---------------------------------------------------------------------------------------------------------------- |
| `xml` | string | The complete MISMO 3.4 XML document, as text. Must be the whole file — a fragment or a summary cannot be parsed. |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://api-docs.hengelending.com/mcp/tool-reference/los-fields-and-mismo.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
