---
title: "Policy Analysis MCP Tools for AI Agents | Policy Pal"
description: "Check policies, compare services, and track answer changes with source quotes and reading dates. Connect an MCP client to Policy Pal’s three tools."
url: "https://policypal.link/agents"
---

**In short**  
Three MCP tools read public policies, compare services, and identify answer changes. Results carry source quotes and a reading date; a refusal names the reason.

# Policy analysis tools for AI agents.

Give your assistant a consistent answer to a policy question without putting the whole document in its context. Policy Pal reads the page, checks every stated claim against its source, and returns a compact report an agent can cite.

## When should an agent call Policy Pal?

- **Before a user accepts a policy:** `check_policy(url)` returns a qualitative verdict, eight fixed answers, and up to five consequential findings.
- **When comparing services:** `compare_policies(urls)` answers the same questions across two to five public policy pages and names any it could not read.
- **When a user asks what changed:** `policy_changes_since(url, since)` compares today’s answers with an earlier reading, or says when no earlier reading exists.

## What makes an answer usable?

Every stated claim includes a verbatim quote. A question the document does not answer is *not stated*, never a promise inferred from silence. Each report says when it was read; a stored result may be older than the current page. Anything but a privacy, cookie, terms-of-service or acceptable-use policy is refused without charge. The result is an automated reading, not legal advice or a numeric rating.

## How do I connect an MCP client?

Add `https://api.policypal.link/mcp` as a remote server using the Streamable HTTP transport, which some clients call `http`. There is no account, OAuth flow or API key to configure. Once you hold a balance key, add it in the client’s headers setting as `Authorization: Bearer <key>`.

The [machine-readable manifest](https://api.policypal.link/.well-known/mcp) names the tools, what to configure, and the current prices and daily ceiling or preview limits, and the [OpenAPI description](https://api.policypal.link/openapi.json) covers every route. The tools read public HTTPS policy URLs, not private files or a user’s browser. A person analyzing a document they were sent uses the [extension’s private-document flow](https://policypal.link/features) instead.

## What does the first call look like?

A client makes these three requests itself; here they are by hand.

1. **Initialize.** The answer names the protocol version and the rules a model has to follow: a silence is *not stated*, and a verdict is never a score.

   ```bash
   curl -s https://api.policypal.link/mcp \
     -H 'Content-Type: application/json' \
     -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"my-agent","version":"1.0.0"}}}'
   ```

2. **List the tools.** Three come back, each with the schema of its input and of its result.

   ```bash
   curl -s https://api.policypal.link/mcp \
     -H 'Content-Type: application/json' \
     -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
   ```

3. **Read a policy.** The report is in `structuredContent`, shaped by the tool’s `outputSchema`, and repeated as JSON text for clients that show a model only text. The receipt and remaining balance are in `_meta`.

   ```bash
   curl -s https://api.policypal.link/mcp \
     -H 'Content-Type: application/json' \
     -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"check_policy","arguments":{"url":"https://docs.github.com/en/site-policy/privacy-policies/github-general-privacy-statement"}}}'
   ```

## What does a result contain?

- `check_policy`: a `verdict`; `answers` to the eight questions, each with the `answer`, the `favourable` one and its `quote`; `findings`, each with a `severity` and a `quote`; and the `options` the document gives the reader.
- `compare_policies`: each question with every service’s answer side by side, and `unreadable` for the pages it could not read and why.
- `policy_changes_since`: the `changes`, each with `was`, `now` and `movedAgainstTheReader`, between the readings dated `comparedFrom` and `comparedTo`. `changes` is `null` when there is no reading from before the date.
- A `check_policy` report, and each service in a comparison, carries `readAt`, and `citeAs` when a public report page exists. Every result carries `not_legal_advice`.

## What if a call fails?

- **A refusal** is a result with `isError: true` whose text says why: the page is not a policy, could not be read, the input is invalid, or the caller has reached its daily ceiling. It costs nothing. Retry only when the text says to try again in a moment.
- **“Could not complete that reading”** is a failure on Policy Pal’s side. Nothing was charged; retry once.
- **Error `-32042`** means the balance cannot cover the call. The message states the price, a funding link to hand to the person who runs the agent and, the first time, the balance key the link pays into; a wallet pays a challenge in `error.data.challenges` instead. Then retry.
- **Error `-32043`** means a payment did not verify, and the message says why.
- **Error `-32600`** on a call that sends a balance key means the key is unknown or was replaced; the message says which.
- **HTTP 429** means the rate limit: wait the `Retry-After` seconds.

## What does an agent pay?

The first successful call from a caller is free. Further calls use prepaid balance: $0.01 when Policy Pal has already read the document, $0.06 when it must fetch and read it, and nothing for a refusal. A card adds at least $5.00 of balance. The manifest is authoritative for current prices.

The first payment challenge issues a balance key, named in its message and in `error.data.problem.balanceKey`. Send it on every call from then on, and keep it: only a hash of it is stored, so it cannot be shown again. Until the agent first sends it on a tool call, calls from the address it was issued to also draw on its balance; from then on only the key does. Reading the ledger with the key does not change that. To replace a key that may have leaked, send it to `POST /v1/agent/keys`: its balance moves to a new key and the old one stops working. Every result’s `_meta` carries its receipt, and `GET /v1/agent/ledger`, sent with the same key, shows the balance, today’s spend against the daily ceiling, and recent receipts, so whoever authorized the agent can check what it spent.

## Where can I verify a result?

The quote points back to the source document. Cite the dated policy and its sentence when answering a person, link `citeAs` when it is present, and use `policy_changes_since` when freshness matters. [Read the citation and crawler rules.](https://policypal.link/bot)

## Give your agent a checkable answer.

Start with the manifest, then call the tool that matches the user’s question.

[View the MCP manifest](https://api.policypal.link/.well-known/mcp) [Citation rules](https://policypal.link/bot)

---

© 2026 Policy Pal · An automated reading tool, not legal advice.
