get_workspace_details
Retrieve current BitScale workspace details including plan information, credit balances, search limits, and member counts using your configured API key.
Instructions
Get details about the current BitScale workspace — plan info, credit balances, people/company search limits, and member counts.
The workspace is identified automatically from the API key configured during MCP setup. No parameters needed.
Returns: workspace id, name, plan (name, credits_included, billing_interval, next_billing_date, price), credits (total, used, remaining, plan_credits, rollover, topup), people_company_searches (limit, used, remaining), and members (total, owners, admins, editors).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- main.py:68-83 (handler)The implementation of the get_workspace_details MCP tool. It calls the _get helper to fetch details from the /workspace endpoint and returns the result as a formatted JSON string.
@mcp.tool() def get_workspace_details() -> str: """ Get details about the current BitScale workspace — plan info, credit balances, people/company search limits, and member counts. The workspace is identified automatically from the API key configured during MCP setup. No parameters needed. Returns: workspace id, name, plan (name, credits_included, billing_interval, next_billing_date, price), credits (total, used, remaining, plan_credits, rollover, topup), people_company_searches (limit, used, remaining), and members (total, owners, admins, editors). """ data = _get("/workspace") return json.dumps(data, indent=2)