{% if result.ok %}

Agent connected — {{ result.tools_count }} tools available.

{% else %}

{{ result.error }}

Fix
Check your agent's config matches one of the snippets above, then restart the agent.
Next
Verify the connection again.
{% endif %}