Skip to main content
Glama
RMITBLOG

Parallels RAS MCP Server

by RMITBLOG

ras_infra_get_rds_hosts

Monitor RDS session host health and capacity by listing hosts with details like hostname, IP, agent status, active sessions, CPU/RAM usage, and OS version for troubleshooting.

Instructions

List RDS (Remote Desktop Services) session hosts and their details including hostname, IP, agent status, active sessions, CPU/RAM usage, and OS version. Use this to monitor host health, check capacity, or troubleshoot RDS issues.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration of the ras_infra_get_rds_hosts tool with the MCP server, including tool metadata, annotations, input schema (empty), and the handler function that makes a GET request to /api/infrastructure/rd-session-hosts/rds/host
    server.registerTool( "ras_infra_get_rds_hosts", { title: "RDS Hosts", description: "List RDS (Remote Desktop Services) session hosts and their details including " + "hostname, IP, agent status, active sessions, CPU/RAM usage, and OS version. " + "Use this to monitor host health, check capacity, or troubleshoot RDS issues.", annotations: READ_ONLY_ANNOTATIONS, inputSchema: {}, }, async () => { try { const data = await rasClient.get("/api/infrastructure/rd-session-hosts/rds/host"); return { content: [{ type: "text" as const, text: JSON.stringify(data, null, 2) }] }; } catch (err) { return { content: [{ type: "text" as const, text: sanitiseError(err, "Failed to retrieve RDS hosts") }], isError: true }; } } );
  • Handler function for ras_infra_get_rds_hosts that executes the tool logic: calls the RAS API endpoint /api/infrastructure/rd-session-hosts/rds/host via rasClient.get(), returns the JSON response as text, and handles errors using sanitiseError
    async () => { try { const data = await rasClient.get("/api/infrastructure/rd-session-hosts/rds/host"); return { content: [{ type: "text" as const, text: JSON.stringify(data, null, 2) }] }; } catch (err) { return { content: [{ type: "text" as const, text: sanitiseError(err, "Failed to retrieve RDS hosts") }], isError: true }; } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RMITBLOG/ParallelsRAS_MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server