mcp-metsuke-crunchtools

v3.8.0
mcp-metsuke-crunchtools Checked 4 hours ago Published 5 days ago

Stateful 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.

ParameterTypeDescription
name *stringThe 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.

ParameterTypeDescription
gather_prompt *stringThe instruction the gatherer runs to collect findings
name *stringUnique report name (e.g. "core-platform-status")
owner_agentstringWhich agent gathers this report (default: "kagetora")
scheduleCron expression for when to fire (e.g. "0 6 * * 5"); None = manual only
source_configWhich sources to sweep, as a JSON object
timezonestringIANA 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.

ParameterTypeDescription
name *stringThe 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.

ParameterTypeDescription
payload *arrayList of findings. Each needs a non-empty summary and should carry its source_url; see Finding for the other allowed keys
report_name *stringThe report definition this output belongs to
gatherer_run_refOpaque reference to the gatherer run that produced this
run_idThe run to complete (from the fire callback); None = direct save
statusstringOne of "gathering", "ready", "compiled", "failed" (default: "ready")
window_endEnd of the reporting window (ISO date/datetime)
window_startStart 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.

ParameterTypeDescription
name *stringThe report definition name
gathered_dateOptional 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.

ParameterTypeDescription
limitintegerMax rows to return, newest first (default 50, max 500)
report_nameOptional 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.

ParameterTypeDescription
output_id *integerThe 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.

ParameterTypeDescription
report_name *stringThe report whose outputs to prune
before_dateDelete outputs gathered before this date (YYYY-MM-DD)
keep_lastRetain 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.

ParameterTypeDescription
pageinteger1-based page of records within the section
page_sizeintegerRecords per page (max 50)
report_nameAlternatively, use this report's newest swept run
run_idThe run from the callback (preferred)
sectionA section name from the index; omit for the index itself