get_server_info
Retrieve server details including version, loaded categories, and configuration status to debug and verify setup for the Instantly.ai email outreach platform.
Instructions
Get Instantly MCP server information.
Returns server version, loaded categories, and configuration status. Useful for debugging and verifying server setup.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/instantly_mcp/server.py:142-183 (handler)The main handler function for the get_server_info tool. It gathers server metadata, tool counts per category, API key status, lazy loading info, and rate limit details, then returns a formatted JSON string.async def get_server_info() -> str: """ Get Instantly MCP server information. Returns server version, loaded categories, and configuration status. Useful for debugging and verifying server setup. """ import json client = get_client() categories = get_requested_categories() info = { "server": SERVER_NAME, "version": SERVER_VERSION, "api_key_configured": client.has_api_key, "lazy_loading_enabled": is_lazy_loading_enabled(), "loaded_categories": categories, "tool_counts": { "accounts": 6 if "accounts" in categories else 0, "campaigns": 8 if "campaigns" in categories else 0, # +2: delete_campaign, search_campaigns_by_contact "leads": 12 if "leads" in categories else 0, # +1: delete_lead_list "emails": 6 if "emails" in categories else 0, # +1: mark_thread_as_read "analytics": 3 if "analytics" in categories else 0, "background_jobs": 2 if "background_jobs" in categories else 0, }, "total_tools": sum([ 6 if "accounts" in categories else 0, 8 if "campaigns" in categories else 0, 12 if "leads" in categories else 0, 6 if "emails" in categories else 0, 3 if "analytics" in categories else 0, 2 if "background_jobs" in categories else 0, ]) + 1, # +1 for get_server_info "rate_limit": { "remaining": client.rate_limit.remaining, "limit": client.rate_limit.limit, "reset_at": client.rate_limit.reset_at.isoformat() if client.rate_limit.reset_at else None, }, } return json.dumps(info, indent=2)
- src/instantly_mcp/server.py:138-141 (registration)The decorator that registers the get_server_info tool with the FastMCP server, specifying its name and readOnlyHint annotation.@mcp.tool( name="get_server_info", annotations={"readOnlyHint": True}, )