# MCP tools

How Keywrds' MCP tools work: ids, permissions, plans, spending previews, errors and the call log.

Agents connected to the Keywrds MCP server (see [Connect an agent](/docs/connect/)) use these tools. Every tool's description below comes straight from the server, so this reference always matches it.

## Tool groups

- [Account](/docs/mcp/account/): your plan, credits and projects. Start here to find project ids.
- [GSC opportunities](/docs/mcp/gsc/): sync Search Console data and read the opportunities it finds.
- [AI Answers](/docs/mcp/ai-answers/): brand identity, scenarios, probe runs and their answers.
- [Presence ledger](/docs/mcp/ledger/): next actions, decisions, directions, site intent and briefs.
- [Docs](/docs/mcp/docs/): search these docs and read a page, so an agent can look things up while it helps you.

## Ids

Tools take a `project_id`, and sometimes the id of something inside the project (an opportunity, ledger entry, scenario or run). Get project ids from `get_account`. Ids that don't belong to you get the same "not found" answer as ids that don't exist.

## Permissions and plans

Each tool needs one permission: `read`, `write` or `spend` (see [Connect an agent](/docs/connect/#permissions)). Tools for a feature your plan doesn't include return a message naming the plan that has it, with a link to upgrade, and do nothing.

## Previews before spending

Tools that start work (`run_gsc_analysis`, `suggest_scenarios`, `run_probes`, `generate_brief`) return a preview unless called with `confirm` set to true: what would happen, the credits it would use, your balance, and anything that would stop it. Ask the user before confirming.

## Results and errors

Successful calls return JSON plus a one-line summary. When a call can't go ahead, the result is an error with an `error` field:

| `error` | Meaning |
|---|---|
| `denied` | The connection isn't signed in, or lacks the permission (named in `missing_scope`) |
| `upgrade` | The plan doesn't include the feature; `plan` and `upgrade_url` say what to do |
| `not_found` | No such id in your account, or the project has no Search Console property |
| `refused` | A rule stopped it, for example a sync already running or the active-scenario limit |
| `error` | Something went wrong on Keywrds' side; try again |

See [Limits and errors](/docs/limits-and-errors/) for every limit.

## The call log

Every call is logged with the tool, the connection and the outcome. Argument names are logged; their values never are.
