get_customer_accounts
Retrieve accessible customer accounts and IDs from Cisco CX Cloud to enable subsequent operations like inventory queries and contract management.
Instructions
Get all accessible CX Cloud customer accounts and their IDs. Use this first to get customer IDs for other operations.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:239-249 (handler)The switch case handler for the 'get_customer_accounts' tool. It calls makeApiCall to the '/customer-info/customer-details' endpoint and returns the JSON-formatted response as text content.case "get_customer_accounts": { const data = await makeApiCall("/customer-info/customer-details"); return { content: [ { type: "text", text: JSON.stringify(data, null, 2), }, ], }; }
- src/index.ts:86-93 (registration)Registration of the 'get_customer_accounts' tool in the tools array provided to the listTools handler. Includes name, description, and empty input schema (no parameters required).{ name: "get_customer_accounts", description: "Get all accessible CX Cloud customer accounts and their IDs. Use this first to get customer IDs for other operations.", inputSchema: { type: "object", properties: {}, }, },
- src/index.ts:89-92 (schema)Input schema for the 'get_customer_accounts' tool, defining an empty object (no input parameters required).inputSchema: { type: "object", properties: {}, },