subscription_info
Retrieve subscription details using a short UUID to access account information and service status for VPN panel management.
Instructions
Get subscription info by short UUID (public endpoint)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shortUuid | Yes | Short UUID |
Implementation Reference
- src/client/index.ts:233-235 (handler)The actual implementation of the getSubscriptionInfo client method used by the tool.
async getSubscriptionInfo(shortUuid: string) { return this.get(REST_API.SUBSCRIPTION.GET_INFO(shortUuid)); } - src/tools/subscriptions.ts:77-90 (registration)The registration and tool handler for the 'subscription_info' MCP tool.
server.tool( 'subscription_info', 'Get subscription info by short UUID (public endpoint)', { shortUuid: z.string().describe('Short UUID'), }, async ({ shortUuid }) => { try { const result = await client.getSubscriptionInfo(shortUuid); return toolResult(result); } catch (e) { return toolError(e); }