BLE · API Governance Rules

BLE API Rules

Spectral linting rules defining API design standards and conventions for BLE.

5 Rules warn 5
View Rules File View on GitHub

Rule Categories

ble

Rules

warn
ble-uuid-format
GATT service and characteristic UUIDs should follow Bluetooth SIG format
$.components.schemas[*].properties.uuid
warn
ble-rssi-range
RSSI values must be within valid BLE range (-127 to 0 dBm)
$.components.schemas.AdvertisingPacket.properties.rssi
warn
ble-characteristic-properties-enum
GATT characteristic properties must use defined values
$.components.schemas[*].$defs.GattCharacteristic.properties.properties.items
warn
ble-address-format
BLE device MAC address must follow XX:XX:XX:XX:XX:XX format
$.components.schemas.AdvertisingPacket.properties.address
warn
ble-service-uuid-required
GATT service definitions must include a UUID
$.components.schemas.GattService

Spectral Ruleset

ble-spectral-rules.yml Raw ↑
rules:
  ble-uuid-format:
    description: GATT service and characteristic UUIDs should follow Bluetooth SIG format
    message: "UUID must be a 16-bit hex value or full 128-bit UUID string"
    given: "$.components.schemas[*].properties.uuid"
    then:
      field: pattern
      function: truthy

  ble-rssi-range:
    description: RSSI values must be within valid BLE range (-127 to 0 dBm)
    message: "RSSI field must define minimum and maximum constraints"
    given: "$.components.schemas.AdvertisingPacket.properties.rssi"
    then:
      field: minimum
      function: defined

  ble-characteristic-properties-enum:
    description: GATT characteristic properties must use defined values
    message: "Characteristic properties must use enum values from the GATT specification"
    given: "$.components.schemas[*].$defs.GattCharacteristic.properties.properties.items"
    then:
      field: enum
      function: truthy

  ble-address-format:
    description: BLE device MAC address must follow XX:XX:XX:XX:XX:XX format
    message: "BLE address must match MAC address pattern"
    given: "$.components.schemas.AdvertisingPacket.properties.address"
    then:
      field: pattern
      function: truthy

  ble-service-uuid-required:
    description: GATT service definitions must include a UUID
    message: "GATT service must include a uuid field"
    given: "$.components.schemas.GattService"
    then:
      field: required
      function: schema
      functionOptions:
        schema:
          type: array
          contains:
            const: uuid

Work with this as data

Every ruleset here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/ble-spectral-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.