name: tool-imports-list
kind: tool
description: Enumerate every managed-import handle with sidecar metadata.
type: reference
applies_to: mcp
When to use
CALL TO SEE WHICH MANAGED IMPORTS EXIST AND WHICH HAVE EXPIRED.
Render a UI of imports, find expired entries before pulse_drop, or check a handle name is free before pulse_import. Sweep is NOT invoked — expired entries are flagged via expired so callers decide to drop or extend.
Input
No arguments.
Output
{imports: [...]} (no envelope), in handle order, each {handle, path, sidecar, expires_in, pinned, expired}: sidecar carries handle, format, source_path, source_format, imported_at, expires_at, ttl_seconds, rows_imported; expires_in is a duration or "expired". imports: [] when no managed handles (never null).
Gotchas
- Managed imports ONLY: passthroughs and every other cohort are absent —
pulse_cohorts_listlists all cohorts in the data directory. expired=trueentries are still openable (Pulse never garbage-collects the underlying.pulse); usepulse_dropto evict.pinned=true⇒ imported withttl: "pin"(ttl_seconds0);expires_atandexpires_inare absent.
See
tool-import— create a managed handle.tool-drop— explicit eviction.tool-cohorts-list— every cohort, imported or not.