ras_site_get_load_balancing
Retrieve load balancing settings to review session distribution methods, resource weights, and limits for optimizing RDS host performance and diagnosing uneven loads.
Instructions
Get load balancing settings, including balancing method, resource weights, and session limits. Use this to review how sessions are distributed across RDS hosts or diagnose uneven load distribution.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/site-settings.ts:87-106 (handler)The tool registration and handler implementation for ras_site_get_load_balancing. It uses rasClient.get() to fetch load balancing settings from '/api/site-settings/load-balancing' and returns the JSON response or an error.server.registerTool( "ras_site_get_load_balancing", { title: "Load Balancing", description: "Get load balancing settings, including balancing method, resource weights, " + "and session limits. Use this to review how sessions are distributed across " + "RDS hosts or diagnose uneven load distribution.", annotations: READ_ONLY_ANNOTATIONS, inputSchema: {}, }, async () => { try { const data = await rasClient.get("/api/site-settings/load-balancing"); 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 load balancing settings") }], isError: true }; } } );
- src/tools/site-settings.ts:89-96 (schema)Tool schema definition including title, description, annotations (read-only hint), and empty inputSchema (no parameters required).{ title: "Load Balancing", description: "Get load balancing settings, including balancing method, resource weights, " + "and session limits. Use this to review how sessions are distributed across " + "RDS hosts or diagnose uneven load distribution.", annotations: READ_ONLY_ANNOTATIONS, inputSchema: {},