feat: Improve material ordering and default type in MCP tools

- Add SortOrder as secondary ordering key after Shape across all material
  queries (list_materials, search methods)
- Default material type to "Steel" when not specified in add_stock_with_offering

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-05 00:18:51 -05:00
parent 30071469bc
commit c795c129e5
3 changed files with 23 additions and 19 deletions

View File

@@ -22,6 +22,7 @@ public class MaterialsController : ControllerBase
var materials = await _context.Materials
.Where(m => m.IsActive)
.OrderBy(m => m.Shape)
.ThenBy(m => m.SortOrder)
.ThenBy(m => m.Size)
.Select(m => new MaterialDto
{