3D Bristle MCP Visual
MCP PROTOCOL · VERSION 2025-03-26

Bristle MCP Server Documentation

Bristle provides a production Model Context Protocol (MCP) server for AI assistants, LLMs, and autonomous scheduling agents. All trade calculations and SQLite store mutations execute through JSON-RPC 2.0 endpoints.

MCP EndpointPOST /api/mcp
Discovery ManifestGET /.well-known/mcp.json
TransportHTTP JSON-RPC 2.0

Available MCP Tools

The server advertises 3 specialized grooming operations through tools/list.

get_shop_state

Tool

Reads the real Bristle SQLite store and returns the full salon ledger state (shop settings, staff members, clients, pets, grooming services, appointments, payments, grooming notes, and reminders).

inputSchema (JSON Schema)

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

create_client

Tool

Creates a new pet owner / client in the real Bristle SQLite salon database.

inputSchema (JSON Schema)

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Pet parent or client full name"
    },
    "phone": {
      "type": "string",
      "description": "Mobile phone number for SMS reminders"
    },
    "email": {
      "type": "string",
      "description": "Email address for notifications"
    },
    "address": {
      "type": "string",
      "description": "Physical household address (for mobile or shop records)"
    },
    "notes": {
      "type": "string",
      "description": "Client preferences or access notes"
    }
  },
  "required": [
    "name"
  ]
}

evaluate_trade_calculation

Tool

Calculates deterministic grooming ticket pricing from coat type, dog weight, and matting/dematting conditions, plus computes the deterministic rebook recall interval and date.

inputSchema (JSON Schema)

{
  "type": "object",
  "properties": {
    "coat": {
      "type": "string",
      "enum": [
        "short",
        "medium",
        "long",
        "curly",
        "double",
        "wire",
        "matted"
      ],
      "description": "Coat type of the dog (or 'matted')"
    },
    "weightLb": {
      "type": "number",
      "description": "Weight of the dog in pounds"
    },
    "matting": {
      "type": "boolean",
      "description": "Whether matting is present requiring dematting work"
    },
    "mattingLevel": {
      "type": "string",
      "enum": [
        "none",
        "light",
        "severe"
      ],
      "description": "Severity of coat matting"
    },
    "serviceName": {
      "type": "string",
      "description": "Service requested (e.g., 'Full groom', 'Bath & tidy', 'Nail trim')"
    },
    "basePriceCents": {
      "type": "number",
      "description": "Base service price in cents (defaults to 7500 for $75.00 full groom)"
    },
    "durationMin": {
      "type": "number",
      "description": "Base duration in minutes (defaults to 90 min)"
    },
    "priceMode": {
      "type": "string",
      "enum": [
        "coat",
        "flat"
      ],
      "description": "Pricing mode (coat or flat)"
    },
    "visitDate": {
      "type": "string",
      "description": "Visit date in YYYY-MM-DD format (defaults to current date)"
    },
    "completedStarts": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of prior completed visit ISO strings for history-blended cadence calculation"
    }
  },
  "required": [
    "coat",
    "weightLb"
  ]
}

Copy-Paste JSON-RPC 2.0 Example

Send a tools/call request directly to evaluate coat conditions and calculate rebook intervals.

Request Payload (POST /api/mcp):

{
  "jsonrpc": "2.0",
  "id": "call-1",
  "method": "tools/call",
  "params": {
    "name": "evaluate_trade_calculation",
    "arguments": {
      "coat": "curly",
      "weightLb": 42,
      "mattingLevel": "severe",
      "visitDate": "2026-10-15"
    }
  }
}

Response Payload:

{
  "jsonrpc": "2.0",
  "id": "call-1",
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\n  \"coat\": \"curly\",\n  \"weightLb\": 42,\n  \"mattingDetected\": true,\n  \"baseQuote\": {\n    \"priceCents\": 9200,\n    \"durationMin\": 110\n  },\n  \"mattingAdjustment\": {\n    \"upchargeCents\": 1800,\n    \"extraMin\": 15\n  },\n  \"totalTicket\": {\n    \"priceCents\": 11000,\n    \"priceFormatted\": \"$110.00\",\n    \"durationMin\": 125\n  },\n  \"rebookRecall\": {\n    \"intervalDays\": 35,\n    \"usedHistory\": false,\n    \"visitDate\": \"2026-10-15\",\n    \"recallDate\": \"2026-11-19\"\n  }\n}"
      }
    ],
    "coat": "curly",
    "weightLb": 42,
    "mattingDetected": true,
    "totalTicket": {
      "priceCents": 11000,
      "priceFormatted": "$110.00",
      "durationMin": 125
    },
    "rebookRecall": {
      "intervalDays": 35,
      "visitDate": "2026-10-15",
      "recallDate": "2026-11-19"
    }
  }
}