# Spendplane — AI Privacy, Redaction & Cost Routing

> AI Privacy Firewall: PII/secret leak scanner, hybrid cost estimator & reversible agent redaction.

- name: com.spendplane/spendplane
- version: 1.0.0
- connection class: R2 (oauth_consent_once)
- trust: 83/100 flags: no-repository
- quality: 94/100 (new)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/com.spendplane%2Fspendplane
- tools: https://api.protogrid.dev/v1/servers/com.spendplane%2Fspendplane/tools

**An agent can connect after a one-time OAuth consent by a human.** Remote endpoint behind OAuth 2. Tokens stay with the agent; the registry only exposes the authorization metadata.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "spendplane": {
      "type": "http",
      "url": "https://api.spendplane.com/mcp"
    }
  }
}
```


## Trust

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

## Quality 94/100 (new)

### protocol: n/a (weight 25)

- n/a `protocol.modern`, `protocol.stateless`, `protocol.transport`, `protocol.list_ttl`: no remote answered a protocol handshake (not probed yet, unreachable, or local-only)

### authorization: 83 (weight 15)

- pass `auth.prm`: Protected Resource Metadata (RFC 9728) published
- pass `auth.as_metadata`: authorization server metadata reachable
- warn `auth.cimd`: only Dynamic Client Registration, deprecated in 2026-07-28 in favour of CIMD
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 100 (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`: 6 of 6 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- pass `tools.token_cost`: about 1,228 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, prompt or resource definitions
- pass `tools.poisoning`: no instructions aimed at the model in tool, prompt or resource definitions

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

- n/a `stability.changes`, `stability.rug_pull`, `stability.new_links`: tool history recorded for 2 of the 7 days needed

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

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

- tools: 6, about 1,228 tokens to load them all
- tool set hash: ee2bd7a1aa4e7cd676e7a7d982769af7
- badge: [![protogrid quality](https://protogrid.dev/badge/com.spendplane/spendplane.svg)](https://protogrid.dev/servers/com.spendplane/spendplane)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

_No changes to tool, prompt or resource template definitions recorded._

## Remotes

- https://api.spendplane.com/mcp (streamable-http, auth oauth2, reachable true, uptime30d 1)

## Packages

_none_

## Tools (6)

- `compare_llm_pricing`: List current model input/output pricing per 1M tokens and context windows from Spendplane's routing catalog, with optional substring filter.
- `draft_code_with_free_model`: Delegate code, configuration, or boilerplate drafting to Spendplane's zero-cost free-model pool with pre-egress PII/secret redaction so premium agent tokens are only spent on review and verification.
- `estimate_ai_workload_cost`: Calculate estimated monthly AI inference cost and local/budget/premium routing mix based on workload volume, routing preference (budget, balanced, deadline), and project template.
- `get_spendplane_architecture_guide`: Return verified setup instructions, endpoints, pricing tiers, and architectural documentation for Spendplane Gateway, AI Safe Desktop/Mobile, Reversible Agent Privacy, and Customer Portal.
- `scan_text_for_ai_leaks`: Statelessly inspect prompt text, support transcripts, or tool JSON for API keys, bearer tokens, private keys, emails, phone numbers, IPs, SSNs, credit cards, and custom sensitive terms, returning masked text and finding counts.
- `simulate_reversible_agent_redaction`: Demonstrate Spendplane's opt-in Reversible Agent Privacy Add-On: masks entities into run-scoped placeholders ([EMAIL_01], [CUSTOMER_ID_02]), checks per-tool/field allowlists, and verifies cross-run token blocking.

## Prompts and resources

### Prompts (2)

- `` audit_my_prompt_for_leaks ``: Inspect a prompt or agent payload for PII/secrets before sending it to an LLM.
- `` plan_my_ai_routing_budget ``: Estimate monthly spend and smart-routing mix for an AI workload.

### Resources (3)

- `` spendplane://docs/overview ``: Data VPN Firewall + Pre-Egress Gateway + AI Safe Mobile/Desktop overview.
- `` spendplane://docs/quickstart ``: Drop-in OpenAI/Anthropic compatible proxy base URLs and local runner setup.
- `` spendplane://docs/reversible-agent-privacy ``: Run-scoped placeholder vaults, selective tool argument restoration, and metadata-only audit traces.
