get_covered_assets
Retrieve all assets covered by contracts for a specific customer to manage hardware inventory and service agreements.
Instructions
Get all assets covered by contracts for a specific customer.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customerId | Yes | The customer ID |
Implementation Reference
- src/index.ts:299-313 (handler)Handler implementation for the get_covered_assets tool. Validates the customerId parameter, makes an authenticated API call to the Cisco CX Cloud /contracts/coverage endpoint, and returns the response data as JSON-formatted text content.case "get_covered_assets": { const customerId = args?.customerId as string; if (!customerId) { throw new Error("customerId is required"); } const data = await makeApiCall("/contracts/coverage", customerId); return { content: [ { type: "text", text: JSON.stringify(data, null, 2), }, ], }; }
- src/index.ts:136-150 (registration)Registration of the get_covered_assets tool in the tools list, including name, description, and input schema. This is returned by the ListTools handler.{ name: "get_covered_assets", description: "Get all assets covered by contracts for a specific customer.", inputSchema: { type: "object", properties: { customerId: { type: "string", description: "The customer ID", }, }, required: ["customerId"], }, }, {
- src/index.ts:139-148 (schema)Input schema definition for the get_covered_assets tool, specifying an object with a required 'customerId' string property.inputSchema: { type: "object", properties: { customerId: { type: "string", description: "The customer ID", }, }, required: ["customerId"], },