# Saifuban

> Hard daily caps on AI agents' API spend, plus phone approval before any other payment.

- name: io.github.ut181749ut/saifuban
- version: 0.4.1
- connection class: R1 (autonomous)
- trust: 97/100
- quality: 83/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.ut181749ut%2Fsaifuban
- tools: https://api.protogrid.dev/v1/servers/io.github.ut181749ut%2Fsaifuban/tools

**An agent can connect on its own if it already holds `SAIFUBAN_TOKEN`.** Remote endpoint behind a static API key or header. The registry never sees the value; the agent fills the placeholder.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "saifuban": {
      "type": "http",
      "url": "https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp",
      "headers": {
        "Authorization": "Bearer ${SAIFUBAN_TOKEN}"
      }
    }
  }
}
```

Placeholders to fill: `${SAIFUBAN_TOKEN}`.

## Trust

- hygiene: 100
- liveness: 100
- freshness: 100
- provenance: 90
- drivers: +repository +namespace-matches-repo +website +reachable +uptime-100% +updated-21d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 83/100 (good)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-11-25; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 89 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 4 of 4 tools declare readOnlyHint or destructiveHint
- fail `tools.directory_hints`: no tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: request_payment (idempotentHint); check_payment_status (idempotentHint); list_payments (idempotentHint); …
- pass `tools.token_cost`: about 875 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool names, descriptions, schemas or annotations
- pass `tools.poisoning`: no instructions aimed at the model in tool definitions

### stability: 83 (weight 15)

- warn `stability.changes`: 7 tool changes in 30 days
- pass `stability.rug_pull`: no tool changed its meaning under the same name
- pass `stability.new_links`: no tool change named a new site

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 4, about 875 tokens to load them all
- tool set hash: e851c070ba8e525a4e6151e44b91423a
- tools last changed: 2026-11-17T15:17:31.131Z
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.ut181749ut/saifuban.svg)](https://protogrid.dev/servers/io.github.ut181749ut/saifuban)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

- 2026-11-17 `get_budget` changed (annotations)
- 2026-11-17 `list_payments` changed (annotations)
- 2026-11-17 `check_payment_status` changed (annotations)
- 2026-11-09 `get_budget` changed (description)
  - before: このAIが今日あといくら使えるか、1回の上限、自動承認ライン、使ってよい支払先を確認する。 / Check today's remaining budget, per-payment limit, auto-approve amount and allowed merchants.
  - after: このAIが今日・今週・今月あといくら使えるか、1回の上限、自動承認ライン、使ってよい支払先を確認する。 / Check the remaining daily, weekly and monthly budget, per-payment limit, auto-approve amount and allowed merchants.
- 2026-11-09 `request_payment` changed (description, inputSchema)
  - before: お金を使う前に必ず呼ぶツール。支払先・金額・理由を財布番に申請し、許可が出たかを返す。status が approved のときだけ支払ってよい。pending_approval は持ち主の承認待ちで、まだ支払ってはいけない(持ち主のスマホに通知が届く)。denied や expired のときは支払わず、reason をユーザーに伝える。 / Call this BEFORE spending any money. Pay only when status is approved. pending_approval means the owner must approve on their phone — do not pay yet. When approved, the result includes payment_token: a single-use token that payment tools can verify, so payments made without approval can be refused. If the payment is a subscription or renews automatically, set recurring. Before buying something you may already have paid for, call list_payments.
  - after: お金を使う前に必ず呼ぶツール。支払先・金額・理由を財布番に申請し、許可が出たかを返す。status が approved のときだけ支払ってよい。pending_approval は持ち主の承認待ちで、まだ支払ってはいけない(持ち主のスマホに通知が届く)。denied や expired のときは支払わず、reason をユーザーに伝える。 / Call this BEFORE spending any money. Pay only when status is approved. pending_approval means the owner must approve on their phone — do not pay yet. When approved, the result includes payment_token: a single-use token that payment tools can verify, so payments made without approval can be refused. If the payment is a subscription or renews automatically, set recurring. Before buying something you may already have paid for, call list_payments. If you get pending_approval, poll check_payment_status instead of calling request_payment again (a repeat of a pending request returns the same request).
- 2026-11-08 `list_payments` added
  - このAI自身の過去の支払い申請を調べる(二重払い・二重契約を避けるため)。例: 今月すでにSpotifyを承認済みか。 / Look up this agent's own past payment requests, e.g. to check whether a Spotify charge was already approved this month, and avoid paying twice.
- 2026-11-08 `request_payment` changed (description, inputSchema)
  - before: お金を使う前に必ず呼ぶツール。支払先・金額・理由を財布番に申請し、許可が出たかを返す。status が approved のときだけ支払ってよい。pending_approval は持ち主の承認待ちで、まだ支払ってはいけない(持ち主のスマホに通知が届く)。denied や expired のときは支払わず、reason をユーザーに伝える。 / Call this BEFORE spending any money. Pay only when status is approved. pending_approval means the owner must approve on their phone — do not pay yet. When approved, the result includes payment_token: a single-use token that payment tools can verify, so payments made without approval can be refused.
  - after: お金を使う前に必ず呼ぶツール。支払先・金額・理由を財布番に申請し、許可が出たかを返す。status が approved のときだけ支払ってよい。pending_approval は持ち主の承認待ちで、まだ支払ってはいけない(持ち主のスマホに通知が届く)。denied や expired のときは支払わず、reason をユーザーに伝える。 / Call this BEFORE spending any money. Pay only when status is approved. pending_approval means the owner must approve on their phone — do not pay yet. When approved, the result includes payment_token: a single-use token that payment tools can verify, so payments made without approval can be refused. If the payment is a subscription or renews automatically, set recurring. Before buying something you may already have paid for, call list_payments.

Full history: https://api.protogrid.dev/v1/servers/io.github.ut181749ut%2Fsaifuban/changes

## Remotes

- https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp (streamable-http, auth api_key ${SAIFUBAN_TOKEN}, reachable true, uptime30d 1)

## Packages

_none_

## Tools (4)

- `check_payment_status`: 以前の申請(request_id)が承認されたかを確認する。approved になってから支払うこと。 / Check whether an earlier request was approved. Pay only after it is approved.
- `get_budget`: このAIが今日・今週・今月あといくら使えるか、1回の上限、自動承認ライン、使ってよい支払先を確認する。 / Check the remaining daily, weekly and monthly budget, per-payment limit, auto-approve amount and allowed merchants.
- `list_payments`: このAI自身の過去の支払い申請を調べる(二重払い・二重契約を避けるため)。例: 今月すでにSpotifyを承認済みか。 / Look up this agent's own past payment requests, e.g. to check whether a Spotify charge was already approved this month, and avoid paying twice.
- `request_payment`: お金を使う前に必ず呼ぶツール。支払先・金額・理由を財布番に申請し、許可が出たかを返す。status が approved のときだけ支払ってよい。pending_approval は持ち主の承認待ちで、まだ支払ってはいけない(持ち主のスマホに通知が届く)。denied や expired のときは支払わず、reason をユーザーに伝える。 / Call this BEFORE spending any money. Pay only when status is approved. pending_approval means the owner must approve on their phone — do not pay yet. When approved, the result includes payment_token: a single-use token that payment tools can verify, so payments made without approval can be refused. If the payment is a subscription or renews automatically, set recurring. Before buying something you may already have paid for, call list_payments. If you get pending_approval, poll check_payment_status instead of calling request_payment again (a repeat of a pending request returns the same request).
