waroom_update_service_label
Update service labels on the Waroom MCP server by specifying the service name, label UUID, new label name, and color code. Maintain accurate and consistent labeling for services.
Instructions
特定のサービスのラベルを更新します。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | 新しいラベルの色(6桁の16進数カラーコード、例: ff0000) | |
| label_uuid | Yes | 更新するラベルのUUID | |
| name | Yes | 新しいラベル名 | |
| service_name | Yes | サービス名 |
Implementation Reference
- src/tools/labels.ts:70-102 (registration)Full registration of the 'waroom_update_service_label' MCP tool, including description, input schema, and handler function.server.tool( 'waroom_update_service_label', '特定のサービスのラベルを更新します。', { service_name: z.string().min(1).max(100).describe('サービス名'), label_uuid: z.string().uuid().describe('更新するラベルのUUID'), name: z.string().min(1).max(100).describe('新しいラベル名'), color: z.string().regex(/^[0-9a-fA-F]{6}$/).describe('新しいラベルの色(6桁の16進数カラーコード、例: ff0000)'), }, async (params) => { try { const response = await waroomClient.updateServiceLabel( params.service_name, params.label_uuid, params.name, params.color ); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `サービスラベルの更新に失敗しました: ${error}` }] }; } } );
- src/tools/labels.ts:73-78 (schema)Zod input schema defining parameters: service_name, label_uuid, name, color.{ service_name: z.string().min(1).max(100).describe('サービス名'), label_uuid: z.string().uuid().describe('更新するラベルのUUID'), name: z.string().min(1).max(100).describe('新しいラベル名'), color: z.string().regex(/^[0-9a-fA-F]{6}$/).describe('新しいラベルの色(6桁の16進数カラーコード、例: ff0000)'), },
- src/tools/labels.ts:79-101 (handler)Handler function that calls WaroomClient.updateServiceLabel with provided params, returns JSON response or error message in MCP format.async (params) => { try { const response = await waroomClient.updateServiceLabel( params.service_name, params.label_uuid, params.name, params.color ); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `サービスラベルの更新に失敗しました: ${error}` }] }; } }
- src/main.ts:29-29 (registration)High-level registration call that includes the waroom_update_service_label tool among labels tools.createLabelsTools(server, waroomClient);