# Intelligent Legal Search — get_points_balance

Search Pkulaw Intelligent Legal via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by PKULaw, configure supported query parameters and filters, and retrieve structured data including text, returned type field, returned account status field, returned available points field, and returned expiring points field for document research and entity reference, and integration reference.

Documentation: https://openany.si/market/apis/pkulaw/pkulaw-intelligent-legal-search-get-points-balance/?offering=413392f2-56d9-47ea-9e35-34ce6fed57e3
API ID: 413392f2-56d9-47ea-9e35-34ce6fed57e3
Provider: pkulaw
Contract revision: 5
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/pkulaw/legal-search/get_points_balance
Page update time: 2026-12-03T02:50:02.662Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.05 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:50:00.974Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "50000",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Intelligent Legal Search — get_points_balance request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "properties": {
        "expiringWindowDays": {
          "default": 30,
          "description": "Window in days for counting points nearing expiry; default 30, range 1 to 365. Pass 7 if the user asks how many expire within a week; for within this year, do not estimate dates: pass 365.",
          "maximum": 365,
          "minimum": 1,
          "title": "expiringWindowDays",
          "type": "integer"
        }
      },
      "title": "get_points_balanceArguments",
      "type": "object",
      "description": "Query points balance (0 points, placed last)"
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "_meta": {
      "type": "object",
      "properties": {
        "io.modelcontextprotocol/serverInfo": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "title": {
              "type": "string"
            },
            "version": {
              "type": "string"
            }
          }
        },
        "pkulaw/account": {
          "type": "object",
          "properties": {
            "expiringWindowDays": {
              "type": "integer"
            }
          }
        },
        "pkulaw/evidence": {
          "type": "object",
          "properties": {
            "confidence": {
              "type": "string"
            },
            "notes": {
              "type": "array",
              "items": {}
            },
            "origin": {
              "type": "string"
            },
            "retrievedAt": {
              "type": "string"
            },
            "verifiedByApi": {
              "type": "boolean"
            }
          }
        },
        "ui": {
          "type": "object",
          "properties": {
            "resourceUri": {
              "type": "string"
            }
          }
        }
      }
    },
    "content": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        }
      }
    },
    "isError": {
      "type": "boolean"
    },
    "resultType": {
      "type": "string"
    },
    "structuredContent": {
      "type": "object",
      "properties": {
        "accountStatus": {
          "type": "string"
        },
        "availablePoints": {
          "type": "integer"
        },
        "expiringPoints": {
          "type": "integer"
        },
        "expiringWindowDays": {
          "type": "integer"
        },
        "nearestExpireOn": {
          "type": "string"
        },
        "portalPointsUrl": {
          "type": "string"
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/pkulaw/legal-search/get_points_balance' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  --data-raw '{}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "_meta": {
    "io.modelcontextprotocol/serverInfo": {
      "name": "pkulaw-account",
      "title": "北大法宝·查询积分余额",
      "version": "1.1.1"
    },
    "pkulaw/account": {
      "expiringWindowDays": 30
    },
    "pkulaw/evidence": {
      "confidence": "A",
      "notes": [],
      "origin": "account",
      "retrievedAt": "2026-10-28T12:48:19Z",
      "verifiedByApi": true
    },
    "ui": {
      "resourceUri": "ui://pkulaw-account/points-balance.html"
    }
  },
  "content": [
    {
      "text": "查询时刻 2026-10-28 20:48:19（北京时间）：可用积分 7250。\n30 天内即将过期 7250；最近过期日 2026-10-28。\n账户状态：正常。\n充值与流水：https://mcp.pkulaw.com/console/points",
      "type": "text"
    }
  ],
  "isError": false,
  "resultType": "complete",
  "structuredContent": {
    "accountStatus": "active",
    "availablePoints": 7250,
    "expiringPoints": 7250,
    "expiringWindowDays": 30,
    "nearestExpireOn": "2026-10-28",
    "portalPointsUrl": "https://mcp.pkulaw.com/console/points"
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- pkulaw: https://openany.si/market/apis/pkulaw/pkulaw-intelligent-legal-search-get-points-balance/?offering=413392f2-56d9-47ea-9e35-34ce6fed57e3

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
