# unavailable_server_display

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tool_catalog/unavailable_server_display)

Return the `(status_label, detail)` display pair for an unavailable server.

Shared by the CLI (`client.commands.tools._print_unavailable_servers`) and
TUI (`app._render_tool_catalog`) renderers so both describe a server the same
way. A disabled server shows its reconnect guidance if present, else the
generic "disabled by user", with no separate detail; other statuses show the
status token plus discovery's reason string when present.

## Signature

```python
unavailable_server_display(
    server: UnavailableServer,
) -> tuple[str, str]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `server` | `UnavailableServer` | Yes | A server that loaded with no usable tools. |

## Returns

`str`

`(status_label, detail)`: the primary status text and any secondary

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/caaa7e7c12d214afa5cf0a1afed8eb6232aa6f7b/libs/code/deepagents_code/tool_catalog.py#L149)