# On the Books

> Local law in US towns: municipal code passages and answers cited to chapter and section.

- name: org.onthebooks/onthebooks
- version: 1.4.0
- connection class: R0 (autonomous)
- trust: 83/100 flags: no-repository
- quality: 89/100 (new)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/org.onthebooks%2Fonthebooks
- tools: https://api.protogrid.dev/v1/servers/org.onthebooks%2Fonthebooks/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "onthebooks": {
      "type": "http",
      "url": "https://onthebooks.org/mcp",
      "headers": {
        "Authorization": "Bearer ${ONTHEBOOKS_TOKEN}"
      }
    }
  }
}
```

Placeholders to fill: `${ONTHEBOOKS_TOKEN}`.

## Trust

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

## Quality 89/100 (new)

### 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: 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`: 4 of 4 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- pass `tools.token_cost`: about 823 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 3 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: 4, about 823 tokens to load them all
- tool set hash: 06a07783ee44187df7ed408a1000de24
- tools last changed: 2026-11-26T08:37:58.511Z
- badge: [![protogrid quality](https://protogrid.dev/badge/org.onthebooks/onthebooks.svg)](https://protogrid.dev/servers/org.onthebooks/onthebooks)
- 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-26 `compare` changed (description, outputSchema, annotations)
  - before: Ask the same question of 2 or 3 towns and get one comparison, each town's rule cited to its own code. Key required; uses one credit per town. Takes 20–60 seconds. Read-only.
  - after: Ask the same question of 2 or 3 towns and get one comparison, each town's rule cited to its own code. Needs a connected pass (sign in) or a key; counts one question per town. Takes 20–60 seconds. Changes nothing except that count.
- 2026-11-26 `ask` changed (description, outputSchema, annotations)
  - before: Ask a plain-English question about one town's local law ("Can I keep chickens?", "How tall can my fence be?") and get a written answer cited to the chapter and section of the town's code. Takes 10–40 seconds. With a key, each answer uses one credit. Without a key, it returns the matching passages of the code instead of a written answer. Read-only.
  - after: Ask a plain-English question about one town's local law ("Can I keep chickens?", "How tall can my fence be?") and get a written answer cited to the chapter and section of the town's code. Takes 10–40 seconds. Signed in with a pass (or with a key), each answer counts as one of the pass's questions. Without, it returns the matching passages of the code instead of a written answer. Changes nothing except that count.
- 2026-11-26 `search_code` changed (description, inputSchema, outputSchema, annotations)
  - before: Search one town's municipal code (its local ordinances) by keyword and get the matching passages in the code's own words, each with its chapter and section, plus the link to the town's official published code. No key needed, no model call. Leave "town" out to search every town's code at once (needs a key). Read-only.
  - after: Search one town's municipal code (its local ordinances) by keyword and get the matching passages in the code's own words, each with its chapter and section, plus the link to the town's official published code. No sign-in needed, no model call. Leave "town" out to search every town's code at once (needs a connected pass or a key). Read-only.
- 2026-11-26 `find_town` changed (description)
  - before: Look up a US town, city, village, borough, township or county in the On the Books library of local codes (9,700+ municipalities, all 50 states) and get its id for the other tools. No key needed. Read-only.
  - after: Look up a US town, city, village, borough, township or county in the On the Books library of local codes (9,700+ municipalities, all 50 states) and get its id for the other tools. No sign-in needed. Read-only.

Full history: https://api.protogrid.dev/v1/servers/org.onthebooks%2Fonthebooks/changes

## Remotes

- https://onthebooks.org/mcp (streamable-http, auth none, reachable true, uptime30d 1)

## Packages

_none_

## Tools (4)

- `ask`: Ask a plain-English question about one town's local law ("Can I keep chickens?", "How tall can my fence be?") and get a written answer cited to the chapter and section of the town's code. Takes 10–40 seconds. Signed in with a pass (or with a key), each answer counts as one of the pass's questions. Without, it returns the matching passages of the code instead of a written answer. Changes nothing except that count.
- `compare`: Ask the same question of 2 or 3 towns and get one comparison, each town's rule cited to its own code. Needs a connected pass (sign in) or a key; counts one question per town. Takes 20–60 seconds. Changes nothing except that count.
- `find_town`: Look up a US town, city, village, borough, township or county in the On the Books library of local codes (9,700+ municipalities, all 50 states) and get its id for the other tools. No sign-in needed. Read-only.
- `search_code`: Search one town's municipal code (its local ordinances) by keyword and get the matching passages in the code's own words, each with its chapter and section, plus the link to the town's official published code. No sign-in needed, no model call. Leave "town" out to search every town's code at once (needs a connected pass or a key). Read-only.

## Prompts and resources

### Resources (1)

- `` ui://widget/onthebooks-card-v5.html ``: Shows an On the Books answer, comparison or code passages.
