> 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/connecting/troubleshooting.md). Agents can also search and read this documentation through its [MCP server](https://api-docs.hengelending.com/~gitbook/mcp).

# Troubleshooting

Use this page when the connector won't connect, tools don't show up, or tool calls fail once connected. Most reported issues are one of the connection problems below, not a bug in a specific tool.

## Connection problems

| Symptom                                               | Cause                                                              | Fix                                                                                                                                                                                                                |
| ----------------------------------------------------- | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| The client can't connect, or reports 401 Unauthorized | The client hasn't finished signing in, or its sign-in has expired. | Disconnect and reconnect the connector in your client, and complete the sign-in. A `401` with a `WWW-Authenticate` header is the connector asking the client to sign in, so seeing one means the URL is reachable. |
| Connects, but no Henge tools appear                   | The URL is missing the `/mcp/realfinity` path.                     | Use `https://mcp.realfinity.io/mcp/realfinity` (or `https://mcp.realfinity.io/mcp/realfinity-uat` for UAT) exactly.                                                                                                |
| Sign-in succeeds, but every tool call fails           | The account you signed in with isn't linked to a Henge user.       | Sign in with the email address on your Henge account. If it still fails, contact Henge support.                                                                                                                    |
| The session keeps asking you to sign in again         | The client isn't keeping or refreshing its token.                  | Reconnect the connector. If it keeps happening, check that your client supports refresh tokens.                                                                                                                    |
| Empty results, no error                               | Your roles limit which records you can see. This is expected.      | See [Scoping](#scoping) below, and check that the loans or users you expect are within your role's scope.                                                                                                          |

### Scoping

Most tool results are scoped to your Henge role. The [Roles](https://api-docs.hengelending.com/mcp/roles.md) page lists every role a tool can admit and what each one sees. Where the scope differs by tool:

* **Processor:** sees **all loans org-wide** for per-loan access: `get_loan_application`, `get_loan_application_contacts`, the two per-loan task tools, and `search_loan_applications`. A Processor is **not** limited to their own company for those. The aggregate and reporting tools narrow a Processor to their own company's users instead: `report_loans`, `loan_pipeline_report`, `report_loan_milestones`, `query_loans`, `search_loan_tasks`, `conditions_by_outcome`, and `search_users`.
* **CompanyProcessor and CompanyAdmin:** bounded by their company. CompanyAdmin can open any loan of its own company by id but does not widen searches or reports.
* **Pre-licensed agents:** see referred loans only.

Also note that `get_user_licenses` and the three pricing tools use a narrower per-user access check with no Processor branch at all — a Processor is limited to themselves, agents they assist, and agents they manage as ConciergeKey.

If a query comes back empty, check your role and whether the record in question is actually within that role's visible set before assuming the tool is broken.

## Reading tool error messages

When a tool fails, the client gets a short message. Details stay in Henge's logs, so if the message isn't enough to diagnose the problem, send it to Henge support.

Every tool error message starts with one of these labels:

| Label                      | Meaning                                                                 | Example trigger                                                                        |
| -------------------------- | ----------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| `Bad request:`             | The request was malformed or failed validation.                         | Invalid or missing required parameters.                                                |
| `Not found:`               | The requested entity does not exist or could not be resolved.           | Looking up a loan, user, or other record by an ID that doesn't resolve.                |
| `Unauthorized:`            | The caller's credentials were rejected by a downstream check.           | Invalid credentials against an internal or third-party service.                        |
| `Upstream error (status):` | A downstream HTTP-based integration returned a non-success response.    | An upstream service (e.g. a pricing or LOS integration) responds with an error status. |
| `Business rule violation:` | The request was well-formed and authorized, but violates a domain rule. | Things like duplicate records, mismatched loan state, or a failed business validation. |
| `Internal server error:`   | Anything not covered by the categories above.                           | An unexpected exception with no more specific mapping.                                 |

There are no other labels.

## Still stuck?

If you can connect and sign in but a tool call still fails or returns something unexpected, contact Henge support with the exact error message, the tool you called and roughly when. See [Clients & Configuration](https://api-docs.hengelending.com/mcp/connecting/clients-and-configuration.md) for setup details.


---

# 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/connecting/troubleshooting.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.
