[
  {
    "name": "briefing.morning",
    "description": "Composite morning briefing: interventions, goals, and degraded blocks.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "since": {
          "type": "string",
          "description": "ISO timestamp to scope 'since you left' (default: 24h ago)"
        }
      }
    }
  },
  {
    "name": "briefing.interventions",
    "description": "Approval gates, unacknowledged failures, and stuck runs.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "limit": {
          "type": "number",
          "description": "Max items (default 6, max 200)"
        }
      }
    }
  },
  {
    "name": "briefing.shipLog",
    "description": "Recently delivered workflow runs and their artifacts.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "briefing.runningAgents",
    "description": "Currently running agents across the tenant fleet.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "briefing.decisions",
    "description": "Human approval decisions on recent runs.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "briefing.fleetHealth",
    "description": "Run vitals, instance heartbeat, and agent sessions.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "integrations.list",
    "description": "List integration instances without secret values.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "integrations.health",
    "description": "Unified health for every integration instance.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "integrations.save",
    "description": "Upsert an integration config and optional encrypted secret.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "provider_type": {
          "type": "string",
          "description": "Integration provider type"
        },
        "provider_id": {
          "type": "string",
          "description": "Provider instance id"
        }
      },
      "required": [
        "provider_type",
        "provider_id"
      ]
    }
  },
  {
    "name": "integrations.sync",
    "description": "Run one explicit KPI-source sync.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "provider_type": {
          "type": "string",
          "description": "Integration provider type"
        },
        "provider_id": {
          "type": "string",
          "description": "Provider instance id"
        }
      }
    }
  },
  {
    "name": "integrations.trigger_save",
    "description": "Create or update one trigger rule on an integration.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "provider_type": {
          "type": "string",
          "description": "Integration provider type"
        },
        "provider_id": {
          "type": "string",
          "description": "Provider instance id"
        }
      },
      "required": [
        "provider_type",
        "provider_id"
      ]
    }
  },
  {
    "name": "integrations.trigger_delete",
    "description": "Delete one trigger rule from an integration.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "provider_type": {
          "type": "string",
          "description": "Integration provider type"
        },
        "provider_id": {
          "type": "string",
          "description": "Provider instance id"
        }
      },
      "required": [
        "provider_type",
        "provider_id"
      ]
    }
  },
  {
    "name": "integrations.trigger_test",
    "description": "Dry-run a sample work item against trigger rules.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "provider_type": {
          "type": "string",
          "description": "Integration provider type"
        },
        "provider_id": {
          "type": "string",
          "description": "Provider instance id"
        }
      },
      "required": [
        "provider_type",
        "provider_id"
      ]
    }
  },
  {
    "name": "integrations.delete",
    "description": "Delete an integration and its encrypted secret.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "provider_type": {
          "type": "string",
          "description": "Integration provider type"
        },
        "provider_id": {
          "type": "string",
          "description": "Provider instance id"
        }
      },
      "required": [
        "provider_type",
        "provider_id"
      ]
    }
  },
  {
    "name": "kpis.list",
    "description": "List tenant KPI definitions across lifecycle states.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string",
          "description": "Optional name filter"
        }
      }
    }
  },
  {
    "name": "kpis.controlTower",
    "description": "Ranked KPI control tower with evidence health and responses.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "kpis.catalog",
    "description": "Numeric integration metrics available for KPI mapping.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "kpis.history",
    "description": "One KPI definition and its recent evaluation history.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "kpi_id": {
          "type": "string",
          "description": "KPI id"
        }
      },
      "required": [
        "kpi_id"
      ]
    }
  },
  {
    "name": "kpis.saveDraft",
    "description": "Create or update a KPI draft through the governed mapping lifecycle.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "kpi_id": {
          "type": "string",
          "description": "KPI id"
        }
      }
    }
  },
  {
    "name": "kpis.preview",
    "description": "Evaluate a KPI draft and return the digest required to activate it.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "kpi_id": {
          "type": "string",
          "description": "KPI id"
        }
      },
      "required": [
        "kpi_id"
      ]
    }
  },
  {
    "name": "kpis.activate",
    "description": "Activate a previewed KPI draft at an exact revision and digest.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "kpi_id": {
          "type": "string",
          "description": "KPI id"
        },
        "draft_revision": {
          "type": "number",
          "description": "Exact draft revision"
        },
        "preview_digest": {
          "type": "string",
          "description": "Preview digest from kpis.preview"
        }
      },
      "required": [
        "kpi_id",
        "draft_revision",
        "preview_digest"
      ]
    }
  },
  {
    "name": "fling.kpis",
    "description": "Live Fling KPIs: APNs-accepted push, binds (week + snapshot), approvals tapped.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "description": "Inclusive ISO datetime; omit with to for the current ET Monday week"
        },
        "to": {
          "type": "string",
          "description": "Exclusive ISO datetime; required together with from"
        }
      }
    }
  },
  {
    "name": "workflows.list",
    "description": "List saved workflows for the authenticated tenant.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "workflows.get",
    "description": "Get one saved workflow by opaque id.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Workflow id"
        }
      },
      "required": [
        "id"
      ]
    }
  },
  {
    "name": "workflows.get_revision",
    "description": "Read one immutable saved-workflow revision.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Workflow id"
        },
        "revision": {
          "type": "number",
          "description": "Revision number"
        }
      },
      "required": [
        "id",
        "revision"
      ]
    }
  },
  {
    "name": "workflows.templates",
    "description": "List Fleetctl canonical starter workflow templates.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "workflows.validate",
    "description": "Validate a workflow definition without saving it.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "definition": {
          "type": "object",
          "description": "Workflow definition object or JSON string"
        }
      },
      "required": [
        "definition"
      ]
    }
  },
  {
    "name": "workflows.create",
    "description": "Create a saved workflow from a definition or template.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Workflow name"
        }
      },
      "required": [
        "name"
      ]
    }
  },
  {
    "name": "workflows.update",
    "description": "Replace a saved workflow using optimistic concurrency.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Workflow id"
        },
        "expected_revision": {
          "type": "number",
          "description": "Expected revision"
        }
      },
      "required": [
        "id",
        "expected_revision"
      ]
    }
  },
  {
    "name": "workflows.delete",
    "description": "Delete a saved workflow definition using optimistic concurrency.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Workflow id"
        },
        "expected_revision": {
          "type": "number",
          "description": "Expected revision"
        }
      },
      "required": [
        "id",
        "expected_revision"
      ]
    }
  },
  {
    "name": "workflows.runs.start",
    "description": "Start a saved workflow. Supply a unique idempotency_key.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "workflow_id": {
          "type": "string",
          "description": "Saved workflow id"
        },
        "idempotency_key": {
          "type": "string",
          "description": "Caller-generated key for one intended start"
        }
      },
      "required": [
        "workflow_id",
        "idempotency_key"
      ]
    }
  },
  {
    "name": "workflows.runs.list",
    "description": "List recent workflow runs, optionally filtered.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "workflows.runs.get",
    "description": "Get one workflow run with steps, outcomes, and artifacts.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Run id"
        }
      },
      "required": [
        "id"
      ]
    }
  },
  {
    "name": "workflows.runs.awaiting",
    "description": "List workflow runs waiting for a human approval.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "workflows.runs.document",
    "description": "Read one run-scoped approval document.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "run_id": {
          "type": "string",
          "description": "Run id"
        },
        "hash": {
          "type": "string",
          "description": "Document hash"
        }
      },
      "required": [
        "run_id",
        "hash"
      ]
    }
  },
  {
    "name": "workflows.runs.artifact",
    "description": "Read one published workflow artifact.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "hash": {
          "type": "string",
          "description": "Artifact hash"
        }
      },
      "required": [
        "hash"
      ]
    }
  },
  {
    "name": "workflows.runs.acknowledge",
    "description": "Acknowledge a failed or stuck workflow intervention.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Run id"
        }
      },
      "required": [
        "id"
      ]
    }
  },
  {
    "name": "workflows.runs.approve",
    "description": "Approve the currently pending workflow gate.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Run id"
        },
        "gate": {
          "type": "string",
          "description": "Gate id"
        }
      },
      "required": [
        "id",
        "gate"
      ]
    }
  },
  {
    "name": "workflows.runs.reject",
    "description": "Reject the currently pending workflow gate.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Run id"
        },
        "gate": {
          "type": "string",
          "description": "Gate id"
        }
      },
      "required": [
        "id",
        "gate"
      ]
    }
  },
  {
    "name": "lessons.bootstrap",
    "description": "Discover the Fleet Lessons contract and effective OAuth capabilities.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "lessons.capabilities",
    "description": "Read effective Lesson feature controls for this principal.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "lessons.proposal_schema",
    "description": "Read the lessons/v1 JSON Schema for complete proposals.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "lessons.context",
    "description": "Fetch governed Lesson policy before first inference.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "lessons.search",
    "description": "Search a bounded, scope-authorized Lesson candidate set.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "lessons.get",
    "description": "Read one Lesson and its lifecycle record by opaque id.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "lesson_id": {
          "type": "string",
          "description": "Lesson id"
        },
        "contract_version": {
          "type": "string",
          "description": "Lessons contract version"
        }
      },
      "required": [
        "lesson_id",
        "contract_version"
      ]
    }
  },
  {
    "name": "lessons.list",
    "description": "Browse a bounded page of scope-authorized Lessons.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "lessons.propose",
    "description": "Submit a complete lessons/v1 proposal.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "contract_version": {
          "type": "string",
          "description": "Lessons contract version"
        },
        "proposal": {
          "type": "object",
          "description": "Complete lessons/v1 proposal"
        }
      },
      "required": [
        "contract_version",
        "proposal"
      ]
    }
  },
  {
    "name": "lessons.evidence.add",
    "description": "Add bounded evidence to an existing Lesson.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "lessons.revise",
    "description": "Replace a Lesson proposal while preserving lifecycle controls.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "lessons.reject",
    "description": "Record a human-authorized rejection of a proposed Lesson.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "lessons.approve",
    "description": "Request or confirm a human approval bound to the exact preview.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "lessons.promote",
    "description": "Request or confirm promotion to a different destination scope.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "lessons.apply",
    "description": "Apply an already human-approved Lesson after exact re-preview.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "lessons.application.fail",
    "description": "Mark one governed-change application as failed.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "lessons.application.adopt",
    "description": "Mark one in-progress application as adopted.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "lessons.divergence.mark",
    "description": "Mark a Lesson diverged only when verified drift exists.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "lessons.revert",
    "description": "Conditionally reverse a previously applied Lesson.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "lessons.supersede",
    "description": "Supersede a Lesson with another authorized Lesson.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "lessons.retire",
    "description": "Retire a Lesson with a human-authorized reason.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  },
  {
    "name": "lessons.personal_data.erase",
    "description": "Crypto-shred erasable personal Lesson prose.",
    "inputSchema": {
      "type": "object",
      "properties": {}
    }
  }
]
