poker_deleteBuildupFactor
Remove buildup factors from materials to maintain accurate task calculations and prevent resource allocation errors in project management workflows.
Instructions
ビルドアップ係数を削除します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material | Yes | 削除する材料名 |
Implementation Reference
- MCP tool handler for poker_deleteBuildupFactor. Validates material argument and delegates deletion to taskManager.async deleteBuildupFactor(args) { try { if (!args.material) throw new ValidationError('材料名は必須です', 'material', args.material); const result = await taskManager.deleteBuildupFactor(args.material); return { success: true, message: result }; } catch (error) { logger.error('deleteBuildupFactorハンドラーエラー', { args, error: error.message }); throw error; } },
- Tool schema definition including name, description, and input validation schema requiring 'material' string.{ name: 'poker_deleteBuildupFactor', description: 'ビルドアップ係数を削除します', inputSchema: { type: 'object', properties: { material: { type: 'string', description: '削除する材料名' } }, required: ['material'] } },
- src/services/DataManager.js:498-505 (helper)Core data manipulation logic executed during applyChanges(): finds and removes buildup_factor entry matching the material from YAML data.case 'deleteBuildupFactor': if (this.data.buildup_factor) { const buildupIndex = this.data.buildup_factor.findIndex(bf => bf.material === data.material); if (buildupIndex !== -1) { this.data.buildup_factor.splice(buildupIndex, 1); } } break;
- src/mcp/handlers/index.js:24-25 (registration)Registration of buildup factor handlers (including deleteBuildupFactor) in the all handlers object via createAllHandlers.// ビルドアップ係数操作 ...createBuildupFactorHandlers(taskManager),
- src/mcp/tools/index.js:18-18 (registration)Inclusion of buildupFactorTools (containing poker_deleteBuildupFactor schema) in the allTools array....buildupFactorTools,