{
  "version": "1.0",
  "protocolVersion": "2025-11-25",
  "serverInfo": {
    "name": "yourbest-meter-mcp",
    "title": "YourBest METER — observed AI usage",
    "version": "2.1.0"
  },
  "description": "Read the deployed aggregate device snapshot or normalize supplied token and tool-call counts for 7, 14 and 30 days. Source timestamps and missing measurements remain explicit. Tool calls are not converted to estimated tokens or money.",
  "transport": {
    "type": "streamable-http",
    "endpoint": "https://yourbest.space/api/meter?op=mcp"
  },
  "capabilities": {
    "tools": {}
  },
  "authentication": {
    "required": false
  },
  "tools": [
    {
      "name": "get_live_ai_telemetry",
      "description": "Read current observed provider usage, inbound AUMARA agent calls and billing reconciliation for 1/7/14/30 days. Local and gateway usage stay separate; missing sources are explicitly unavailable.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "meter_get_snapshot",
      "description": "Read the latest published sanitized local usage snapshot and its original scan time. Falls back to the deployed snapshot when storage is unavailable.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "meter_audit_usage",
      "description": "Normalize supplied aggregate token telemetry or tool-call counts for 7/14/30 days without persistence. Tool calls are not converted to tokens or money; missing values stay unknown.",
      "inputSchema": {
        "type": "object",
        "required": [
          "items"
        ],
        "additionalProperties": false,
        "properties": {
          "discovered": {
            "type": "object"
          },
          "scanned_at": {
            "type": "string"
          },
          "coverage": {
            "type": "object"
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "items": {
            "type": "array",
            "maxItems": 2000,
            "items": {
              "type": "object",
              "required": [
                "source",
                "window_days",
                "unit"
              ],
              "additionalProperties": false,
              "properties": {
                "source": {
                  "type": "string",
                  "maxLength": 180
                },
                "model": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "maxLength": 180
                },
                "window_days": {
                  "type": "integer",
                  "enum": [
                    7,
                    14,
                    30
                  ]
                },
                "unit": {
                  "type": "string",
                  "enum": [
                    "tokens",
                    "tool_calls"
                  ]
                },
                "amount": {
                  "type": "integer",
                  "minimum": 0
                },
                "input_tokens": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "minimum": 0
                },
                "output_tokens": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "minimum": 0
                },
                "cached_tokens": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "minimum": 0
                },
                "coverage": {
                  "type": [
                    "object",
                    "string",
                    "null"
                  ]
                },
                "evidence": {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              }
            }
          }
        }
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    }
  ]
}
