Skip to content

MCP Tools, Resources & Prompts

This page lists everything recon mcp exposes: 23 tools, 6 resources and 3 prompts. The tool list comes from a real tools/list response and was checked against each handler. For the protocol, transport and safety model, see MCP Server.

  • Every inputSchema is {"type": "object", "properties": {...}}, sometimes with a required list. None sets additionalProperties, and the server ignores arguments it does not know.
  • The server does not validate argument types. Each handler reads the value it expects (for example an integer) and treats a value of the wrong type as missing. A limit sent as the string "5" falls back to the default.
  • The Default column shows the default the handler uses. Where the schema advertises a default, it matches the handler. Defaults marked “handler only” are not in the schema.
  • env defaults to the workspace’s default_env everywhere it appears. Naming an environment that does not exist is not an error by itself. The request is resolved without environment variables, so a URL like {{base_url}}/v1/students then fails to parse.
  • request matches a saved request by exact ID or by name, ignoring case.
  • Successful results are the JSON objects shown under Returns, delivered as pretty-printed text in content[0].text. Errors come back with isError: true and a text message. See Results and errors.
  • Gated means the call is checked against [agent_policy] before it connects, as described in How tool calls are gated.
Tool Gated Records runs in the Flight Recorder
recon_list_requests no no
recon_latest_runs no no
recon_inspect_run no no
recon_search_history no no
recon_diff_runs no no
recon_send_request yes yes, one run with actor agent
recon_twin_run yes no
recon_verify_airlock no no
recon_scan_codebase no no (with sync: true it writes .http files)
recon_drift_report no no
recon_export_capsule no no
recon_run_flow yes yes, one run per executed step
recon_load_test yes, plus the load-test rule no
recon_paginate yes, per page no
recon_mock_export no no
recon_sse_stream yes no
recon_ws_exchange yes no
recon_graphql yes no
recon_grpc_call yes, except inspect_only no
recon_vault_list no no
recon_auth_status no no
recon_export_openapi no no
recon_check_openapi no no

Every gated call also writes agent activity entries, which you can read through recon://activity/recent.

Description: List saved .http requests and available environments in the Recon workspace.

Input: none (properties is empty).

Returns:

Key Type Meaning
workspace string Workspace name.
default_env string Default environment.
environments array of strings Environment names.
requests array One object per saved request: id, name, folder, method, url, source_file. url is the raw template, for example {{base_url}}/v1/students.
airlock_salt_fingerprint string Fingerprint of the active airlock salt.

Description: List recent Flight Recorder executions (filterable by status_min and request_id).

Property Type Required Default Notes
limit integer no 20 Maximum runs to return.
status_min integer no none Only runs with status at or above this value.
request_id string no none Only runs of this saved request ID.

Returns {"runs": [...]}, newest first. Each run summary has id, seq, ts_utc, actor, actor_label, request_id, request_name, env_name, method, url, status, total_ms, wire_bytes, is_baseline and verified_zero_leak. Summaries carry no headers or bodies.

Description: Inspect one Flight Recorder run through the maskkeel PII Airlock with attached Zero-PII Compliance Receipt.

Property Type Required Default
run_id string yes none

Returns the run with its response passed through the airlock:

Key Meaning
id, ts_utc, actor, request_id, request_name, env_name, method, url, status, protocol Run metadata.
waterfall, tls, assertions Timing breakdown, TLS details and assertion results as recorded.
handler_location Source location of the handler. Taken from the saved request’s # @handler tag, or else from the first scanned code route with the same method and a matching path. null if neither is found.
drift_warnings Field drift findings computed over the 10 most recent runs of the same request.
airlocked_response Response body after the airlock.
airlocked_headers Response headers after the airlock.
masked_paths Array of {path, strategy} for each masked field.
compliance_receipt Airlock receipt: salt_fingerprint, fields_masked, secrets_scrubbed, headers_stripped, verified_zero_leak, leaked_tokens_found, receipt_hash.

Errors: missing required parameter `run_id` , run `<id>` not found.

Description: Full-text search across historical HTTP requests, headers, and response bodies in .recon/flight.db.

Property Type Required Default
query string yes none
limit integer no 20

Returns {"matches": [...]} with run summaries in the same shape as recon_latest_runs. Error: missing required parameter `query` . For the search syntax, see Flight Recorder.

Description: Compute an airlocked semantic diff between two Flight Recorder run IDs.

Property Type Required Default
left_run_id string yes none
right_run_id string yes none

Both responses pass through the airlock before they are compared. Paths ignored in the diff are the workspace volatile_paths plus any volatile-path ignores saved for the left run’s request.

Returns {"diff": {...}} with status_left, status_right, status_changed, header_changes, body_changes, identical, ignored_count and latency_delta_ms. Each change has kind (added, removed, changed or type_changed), path, pattern, left and right. See Twin-Run & Diff.

Errors: missing `left_run_id` , missing `right_run_id` , run `<id>` not found.

Description: Execute a saved request or URL under Agent Policy Guardrails + Outbound Secret Firewall and return the airlocked response.

Property Type Required Default Notes
request string one of request or url none Saved request ID or name. Wins if both are given.
url string one of request or url none Ad-hoc URL. The run is recorded with request ID mcp-adhoc and name <METHOD> <url>.
method string no GET (handler only) Used only with url. Parsed case-insensitively.
env string no default_env (handler only) Environment to resolve variables from.

Order of steps:

  1. Pseudonymised values from earlier responses in this session are swapped back to real values in the URL and in a JSON or text body.
  2. The request’s # @pre-script runs, if any.
  3. Variables and secrets are resolved. The firewall can stop the request here.
  4. The agent policy is checked, and approval is awaited if needed.
  5. The firewall inspects the final outbound request.
  6. The request is sent and the saved assertions are evaluated.
  7. The # @post-script runs, if any. Its assertions are added to the results.
  8. The response, script logs and captured variables pass through the airlock, and the run is recorded with actor agent.

Returns:

Key Meaning
run_id ID of the recorded run.
status, protocol, waterfall Response status, HTTP version and timing breakdown.
assertions Array of {assertion, passed, detail}.
airlocked_headers, airlocked_body Response after the airlock.
masked_paths Array of {path, strategy}.
compliance_receipt Airlock receipt.
script_logs Log lines from pre- and post-scripts, after the airlock.
captured_vars Variables set by the post-script, each value passed through the airlock.

Errors: provide either `request` (saved id/name) or `url` , request `<name>` not found, E_FIREWALL_BLOCKED: ..., E_AGENT_POLICY_DENIED: ..., E_AGENT_APPROVAL_DENIED: ..., E_AGENT_APPROVAL_TIMEOUT: ..., plus script, resolution and transport errors as plain text.

Description: Run a saved request against two environments in parallel and return the airlocked semantic diff.

Property Type Required Default
request string yes none
env_a string yes none
env_b string yes none

Both environments must exist. The policy is checked for each side, A first, before either request is sent. Both requests then go through the firewall. Only the workspace volatile_paths are ignored in the diff. No runs are recorded.

Returns {"diff": {...}, "compliance_receipt_a": {...}, "compliance_receipt_b": {...}}. diff has the same shape as in recon_diff_runs and is computed on the airlocked responses.

Errors: missing `request` , missing `env_a` , missing `env_b` , request `<name>` not found, environment `<name>` not found, policy and approval errors. Firewall errors from this tool have no E_FIREWALL_BLOCKED: prefix.

Description: Audit the SHA-256 hash chain in the Flight Recorder ledger and report the active Airlock salt fingerprint.

Input: none.

Returns:

{
"ledger": {
"first_broken_id": null,
"head_hash": "0618c1bbbde2affa85dc47499ca5ef81a16f868db57fad158e87bcf76c777bcf",
"total_entries": 2,
"valid": true
},
"salt_fingerprint": "9d2de0d49b08"
}

Description: Scan local repository code and API specs to discover HTTP routes, DTOs, and exact file:line handler locations.

Property Type Required Default Notes
path string no workspace root Absolute, or relative to the workspace. Blank means the workspace root.
sync boolean no false Also stamp # @handler <file>:<line> onto matching saved requests and write unmatched routes to collections/discovered.http.

Returns {"scan": {...}, "sync": ...}. scan has root, files_scanned, frameworks_detected, routes, dtos and warnings. sync is null unless sync is true. See Code Scanning.

Description: Compute Three-Way Drift Radar findings across source code, .http collections, and airlocked Flight Recorder traffic.

Property Type Required Default
path string no workspace root

Scans path, then compares the routes with the saved requests and the 40 most recent runs, all airlocked.

Returns {"drift": {...}, "frameworks_detected": [...]}. drift has breaking_count, rename_count, warning_count, route_drifts and field_drifts. See Drift & Branch Diff.

Description: Export a tamper-evident Zero-PII Bug Report Capsule and optional Markdown summary from a Flight Recorder run ID.

Property Type Required Default
run_id string yes none
markdown boolean no true

Returns:

Key Meaning
capsule The capsule object, with schema_version recon.capsule/v1. See Bug Report Capsules.
verification {valid, hash_matches, zero_leak_verified, findings} from verifying the new capsule.
markdown Markdown summary, or null when markdown is false.

Errors: missing required parameter `run_id` , run `<id>` not found.

Description: Export workspace .http collections and Airlock-scrubbed Flight Recorder samples as a Zero-PII OpenAPI 3.1 YAML document.

Property Type Required Default
title string no workspace name
version string no 1.0.0

Uses the saved requests and the 80 most recent runs, airlocked. Returns {"yaml": "...", "spec": {...}, "airlocked": true}. spec.openapi is 3.1.0. See OpenAPI & ODCS Contracts.

Description: Validate a recorded Flight Recorder run response against an OpenAPI 3.0 / 3.1 YAML or JSON schema.

Property Type Required Default Notes
run_id string yes none
spec_yaml string one of spec_yaml or spec_path none The spec text. Wins if both are given.
spec_path string one of spec_yaml or spec_path none Absolute, or relative to the workspace.

The run’s stored response body must be JSON. The check runs against the stored body as recorded, not an airlocked copy. Returns {"report": {...}} with valid and violations, plus matched_path, matched_method and matched_status when the run matched an operation in the spec. Each violation has json_path, code and message.

Errors: missing `run_id` , provide `spec_yaml` or workspace-relative `spec_path` , failed to read `<path>`: ..., run `<id>` not found, response is not valid JSON: ..., plus spec parse errors.

Description: Execute a multi-step flows/*.flow.toml DAG workflow with parallel wave fan-out, extracted secret firewall propagation, and Flight Recorder logging.

Property Type Required Default Notes
flow_path string yes none See lookup order below.
env string no default_env (handler only)

flow_path is looked up in this order: an absolute path to a file, then a path relative to the workspace, then a discovered flow whose name matches (ignoring case) or whose file name matches exactly. For example, flows/smoke.flow.toml and Smoke found the same flow in testing.

Returns {"report": {...}} with flow_name, env_name, passed, steps, waves and total_duration_ms. Each step has id, request_name, wave, passed, skipped, status, run_id, assertions, extracted_vars, duration_ms and error. See Flows.

Errors: missing required parameter `flow_path` , workflow `<name>` not found, policy and approval errors.

Description: Run an HdrHistogram micro-load SLA benchmark against loopback or allow_load_envs targets (capped at 500 requests / 25 concurrency for AI safety).

Property Type Required Default Notes
request string one of request or url none
url string one of request or url none
method string no GET (handler only) Used only with url.
env string no default_env (handler only)
total_requests integer no 50 Must be 1 to 500.
concurrency integer no 5 Must be 1 to 25.
p99_budget_ms number no none SLA budget for p99 latency.
max_error_rate number no none SLA budget for error rate.

Out-of-range values are rejected, not clamped:

E_AGENT_POLICY_DENIED: MCP recon_load_test caps total_requests at 1..=500 (requested 501); use CLI `recon load` for unbounded suites.
E_AGENT_POLICY_DENIED: MCP recon_load_test caps concurrency at 1..=25 (requested 26).

After the normal policy check, a second load-test rule applies. Hosts in blocked_hosts are denied. Loopback hosts are allowed. Any other host is allowed only if env is listed in agent_policy.allow_load_envs, and is otherwise denied with a message naming agent_policy.allow_load_envs.

Returns {"report": {...}} with request_name, method, url, env_name, total_requests, succeeded, failed, error_rate, status_counts, elapsed_secs, achieved_rps, min_ms, mean_ms, max_ms, p50_ms, p90_ms, p95_ms, p99_ms, p999_ms, sla_passed, sla_failures and firewall_cleared. See Load Testing.

Description: Auto-detect Link headers, cursors, page numbers, or offsets across up to 20 pages behind the maskkeel PII Airlock and synthesize a secret-free fetchkeel.toml manifest.

Property Type Required Default Notes
request string one of request or url none
url string one of request or url none
env string no default_env (handler only)
strategy string no auto auto, link_header (or link, link-header), cursor, page_number (or page, page-number), offset_limit (or offset, offset-limit).
max_pages integer no 5 Clamped to 1 to 20.
per_page integer no 25 Clamped to 1 to 100.
data_path string no none Where the records sit in each page.
cursor_path string no none Where the next cursor sits in each page.

The handler also accepts method with url, as recon_load_test does, although the schema does not list it. Records always pass through the airlock.

Returns {"report": {...}} with detected_strategy, pages_fetched, records, records_total, records_jsonl, data_path, cursor_path, retries_429, airlocked and fetchkeel_manifest_toml. An unknown strategy returns pagination error: unknown pagination strategy `<value>` (expected auto, link_header, cursor, page_number, or offset_limit). See Pagination.

Description: Export a Zero-PII Freeze-to-Mock snapshot (.recon-mock.json format) from pinned baselines and recent Flight Recorder runs.

Input: none.

Returns {"pack": {...}} with schema_version recon.mock/v1, workspace_name, created_at, airlocked (true) and entries. Each entry has method, path, status, headers, body, is_baseline, source_run_id and airlocked. See Mock Server.

Description: Consume an HTTP SSE / AI LLM token stream (OpenAI, Anthropic, Gemini) behind the PII Airlock, measuring TTFT and tokens/sec (capped at 200 events).

Property Type Required Default Notes
request string one of request or url none
url string one of request or url none
method string no GET (handler only) Used only with url.
env string no default_env (handler only)
max_events integer no 100 Clamped to 1 to 200.
timeout_ms integer no 15000 Clamped to 500 to 60000.

Returns {"report": {...}} with url, status, completed, events, events_count, assembled_text, provider_detected, tokens_count, tokens_per_sec, ttft_ms, total_ms, airlocked and compliance_receipt. See SSE & LLM Streams.

Description: Send/receive messages over a WebSocket connection behind Agent Policy & PII Airlock (capped at 50 received frames).

Property Type Required Default Notes
url string one of request or url none
request string one of request or url none Wins if both are given.
env string no default_env (handler only)
messages array of strings no [] Messages to send. Items that are not strings are skipped.
max_receive integer no 10 Clamped to 1 to 50.
timeout_ms integer no 5000 Clamped to 500 to 30000.

For the policy check the call counts as GET when messages is empty and POST when it is not. So sending messages is a mutating call: it needs allow_local_mutations for loopback and can require approval.

Returns {"report": {...}} with url, connected_ms, total_ms, frames, airlocked and compliance_receipt. Each frame has seq, direction (sent or received), opcode, payload, is_json, offset_ms and ts_utc. See WebSocket.

Description: Execute GraphQL queries/mutations or run __schema introspection safely through Agent Policy Guardrails and PII Airlock.

Property Type Required Default Notes
url string yes none GraphQL endpoint.
query string when not introspecting none
variables object no none
operation_name string no none
introspect boolean no false Run schema introspection instead of query.
env string no default_env (handler only)

The request has no extra headers or auth and a fixed 15000 ms timeout. For the policy check a mutation counts as POST and everything else, including introspection, as GET.

Returns {"schema": {...}} when introspect is true, with source, query_type, mutation_type, subscription_type, queries, mutations and types. Otherwise it returns {"response": {...}} with status, data, errors, has_errors, extensions, headers, total_ms, airlocked and compliance_receipt. See GraphQL.

Errors: missing required parameter `url` , provide `query` or set `introspect: true` , policy and approval errors.

Description: Inspect .proto schemas (inspect_only=true) or invoke unary/server-streaming gRPC endpoints natively over HTTP/2 behind Agent Policy & PII Airlock.

Property Type Required Default Notes
proto_files array of strings yes none Absolute, or relative to the workspace.
inspect_only boolean no false Parse the files and return the schema. No network call, no policy check.
endpoint string unless inspect_only none Server URL.
service string unless inspect_only none Fully qualified service, for example demo.Echo.
method string unless inspect_only none RPC method name.
request_json object no {} Request message as JSON.
env string no default_env (handler only)

The call has no metadata or auth and a fixed 15000 ms timeout. It always counts as POST for the policy check.

With inspect_only, returns {"schema": {...}} with services and methods. Each method has service, method, full_path, input_type, output_type, client_streaming and server_streaming. Otherwise returns {"response": {...}}. See gRPC.

Errors: missing required parameter `proto_files` array, then missing required parameter `endpoint` , service and method in that order, policy and approval errors, and transport errors such as transport error: TCP connect `127.0.0.1:4799` failed: Connection refused (os error 111).

Description: Inspect encrypted .recon.secrets.age status and Zero-Plaintext metadata (keys, allowed_hosts, fingerprints — never raw secrets).

Input: none.

Returns {"status": {...}, "entries": [...]}. status has initialized, unlocked, entry_count, recipients, local_recipient and providers. entries is empty unless the vault is unlocked. See Vault & Secret URIs.

Description: Report secret provider readiness (age, .env, op, OS keychain) and Zero-Plaintext OAuth 2.0 token profile metadata.

Input: none.

Returns:

{
"oauth_profiles": [],
"providers": {
"age_unlocked": false,
"dotenv_present": false,
"keychain_tool_available": false,
"op_cli_available": false
}
}

oauth_profiles lists stored OAuth token profiles as metadata only. See Auth & Request Signing.

resources/list returns these six entries, each with uri, name and mimeType. resources/read returns {"contents": [{"uri": ..., "mimeType": "application/json", "text": ...}]}, where text is pretty-printed JSON. An unknown URI returns error -32602 with Unknown resource URI `<uri>` .

URI Name MIME type
recon://workspace Recon Workspace Summary application/json
recon://runs/latest Latest Airlocked Flight Runs application/json
recon://routes Collection Requests and Scanned Code Routes application/json
recon://drift/latest Three-Way API Drift Radar Report application/json
recon://activity/recent Live Agent Governance Activity and Approvals application/json
recon://airlock/config Zero-PII Airlock Rules and Salt Fingerprint application/json

An object with name, default_env, environments (names), requests_count and airlock_salt_fingerprint.

{
"airlock_salt_fingerprint": "9d2de0d49b08",
"default_env": "local",
"environments": [
"local",
"staging"
],
"name": "demo",
"requests_count": 3
}

An array of the 10 most recent run summaries, newest first, in the same shape as recon_latest_runs. Summaries carry no bodies.

An object with collection_requests (each with id, name, method, url, handler_location), plus code_routes and dtos from scanning the workspace root. code_routes and dtos are null if the scan fails.

The drift report (breaking_count, rename_count, warning_count, route_drifts, field_drifts) computed from a scan of the workspace root, the saved requests and the 12 most recent runs, airlocked.

An object with activity, the 40 most recent agent activity entries, and approvals, the 20 most recent approval requests. Each activity entry has id, seq, ts_utc, actor_label, tool_name, request_name, method, env_name, url, decision, reason, run_id, approval_id and airlock_redactions. decision is one of allowed, denied, pending_approval, approved or expired.

An object with salt_fingerprint and config, the mask.toml rules loaded at start-up (columns, tables, custom_rules, email_domain, date_shift_days).

{
"config": {
"columns": {
"email": "email",
"full_name": "name",
"phone": "phone",
"ssn": "ssn",
"studentId": "id",
"student_id": "id"
},
"custom_rules": [],
"date_shift_days": 30,
"email_domain": "example.edu",
"tables": {}
},
"salt_fingerprint": "9d2de0d49b08"
}

prompts/list returns three prompts. Every argument is optional. prompts/get returns {"description": ..., "messages": [{"role": "user", "content": {"type": "text", "text": ...}}]}. An unknown name returns error -32602 with Unknown prompt `<name>` .

Every prompt reads the env argument if you pass it, and otherwise uses default_env, even though only review-api-drift declares env.

Description: Diagnose a failing API endpoint using Airlock-scrubbed Flight Recorder runs and semantic diffs.

Argument Required Description
request no Optional request name or ID to focus on

From the 10 most recent runs, it lists up to 5 that have status 400 or higher, or whose request name contains request or whose request ID equals it. The match is case-sensitive. The result description is Debug failing API endpoint via Recon Flight Recorder. Real output with no failed runs:

Investigate failing API behavior in workspace `demo` (env `local`).
Recent matching runs:
- No failed runs recorded yet; inspect collection endpoints first.
Use `recon_inspect_run`, `recon_semantic_diff`, and `recon_twin_run` (remember all bodies pass through Zero-PII Airlock).

When runs match, each appears as a line in the form - <request name> (<method>) -> HTTP <status> [<env>] id=<run id>.

Description: Inspect Three-Way API Drift (code vs .http collection vs live responses) and propose remediations.

Argument Required Description
env no Optional target environment name

The result description is Review Three-Way API Drift. Real output with env set to staging:

Perform a Three-Way API Drift review for workspace `demo` targeting env `staging` (3 collection requests configured).
Read resource `recon://drift/latest` or invoke `recon_drift_report` + `recon_scan_repo`, then list breaking route removals, undocumented code routes, and schema mismatches.

Description: Generate ODCS / OpenAPI / assertion coverage for endpoints in the Recon workspace.

Argument Required Description
request no Optional request name or ID

Lists up to 10 saved requests whose name contains request (case-sensitive) or whose ID equals it, or all requests up to 10 when request is not given. The result description is Generate ODCS/OpenAPI contract test assertions. Real output with request set to Students:

Generate contract assertions and ODCS/OpenAPI checks for `demo` endpoints:
- GET List Students ({{base_url}}/v1/students)
Use `recon_infer_odcs` / `recon_export_openapi` after verifying live runs via `recon_send_request`.

If nothing matches, the list is - (no matching requests).