In shortThree 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 names the tools, what to configure, and the current prices and daily ceiling or preview limits, and the OpenAPI description 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 instead.
What does the first call look like?
A client makes these three requests itself; here they are by hand.
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.
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"}}}'List the tools. Three come back, each with the schema of its input and of its result.
curl -s https://api.policypal.link/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'Read a policy. The report is in
structuredContent, shaped by the tool’soutputSchema, and repeated as JSON text for clients that show a model only text. The receipt and remaining balance are in_meta.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: averdict;answersto the eight questions, each with theanswer, thefavourableone and itsquote;findings, each with aseverityand aquote; and theoptionsthe document gives the reader.compare_policies: each question with every service’s answer side by side, andunreadablefor the pages it could not read and why.policy_changes_since: thechanges, each withwas,nowandmovedAgainstTheReader, between the readings datedcomparedFromandcomparedTo.changesisnullwhen there is no reading from before the date.- A
check_policyreport, and each service in a comparison, carriesreadAt, andciteAswhen a public report page exists. Every result carriesnot_legal_advice.
What if a call fails?
- A refusal is a result with
isError: truewhose 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
-32042means 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 inerror.data.challengesinstead. Then retry. - Error
-32043means a payment did not verify, and the message says why. - Error
-32600on 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-Afterseconds.
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.
Give your agent a checkable answer.
Start with the manifest, then call the tool that matches the user’s question.