{
  "$schema": "https://modelcontextprotocol.io/schemas/server-card.json",
  "name": "bbsontrack-mcp-server",
  "version": "1.0.0",
  "description": "BBSOnTrack Agent-ready MCP Server Card for structural steel bar bending schedule automation, optimization, and project estimation tools.",
  "endpoint": "https://bbsontrack.com/api/mcp",
  "homepage": "https://bbsontrack.com",
  "capabilities": {
    "tools": true,
    "prompts": true,
    "resources": true
  },
  "tools": [
    {
      "name": "calculate_bbs",
      "description": "Compute cut lengths, bending schedules, and rebar tonnage weights using parametric shape formulas.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "bar_mark": { "type": "string", "description": "Bar identifier or member label" },
          "diameter_mm": { "type": "number", "description": "Bar diameter in millimeters (8, 10, 12, 16, 20, 25, 32, 40)" },
          "shape_code": { "type": "string", "description": "Standard shape code or bend type" },
          "dimensions": { "type": "object", "description": "Dimensions in millimeters (A, B, C, etc.)" },
          "count": { "type": "integer", "description": "Number of bars" }
        },
        "required": ["diameter_mm", "shape_code", "count"]
      }
    },
    {
      "name": "optimize_cutting_length",
      "description": "Optimize structural steel stock bar utilization to minimize offcut scrap wastage.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "stock_length_m": { "type": "number", "default": 12 },
          "required_cuts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "length_m": { "type": "number" },
                "quantity": { "type": "integer" }
              },
              "required": ["length_m", "quantity"]
            }
          }
        },
        "required": ["required_cuts"]
      }
    },
    {
      "name": "get_steel_standards",
      "description": "Retrieve standard rebar weights per meter, standard hook/bend deductions, and code specifications.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "standard": { "type": "string", "description": "Optional detailing reference standard" }
        }
      }
    }
  ],
  "resources": [
    {
      "uri": "https://bbsontrack.com/llms.txt",
      "name": "LLMs Plaintext Overview",
      "mimeType": "text/markdown"
    },
    {
      "uri": "https://bbsontrack.com/llms-full.txt",
      "name": "Full LLM Documentation",
      "mimeType": "text/markdown"
    }
  ],
  "contact": {
    "email": "support@bbsontrack.com",
    "url": "https://bbsontrack.com/contact"
  }
}
