# What Do They Know?

Search UK FOI requests, public authorities, and responses. Draft and submit Freedom of Information requests.

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y smithery mcp add bouch/whatdotheyknow

# Browse available tools
npx -y smithery tool list bouch/whatdotheyknow

# Get full schema for a tool
npx -y smithery tool get bouch/whatdotheyknow build_request_url

# Call a tool
npx -y smithery tool call bouch/whatdotheyknow build_request_url '{}'
```

## Direct MCP Connection

Endpoint: `https://whatdotheyknow--bouch.run.tools`

## Tools (8)

- `build_request_url` — Build a prefilled WhatDoTheyKnow request URL.
- `get_request_feed_items` — Return parsed Atom feed entries for a specific FOI request as structured objects.
- `search_request_events` — Search WhatDoTheyKnow's feed-based event index and return structured results.
- `search_authorities` — Search WhatDoTheyKnow public authorities by name.
- `create_request_record` — Create a request through the experimental write API.
- `update_request_state` — Update the user-assessed state of a request through the experimental write API.
- `list_prompts` — List all available prompts.
- `get_prompt` — Get a prompt by name with optional arguments.

```bash
# Get full input/output schema for a tool
npx -y smithery tool get bouch/whatdotheyknow <tool-name>
```

## Prompts (1)

- `draft_foi_request` (authority_slug, topic, facts) — Draft a narrow, specific FOI request suitable for WhatDoTheyKnow.
