check_subscription
Check your current subscription status to monitor API usage and manage your account effectively.
Instructions
Check the current subscription status. Could be used to measure the usage of the API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| text | Yes | ||
| annotations | No | ||
| _meta | No |
Implementation Reference
- elevenlabs_mcp/server.py:571-574 (registration)Registration of the 'check_subscription' tool via the @mcp.tool decorator with readOnlyHint and description.
@mcp.tool( annotations=ToolAnnotations(readOnlyHint=True, openWorldHint=True), description="Check the current subscription status. Could be used to measure the usage of the API." ) - elevenlabs_mcp/server.py:575-577 (handler)Handler function for 'check_subscription'. Calls client.user.subscription.get() and returns the JSON-serialized subscription data as TextContent.
def check_subscription() -> TextContent: subscription = client.user.subscription.get() return TextContent(type="text", text=f"{subscription.model_dump_json(indent=2)}") - elevenlabs_mcp/server.py:73-73 (helper)The 'client' variable (ElevenLabs client) used by check_subscription to call the subscription API.
client = ElevenLabs(api_key=api_key, httpx_client=custom_client, base_url=origin)