---
type: Reference
title: MCP tools reference
description: Input schemas, outputs, batch limits, and fallback rules for decide, what_if, rerank, and list_deciders.
status: stable
tags: [reference, mcp, schema, tools]
---

# MCP tools reference

## `decide`

Evaluate one `state` (with optional `media` file paths) or a batch map of `items` against 1 to 400 typed questions in a single pass.

| Field | Type | Required | Notes |
|---|---|---|---|
| `state` | `string \| object \| array \| null` | Conditional | Required unless `items` or `media` is non-empty |
| `questions` | `map<id, Question>` | Yes | Keys are local labels; 1 to 400 questions |
| `media` | `array<string \| {path, kind?}>` | No | Workspace-scoped paths or `file://` URIs (`image`, `audio`, `video`, `file`) |
| `items` | `map<id, any>` | No | Batch records (up to `max_items`); sent as `{"item": record, "context": state?}` |
| `model` | `string` | No | Omit for auto (`fast` or `omni`); accepts tier names or raw model ID (unless locked) |
| `min_confidence` | `number` | No | Override abstention floor in `[0, 1]` |
| `cache_key` | `string` | No | Mapped to standard `prompt_cache_key` on `/v1/decisions` |

Question kinds:
- `noul`: `{type: "noul", instructions, criteria?: {true?, false?}, min_confidence?}`
- `choice`: `{type: "choice", instructions, criteria: map<opt, desc|null> (2..255), min_confidence?}`
- `score`: `{type: "score", instructions, criteria: string[] (2..10, lowest first), min_confidence?}`
- `span` (when `enable_spans = true`): `{type: "span", instructions, criteria: map<label, desc|null>}`

## `what_if`

Evaluate 2 to 16 named counterfactual scenarios against one shared `questions` rubric in bounded parallel.

| Field | Type | Required | Notes |
|---|---|---|---|
| `base_state` | `any` | No | Shared baseline state |
| `scenarios` | `map<id, Scenario>` | Yes | 2 to 16 entries; each `{state?, patch?, media?, model?}` |
| `questions` | `map<id, Question>` | Yes | Shared question rubric |
| `model` | `string` | No | Default model or tier for scenarios that omit `model` |
| `min_confidence` | `number` | No | Call-level abstention floor |

Returns per-scenario enriched answers plus a `comparison` map summarizing `min`, `max`, `max_delta`, and high-to-low `ranking` for `noul`/`score`, and `picks`, `flipped`, and `min_margin` for `choice`.

## `rerank`

Rank candidate documents against a query. Calls `POST /v1/rerank` directly and falls back on HTTP `404`/`405`/`501` to chunked 64-document `noul` checks on `POST /v1/systemone`.

| Field | Type | Required | Notes |
|---|---|---|---|
| `query` | `string` | Yes | Query or rubric |
| `documents` | `string[]` | Yes | 1 to 256 candidate strings |
| `top_n` | `integer` | No | Limit returned results |
| `return_documents` | `boolean` | No | Defaults to `false` to preserve agent context |
| `model` | `string` | No | Target model or tier |

## `list_deciders`

List configured semantic tiers (`fast`, `accurate`, `omni`) and, unless `lock_tiers = true`, live decision models from `GET /v1/models` (filtering by `caps.decision` or `capabilities` when Roundhouse metadata is present, with fallback to `/typesafe/v1/models` and `/v1/systemone/models`).

## Bundled skill (Skills over MCP)

`what-if` implements the MCP Skills extension (`io.modelcontextprotocol/skills`, SEP-2640) with `directoryRead: true`, embedding [the `what-if` Agent Skill](https://github.com/roundhouse-is/what-if/tree/main/skills/what-if/SKILL.md) directly inside the binary:

| Method | Request Params | Response / Contract |
|---|---|---|
| `skills/list` | `{cursor?}` | Catalog containing `skill://what-if/SKILL.md`, parsed YAML `frontmatter`, `resources[]` with `size` and `"sha256:<hex>"` digest, `ttlMs: 300000`, `cacheScope: "public"` |
| `skills/get` | `{uri}` | Single `skill` manifest entry matching `uri`, or JSON-RPC `-32602` (`ResourceNotFound`) when absent |
| `resources/list` | `{cursor?}` | Lists `skill://what-if/SKILL.md` (`mimeType: "text/markdown"`, byte `size`, `description`) |
| `resources/read` | `{uri}` | Returns embedded Markdown text for `skill://what-if/SKILL.md`, or `-32602` when absent |
| `resources/directory/read` | `{uri, cursor?}` | Returns direct children under `skill://what-if` (with or without trailing `/`), or `-32602` when absent |
