mcp-metsuke-crunchtools
v3.8.0Stateful reports catalog MCP server (definitions + gathered outputs)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_reports_tool List Reports Tool
List all report definitions in the catalog. Returns each definition with its gather prompt, owner agent, schedule, source config, and last-updated time.
get_spec_tool Get Spec Tool
Return the gather spec (prompt + source config) for a report definition. This is what the autonomous gatherer calls on callback to learn what to collect for the named report.
| Parameter | Type | Description |
|---|---|---|
name * | string | The report definition name (e.g. "core-platform-status") |
upsert_definition_tool Upsert Definition Tool
Create or update a report definition. The owner_agent field makes the gatherer identity data, not code, so gathering can be re-homed to another agent without a rebuild. The schedule is a live cron expression: Metsuke's built-in scheduler fires the report when it comes due, in the given timezone.
| Parameter | Type | Description |
|---|---|---|
gather_prompt * | string | The instruction the gatherer runs to collect findings |
name * | string | Unique report name (e.g. "core-platform-status") |
owner_agent | string | Which agent gathers this report (default: "kagetora") |
schedule | Cron expression for when to fire (e.g. "0 6 * * 5"); None = manual only | |
source_config | Which sources to sweep, as a JSON object | |
timezone | string | IANA timezone the schedule runs in (default: "UTC") |
trigger_report_tool Trigger Report Tool
Fire a report gather right now, without waiting for its schedule. Dispatches the same callback the scheduler uses: Metsuke POSTs the trigger to the Trentina alert endpoint, which forwards it to the owning gatherer. Requires the callback to be configured (TRENTINA_ALERT_URL + METSUKE_ALERT_TOKEN), unless the owner is a pull owner (METSUKE_PULL_OWNERS): then the run is opened and left for the owner.
| Parameter | Type | Description |
|---|---|---|
name * | string | The report definition name to fire (e.g. "core-platform-status") |
save_output_tool Save Output Tool
Persist a gathered report output, completing the run that opened it. The gatherer writes findings here after sweeping the sources. Each finding in payload should carry its own source URL so the compiler can cite it. Pass the run_id Metsuke handed you in the fire callback so this completes that exact in-flight run (one row per fire). Omit run_id for an ad-hoc direct save; Metsuke stamps a fresh run identity either way.
| Parameter | Type | Description |
|---|---|---|
payload * | array | List of findings. Each needs a non-empty summary and should carry its source_url; see Finding for the other allowed keys |
report_name * | string | The report definition this output belongs to |
gatherer_run_ref | Opaque reference to the gatherer run that produced this | |
run_id | The run to complete (from the fire callback); None = direct save | |
status | string | One of "gathering", "ready", "compiled", "failed" (default: "ready") |
window_end | End of the reporting window (ISO date/datetime) | |
window_start | Start of the reporting window (ISO date/datetime) |
get_output_tool Get Output Tool
Read a gathered report output for compiling a report. Returns the most recent output by default, or the latest output gathered on a specific date when gathered_date is given.
| Parameter | Type | Description |
|---|---|---|
name * | string | The report definition name |
gathered_date | Optional YYYY-MM-DD to fetch that day's output instead |
list_outputs_tool List Outputs Tool
List saved report outputs (the run history), newest first. Returns one lightweight row per saved gather — id, report_name, gathered_at, reporting window, status, and a finding_count — but NOT the payloads, so the full history stays cheap to browse. Use get_output_tool to pull one run's findings, and delete_output_tool / prune_outputs_tool to prune.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max rows to return, newest first (default 50, max 500) |
report_name | Optional report to filter to; None lists across all reports |
delete_output_tool Delete Output Tool
Delete one saved report output by id. Returns the deleted output's metadata (with deleted=True). Find ids with list_outputs_tool. Raises if no output carries that id.
| Parameter | Type | Description |
|---|---|---|
output_id * | integer | The id of the output to delete (from list_outputs_tool) |
prune_outputs_tool Prune Outputs Tool
Bulk-prune a report's saved outputs. Returns the count and ids deleted. Give exactly one criterion: keep_last retains the N most recent outputs and deletes the rest (keep_last=0 deletes them all); before_date deletes every output gathered strictly before that date.
| Parameter | Type | Description |
|---|---|---|
report_name * | string | The report whose outputs to prune |
before_date | Delete outputs gathered before this date (YYYY-MM-DD) | |
keep_last | Retain this many newest outputs, delete older ones |
get_sweep_tool Get Sweep Tool
Read the pre-gathered sweep for a run. Swept reports are gathered by Metsuke before the gatherer is called: fixed source calls, reply-state checks and noise filters run in code, and the results are stored on the run as sections of compact records. Call with no section for the index (window, overall status, per-section record counts and errors), then page through each section you need.
| Parameter | Type | Description |
|---|---|---|
page | integer | 1-based page of records within the section |
page_size | integer | Records per page (max 50) |
report_name | Alternatively, use this report's newest swept run | |
run_id | The run from the callback (preferred) | |
section | A section name from the index; omit for the index itself |