subscriptions_get_by_username
Retrieve VPN subscription details for a specific user by entering their username. This tool provides access to user subscription information within the Remnawave VPN panel administration system.
Instructions
Get subscription details by username
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | Username |
Implementation Reference
- src/tools/subscriptions.ts:43-58 (handler)Registration and handler implementation for the 'subscriptions_get_by_username' tool, which fetches subscription details using the RemnawaveClient.
server.tool( 'subscriptions_get_by_username', 'Get subscription details by username', { username: z.string().describe('Username'), }, async ({ username }) => { try { const result = await client.getSubscriptionByUsername(username); return toolResult(result); } catch (e) { return toolError(e); } }, );