Expose bounded catalog, estimate, checkpoint, and run-query tools
Author: jmaglyCreated Sep 22, 2026Updated Sep 22, 2026
Parent: #208.
Depends on: #209.
Outcome
An MCP host can answer common OBLITERATUS planning and inspection questions without model loading or mutation.
Tool contracts
list_catalog: bounded, deterministic paging over existing model presets, study presets, and strategies. Return explicit kinds and stable identifiers.estimate_gpu: pure arithmetic from explicit total/active parameter counts, dtype, and GPU memory. Reject negative, zero where invalid, NaN, infinity, and oversized values; report assumptions/units. Do not callprofile_modelwith its currenttrust_remote_code=Truedefault or cause a Hugging Face lookup.inspect_checkpoint: callCheckpointService.inspectonly for paths within an operator-configured allowed root. Return the bounded descriptor/typed error, never tensor payloads or arbitrary file contents.list_runs,get_run_status,get_run_result: read only from one selectedRunArchiveroot, with bounded result sizes and existing redaction. Opening a missing archive must not create it; refactorRunArchiveread access as needed because its constructor currently creates the root.
Safety and acceptance
- Define typed input/output schemas and structured MCP results. Annotate read-only behavior accurately; enforce it in code because annotations are only hints. Return redacted operational tool errors.
- Reject path traversal, symlink escapes, forged run IDs, oversized requests and responses, and untrusted metadata attempting to act as instructions.
- Offline synthetic fixtures cover every tool and error path. No tool writes, downloads, launches, or probes a gateway under default policy.
- Add module ownership and relevant tests to
ci/test-risk-map.jsonand meet the repository's exact-head PR gates.
Source: elder-plinius/OBLITERATUS