MCP ScannerCustom audit
All servers

aws-solutions-library-samples/global-capacity-orchestrator-on-aws

AI/ML and HPC at planetary scale. One API. Every Accelerator. Any Region. MIT-0 licensed.

Packagegco-repository-tooling
Version0.0.0 in package.json
PublisherAmazon (AWS) Official
MCP Registrynot listed
Scanned2026-11-25
Scannerv1.3.0 pre-release
Methodologyv1.2
Stars 55Forks 12Last push 2026-11-14
Python 99.3%JavaScript 0.7%by source files the scanner reads
Code safetypartly tracedExposure4.7Prompts10.0Supply chain7.0Secrets10.0Transparency10.0
Analysis confidence81%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure4.7/10Poor

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chain7.0/10Fair

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.

  • Some paths pass through more than 8 functions one inside another; the scanner stops there
  • In 1,504 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
  • 4 of 289 tools, prompts and resources could not be followed through the code
  • 1 place in the code registers tools whose names are computed at run time; how many tools that makes cannot be read from the code
  • 7 tools, prompts and resources registered only in the repository's tests are not counted on this page

Top risks in plain words

  • HIGHTools models_upload, upload_to_regional_bucket read or write any file path by design: an agent steered by prompt injection can use them that way.

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Give it only the folder it needs

    models_upload, upload_to_regional_bucket can read or write any file path. Mount a single project folder, read-only where you can.

  • Turn off the tools you do not use

    Most MCP clients let you disable single tools. If you do not need models_upload, upload_to_regional_bucket, switch them off.

  • Give it a narrowly scoped token

    Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 216 tools, 66 resources. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

Start other programs on the machinecan run commands or launch programs
_job_resource_for_region, _k8s_live_resource_for_region, _topology_resource
3 of 282
Read or write filesopen, create, change or delete files
_session_report_resource, adr_index_resource, adr_resource, cdk_json_resource, ci_action_resource, ci_codeql_resource and 38 more
44 of 282
Read passwords, tokens or keysload secrets such as API keys
analytics_login_url
1 of 282
Read environment variablesoften where API keys are kept
_session_report_resource, _session_resource, analytics_login_url, images_orphans, metrics_from_local_file, mission_abort and 15 more
21 of 282
Touch sensitive locationssuch as ~/.ssh, cloud credentials or browser data
analytics_login_url
1 of 282

No tool was seen to: connect to the internet or other hosts.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

Text it brings in from outside

Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.

  • files32 tools · _session_report_resource, adr_index_resource, adr_resource +29

Tool annotations

No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.

Tools, prompts and resources (282: 216 tools, 66 resources)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

models_uploadtool [gated by GCO_ENABLE_MODEL_UPLOAD] data-upload.FilesReads/writes files
[gated by GCO_ENABLE_MODEL_UPLOAD] data-upload.

        Upload model weights from a source confined beneath
        ``GCO_STORAGE_LOCAL_ROOT``. The upload may run for up to an hour. Relative paths are resolved beneath that
        root rather than the MCP process's working directory. The source is
        exposed to the CLI through a private hard-link snapshot built with
        descriptor-relative no-follow opens; descendant links, special files,
        hard links, and filesystem crossings fail closed.

        Args:
            model_name: Model name in the registry.
            source_path: Root-relative local file or directory to upload.
upload_to_regional_buckettool [gated by GCO_ENABLE_MODEL_UPLOAD] Upload local data to a regional bucket.FilesReads/writes files
[gated by GCO_ENABLE_MODEL_UPLOAD] Upload local data to a regional bucket.

        The source must resolve beneath ``GCO_STORAGE_LOCAL_ROOT``. Relative
        paths such as ``model.bin`` and ``./datasets`` are interpreted relative
        to that root, never relative to the MCP process working directory. The
        CLI receives a private hard-link snapshot built with descriptor-relative
        no-follow opens; descendant links, special files, hard links, and
        filesystem crossings fail closed. The upload may run for up to an hour.

        Args:
            local_path: Root-relative local file or directory to upload.
            region: Target region whose regional bucket receives the objects.
            prefix: S3 prefix for uploaded objects (default: ``uploads``).
(name computed at run time)resource
No description.
_feature_flagsresource Return the feature-flag table as a JSON string.
Return the feature-flag table as a JSON string.

    Each entry carries the flag's name, its always-False default
    (gates default off until the operator opts in), and the list of
    tool names the flag gates. The umbrella flag ``GCO_ENABLE_ALL_TOOLS``
    appears with an empty ``gated_tools`` list because it overrides
    every per-tool flag.
_inference_resourceresource Return the stored spec for ``endpoint_name`` as JSON.
Return the stored spec for ``endpoint_name`` as JSON.
_job_resourceresource Fail closed for the legacy URI that did not identify a cluster.
Fail closed for the legacy URI that did not identify a cluster.
_job_resource_for_regionresource Return live YAML for ``job_name`` from one explicit regional cluster.Processes
Return live YAML for ``job_name`` from one explicit regional cluster.
_k8s_live_resourceresource Fail closed for the legacy URI that did not identify a cluster.
Fail closed for the legacy URI that did not identify a cluster.
_k8s_live_resource_for_regionresource Return live YAML from an explicitly selected regional EKS cluster.Processes
Return live YAML from an explicitly selected regional EKS cluster.
_resources_indexresource Return the full resource + template index as a JSON string.
Return the full resource + template index as a JSON string.
_session_audit_replay_resourceresource Return the iteration history reconstructed from in-process audit entries.
Return the iteration history reconstructed from in-process audit entries.

    Reads from the :class:`mission.audit.MissionAuditCollectorHandler`
    ring buffer attached at server start, projects through
    :func:`mission.audit.replay_audit_entries`, and returns
    ``{"session_id": session_id, "iterations": [...], "note":
    "Reconstructed from in-process audit handler"}`` as JSON.

    Returns ``iterations: []`` when the session is unknown to the
    handler — does NOT 404. The motivation: a Mission session that
    finished before the resource was first read still has a valid
    entry in the persistent session backend, but its audit entries
    may have aged out of the bounded ring buffer. An empty
    reconstruction is the honest answer; a 404 would imply the
    session never existed.
_session_report_resourceresource Return the persisted Final_Report JSON for a terminal session.FilesEnv varsoutside text
Return the persisted Final_Report JSON for a terminal session.

    Raises a not-found error (mapped by the FastMCP error-handling
    middleware to MCP code ``-32002``) when the session is missing,
    when it is not yet in a terminal state, or when the matching
    report payload has not been written. The :class:`FilesystemBackend`
    stores reports as sibling ``<session_id>.report.json`` files; other
    backends embed the report under ``session["final_report"]``.
_session_resourceresource Return the live JSON for the Mission session ``session_id``.Env vars
Return the live JSON for the Mission session ``session_id``.

    Returns a JSON error envelope (``{"error": "session_not_found",
    "session_id": ...}``) when no record exists rather than raising,
    because the synthetic ``read_resource`` tool from the Resources As
    Tools transform expects a string body.
_summary_resourceresource Return the cost summary for a positive-integer day window.
Return the cost summary for a positive-integer day window.
_task_resourceresource Return the current status of ``task_id`` as JSON.
Return the current status of ``task_id`` as JSON.
_tool_detailresource Return one tool's detail dict as JSON, or raise not-found.
Return one tool's detail dict as JSON, or raise not-found.
_tools_indexresource Return the full tool index as a JSON string.
Return the full tool index as a JSON string.
_topology_resourceresource Return a structured snapshot of nodepools plus pending pods for ``region``.Processes
Return a structured snapshot of nodepools plus pending pods for ``region``.
adr_index_resourceresource List every Architecture Decision Record with its id, title, and status.Filesoutside text
List every Architecture Decision Record with its id, title, and status.

    Directory-driven: scans ``docs/adr/`` for numbered ``NNNN-title.md`` records
    at read time, so a newly added ADR appears here with no code change. The
    process guide and the blank template are available at
    ``docs://gco/adr/README`` and ``docs://gco/adr/template``.
adr_resourceresource Read a single ADR by id, filename stem, or guide name.Filesoutside text
Read a single ADR by id, filename stem, or guide name.

    Accepts a four-digit id (``0001``), a full stem
    (``0001-record-architecture-decisions``), or the ``README`` / ``template``
    guides. An unknown id returns the literal ``ADR 'X' not found. Available:
    ...`` string listing the numeric ids so callers can recover.
cdk_json_resourceresource Read the authoritative CDK deployment configuration without projection.Filesoutside text
Read the authoritative CDK deployment configuration without projection.
ci_action_resourceresource Read the action.yml for a composite action under .github/actions/.Filesoutside text
Read the action.yml for a composite action under .github/actions/.
ci_codeql_resourceresource Read a CodeQL configuration file.Filesoutside text
Read a CodeQL configuration file.
ci_config_resourceresource Read a repo-level CI config file (CI.md, CODEOWNERS, etc.).Filesoutside text
Read a repo-level CI config file (CI.md, CODEOWNERS, etc.).
ci_indexresource List CI/CD artefacts under .github/.
List CI/CD artefacts under .github/.
ci_kind_resourceresource Read a kind (Kubernetes-in-Docker) config file.Filesoutside text
Read a kind (Kubernetes-in-Docker) config file.
ci_script_resourceresource Read a helper script from .github/scripts/.Filesoutside text
Read a helper script from .github/scripts/.
ci_template_resourceresource Read an issue or pull-request template.Filesoutside text
Read an issue or pull-request template.
ci_workflow_resourceresource Read a GitHub Actions workflow YAML file.Filesoutside text
Read a GitHub Actions workflow YAML file.
client_example_resourceresource Read an API client example file.Filesoutside text
Read an API client example file.
clients_indexresource List API client examples for interacting with the GCO API Gateway.
List API client examples for interacting with the GCO API Gateway.
config_file_resourceresource Read a top-level project config file (pyproject.toml, cdk.json, etc.).Filesoutside text
Read a top-level project config file (pyproject.toml, cdk.json, etc.).
config_indexresource List authoritative CDK and MCP configuration resources.
List authoritative CDK and MCP configuration resources.
contributing_resourceresource Contributing guide — how to contribute to the project.Filesoutside text
Contributing guide — how to contribute to the project.
demo_resourceresource Read a demo walkthrough or script.Filesoutside text
Read a demo walkthrough or script.
demos_indexresource List demo walkthroughs and live demo scripts.
List demo walkthroughs and live demo scripts.
doc_resourceresource Read a documentation file by name (e.g. ARCHITECTURE, CLI, INFERENCE).Filesoutside text
Read a documentation file by name (e.g. ARCHITECTURE, CLI, INFERENCE).

    Prepends an HTML-comment header with ``Topics:`` and ``Related:`` lines
    pulled from ``DOC_METADATA`` so an LLM consuming the rendered markdown
    sees the doc's classification without it bleeding into the rendered
    output. HTML comments are used rather than ``#`` because docs are
    markdown — Python-style comments would render as text.
dockerfile_resourceresource Read a Dockerfile, requirements file, or README for a GCO service.Filesoutside text
Read a Dockerfile, requirements file, or README for a GCO service.
docs_by_related_resourceresource List docs related to ``doc_name``.
List docs related to ``doc_name``.

    Combines two views of the bidirectional relation: every doc that lists
    ``doc_name`` in its own ``related`` field (referenced by) and every doc
    ``doc_name`` itself lists (references). Unknown names return the literal
    ``Doc 'X' not found. Available: ...`` string.
docs_by_topic_resourceresource List docs whose topics include the given phrase (case-insensitive).
List docs whose topics include the given phrase (case-insensitive).

    Substring match against every entry in each doc's ``topics`` list. When
    nothing matches, returns the literal ``Topic 'X' not found. Available:
    ...`` string with the union of every known topic so callers can recover.
docs_indexresource List all available GCO documentation, examples, and configuration resources.
List all available GCO documentation, examples, and configuration resources.
dynamodbresource
No description.
env_vars_resourceresource List the MCP feature flags and the environment variables the code reads.
List the MCP feature flags and the environment variables the code reads.

    Every variable here is read by the MCP server, the ``gco`` CLI or the
    in-cluster services; keep the table in step with the code when adding or
    removing one.
example_resourceresource Read an example manifest by name, with metadata context for creating similar jobs.Filesoutside text
Read an example manifest by name, with metadata context for creating similar jobs.

    Returns the raw YAML manifest preceded by a metadata header that describes
    what the example does, its requirements, and how to submit it.
examples_by_category_resourceresource List examples grouped by category.
List examples grouped by category.

    Returns a markdown listing of every example in the given category. Match
    is case-insensitive against the entry's ``category`` field. When the
    category is not recognised, returns the literal "Category 'X' not found.
    Available: ..." string so callers can recover.
examples_by_use_case_resourceresource List examples whose use_cases include the given phrase (case-insensitive).
List examples whose use_cases include the given phrase (case-insensitive).

    Substring match against every entry in each example's ``use_cases`` list.
    When nothing matches, returns the literal "No examples match use case
    'X'." string with a pointer to ``find_examples`` for broader search.
examples_guide_resourceresource How to create new job manifests — patterns, metadata, and best practices.
How to create new job manifests — patterns, metadata, and best practices.

    Use this resource when you need to write a new Kubernetes manifest for GCO.
    It provides the metadata for every existing example so you can pick the
    closest one as a starting point and adapt it.
examples_readme_resourceresource Examples README — overview of all example manifests with usage instructions.Filesoutside text
Examples README — overview of all example manifests with usage instructions.
helm_charts_resourceresource Read the Helm charts configuration (chart names, versions, values).Filesoutside text
Read the Helm charts configuration (chart names, versions, values).
iam_policies_indexresource List available IAM policy templates for GCO access control.
List available IAM policy templates for GCO access control.
iam_policy_resourceresource Read an IAM policy template.Filesoutside text
Read an IAM policy template.
images_describe_resourceresource Full ECR describe payload for a single tag, as JSON.
Full ECR describe payload for a single tag, as JSON.

    Args:
        name: Repository name without the project prefix.
        tag: Image tag.
images_indexresource List every repository under the deployment's ECR prefix (``<project_name>/``).
List every repository under the deployment's ECR prefix (``<project_name>/``).

    The ``gco`` in the resource URIs is the scheme's namespace; the
    repositories themselves live under the project name from cdk.json.
images_replication_status_resourceresource Registry-wide replication state across regions.
Registry-wide replication state across regions.
images_tags_resourceresource List every tag on a single repository.
List every tag on a single repository.

    Args:
        name: Repository name without the project prefix (``trainer`` for
            ``<project_name>/trainer``).
infra_indexresource List infrastructure configuration files — Dockerfiles, Helm charts, CI/CD.
List infrastructure configuration files — Dockerfiles, Helm charts, CI/CD.
k8s_manifest_resourceresource Read a Kubernetes manifest that gets applied to the EKS cluster.Filesoutside text
Read a Kubernetes manifest that gets applied to the EKS cluster.
k8s_manifests_indexresource List all Kubernetes manifests deployed to the EKS cluster.
List all Kubernetes manifests deployed to the EKS cluster.
package_doc_resourceresource Read a package-level README by slug (e.g. mcp-mission, mcp-metric-readers).Filesoutside text
Read a package-level README by slug (e.g. mcp-mission, mcp-metric-readers).

    Serves the developer-facing internals guides catalogued in
    ``PACKAGE_DOC_METADATA`` — the README files that live next to the code
    under ``gco_mcp/`` rather than in ``docs/``. Prepends an HTML-comment header
    with ``Topics:`` and ``Related:`` lines (mirroring :func:`doc_resource`)
    so a consuming LLM sees the classification without it bleeding into the
    rendered markdown. An unknown slug returns the literal ``Package doc 'X'
    not found. Available: ...`` string so callers can recover.
quickstart_resourceresource Quick start guide — get running in under 60 minutes.Filesoutside text
Quick start guide — get running in under 60 minutes.
readme_resourceresource The main project README with overview and quickstart information.Filesoutside text
The main project README with overview and quickstart information.
script_resourceresource Read a utility script.Filesoutside text
Read a utility script.
scripts_indexresource List utility scripts for cluster access, versioning, testing, and operations.
List utility scripts for cluster access, versioning, testing, and operations.
source_file_resourceresource Read a source file confined beneath the project root.Filesoutside text
Read a source file confined beneath the project root.
source_indexresource List all source code files available for reading, grouped by package.
List all source code files available for reading, grouped by package.
tenets_resourceresource Prioritized project tenets and north-star decision guidance.Filesoutside text
Prioritized project tenets and north-star decision guidance.
test_file_resourceresource Read a test file, helper, or configuration file.Filesoutside text
Read a test file, helper, or configuration file.

    Args:
        filepath: Path relative to tests/ (e.g. test_mcp_server.py, conftest.py, BATS/README.md).
tests_indexresource List test suite documentation, configuration, and test files.
List test suite documentation, configuration, and test files.
add_deployment_regiontool [gated by GCO_ENABLE_CONFIG_MANAGEMENT]
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Add a workload Region to cdk.json deployment_regions.regional.

        Config-only and idempotent: the Region must be SDK-known and share
        the AWS partition of the already-configured Regions; re-adding a
        present Region is a reported no-op. No stack is deployed — follow
        up with deploy_all to apply the topology (a deploy_stack of
        only the new regional stack skips its API bridge and the monitoring
        update). Existing inference endpoints keep their Region lists; add
        the new Region to one with add_inference_region.

        Args:
            region: AWS Region name to add (e.g. us-west-2).
add_inference_regiontool Add a Region to an existing inference endpoint.
Add a Region to an existing inference endpoint.

    An endpoint keeps the Region list it was deployed with, so a Region added
    to the deployment later does not run it until it is added here. The
    inference monitor in that Region then creates the endpoint from its stored
    spec. The Region must already run a GCO regional stack.

    Args:
        name: Endpoint name.
        region: Deployed GCO Region to add (e.g. ``us-west-2``).
addons_installtool [gated by GCO_ENABLE_INFRASTRUCTURE_DEPLOY] infrastructure mutation.
[gated by GCO_ENABLE_INFRASTRUCTURE_DEPLOY] infrastructure mutation.

        `gco stacks addons install` — start an idempotent Helm add-on
        re-convergence from the deployment input persisted in SSM. The command
        starts each region's installer state machine and returns immediately;
        inspect progress with ``addons_status``.

        Args:
            region: Region to re-converge. Omit for the first deployment region.
            all_regions: Re-converge every configured deployment region.
addons_statustool `gco stacks addons status` — show per-chart Helm add-on status from SSM.
`gco stacks addons status` — show per-chart Helm add-on status from SSM.

    Returns the ``{region, name, status, message}`` rows. When a Region
    cannot be read or any add-on is not healthy, the result is an error
    envelope (``error``, ``exit_code``) with the rows under ``output``.

    Args:
        region: Region to inspect. Omit for the first deployment region.
        all_regions: Inspect every configured deployment region.
ai_recommendtool Get AI-powered capacity recommendation using Amazon Bedrock.
Get AI-powered capacity recommendation using Amazon Bedrock.

    Gathers comprehensive capacity data (spot scores, pricing, cluster
    utilization, queue depth) and sends it to an LLM for analysis.
    Returns a recommended region, instance type, capacity type, and reasoning.

    Requires AWS credentials with bedrock:InvokeModel permission and the
    specified model enabled in your account.

    Args:
        workload: Description of the workload (e.g. "Fine-tuning a 20B parameter LLM").
        instance_type: Specific instance type(s) to consider (e.g. "p4d.24xlarge").
        region: Specific region(s) to consider (e.g. "us-east-1").
        gpu: Whether the workload requires GPUs.
        min_gpus: Minimum number of GPUs required.
        min_memory_gb: Minimum GPU memory in GB.
        fault_tolerance: Tolerance for interruptions ("low", "medium", "high").
        max_cost: Maximum acceptable cost per hour in USD.
        model: Bedrock model ID to use for analysis. Omit to use
            `cdk.json` `context.bedrock.capacity_advisor_default_model_id`,
            the advisor's own knob (Mission sampling has a separate
            `mission_default_model_id`).
analytics_doctortool `gco analytics doctor` — run analytics environment health checks.
`gco analytics doctor` — run analytics environment health checks.

    Returns ``{"passed", "checks": [{"name", "ok", "remediation"}]}``. When
    a check fails the CLI exits 1, and the result is the error envelope
    with that document under ``output``.
analytics_login_urltool `gco analytics studio login` — get a SageMaker Studio presigned login URL.CredentialsEnv varsSensitive paths
`gco analytics studio login` — get a SageMaker Studio presigned login URL.

    SRP-authenticates the user against Cognito and prints the presigned Studio
    URL. The password is read from ``$GCO_STUDIO_PASSWORD`` when not passed here.
    A password passed here reaches the CLI through that variable in the
    child's environment, never on its command line. With neither, the tool
    returns ``code: password_required`` without running the CLI, whose
    password prompt the MCP server cannot answer.

    Args:
        username: Cognito username to sign in with.
        password: Cognito password. Omit to use ``$GCO_STUDIO_PASSWORD``.
analytics_statustool `gco analytics status` — show the analytics environment configuration.
`gco analytics status` — show the analytics environment configuration.
analytics_user_addtool `gco analytics users add` — create a Cognito user in the analytics pool.
`gco analytics users add` — create a Cognito user in the analytics pool.

    Args:
        username: Cognito username for the new user.
        email: Email address for the new user.
analytics_user_removetool [gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco analytics users remove` — delete a Cognito user from the
        analytics user pool. Cannot be undone — the user record and any
        Studio profile artefacts owned by them are permanently removed.

        Args:
            username: Cognito username to remove.
analytics_users_listtool `gco analytics users list` — list Cognito users in the analytics user pool.
`gco analytics users list` — list Cognito users in the analytics user pool.
aurora_statustool `gco stacks aurora status` — show Aurora database stack status.
`gco stacks aurora status` — show Aurora database stack status.
bootstrap_cdktool [gated by GCO_ENABLE_INFRASTRUCTURE_DEPLOY] long-running.
[gated by GCO_ENABLE_INFRASTRUCTURE_DEPLOY] long-running.

        `gco stacks bootstrap` — bootstrap CDK in an AWS account/region.

        Typical wall-clock: 2-5 minutes. Required before any stack can be
        deployed to a new account/region. Clients that speak FastMCP's
        task protocol can receive a task ID immediately and poll
        `tasks://gco/{task_id}` for progress; clients that don't run the
        tool inline with progress streamed through the FastMCP Progress
        dependency. Cancellation sends SIGTERM to the running CDK process
        and partial CloudFormation state may remain — inspect via
        stack_status or the AWS console.

        Args:
            region: Target AWS region.
            account: Optional AWS account ID. Defaults to the caller's account.
canary_deploytool Start a canary deployment (A/B test a new image version).
Start a canary deployment (A/B test a new image version).

    Args:
        name: Endpoint name.
        image: New image to canary.
        weight: Percentage of traffic to send to canary (1-99).
cancel_queue_jobtool [gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco queue cancel` — cancel a job that is still queued, before a
        region claims it. A claimed, applying, pending, running or finished
        job is refused (409). Cannot be undone — the job's queue record is
        transitioned to ``cancelled`` and no region will claim it.

        Args:
            job_id: Job identifier.
            region: Region to query (any region works).
cancel_reservationtool [gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        Cancel an On-Demand Capacity Reservation, releasing its capacity.

        Stops On-Demand charges for the reserved capacity. Only ODCRs can be
        cancelled; a Capacity Block runs for its fixed term. Instances already
        running against the reservation are not terminated.

        Args:
            reservation_id: Capacity Reservation ID (cr-xxx) to cancel.
            region: AWS region where the reservation exists.
            dry_run: If True, check the caller's permission without cancelling.
                EC2's dry run does not verify the reservation exists.
capacity_history_patternstool Show a day-of-week by hour heatmap of average spot placement scores.
Show a day-of-week by hour heatmap of average spot placement scores.

    Args:
        instance_type: EC2 instance type.
        region: AWS region.
        hours: Hours of history to analyze (default 168 = 7 days).
capacity_history_showtool Show the recorded capacity time-series for an instance type in a region.
Show the recorded capacity time-series for an instance type in a region.

    Requires the historical capacity surface (an optional add-on to the global
    stack, enabled by default). Returns spot score, spot price, AZ coverage,
    queue depth, and capacity-block availability over the window.

    Args:
        instance_type: EC2 instance type (e.g. g5.xlarge, p5.48xlarge).
        region: AWS region.
        hours: Hours of history to show (default 168 = 7 days).
capacity_history_statstool Show p25/p50/p75/min/max/stddev per capacity metric over a time window.
Show p25/p50/p75/min/max/stddev per capacity metric over a time window.

    Args:
        instance_type: EC2 instance type.
        region: AWS region.
        hours: Hours of history to summarize (default 168 = 7 days).
capacity_predicttool Predict the best time to acquire capacity from historical patterns (Bedrock).
Predict the best time to acquire capacity from historical patterns (Bedrock).

    Uses the historical capacity surface plus Amazon Bedrock to recommend the
    day/hour windows with the best spot availability and pricing.

    Args:
        instance_type: EC2 instance type.
        region: AWS region. Omit when all_regions is true.
        hours: Hours of history to analyze (default 168 = 7 days).
        all_regions: Predict across every region that has data for the type.
capacity_statustool View capacity status across all deployed regions.
View capacity status across all deployed regions.

    Args:
        region: Specific region, or omit for all regions.
chat_inferencetool Send a multi-turn chat conversation to an inference endpoint.
Send a multi-turn chat conversation to an inference endpoint.

    Sends an OpenAI-compatible /v1/chat/completions request. Works with
    vLLM, SGLang, and any OpenAI-compatible server.

    Each message in the list should have 'role' (system/user/assistant) and
    'content' keys.

    Args:
        name: Endpoint name (e.g. my-llm).
        messages: List of chat messages, e.g. [{"role": "user", "content": "Hello"}].
        max_tokens: Maximum tokens to generate (default: 256).
        temperature: Sampling temperature (optional, server default if omitted).
        region: Target region for the request.

    This MCP tool intentionally returns one buffered string because the MCP
    runner has no incremental output contract. The API Gateway/Lambda route
    supports response streaming; use ``gco inference invoke --stream`` when
    token-by-token output is required.
check_capacitytool Check spot and on-demand capacity for a specific instance type.
Check spot and on-demand capacity for a specific instance type.

    Args:
        instance_type: EC2 instance type (e.g. g4dn.xlarge, g5.2xlarge, p4d.24xlarge).
        region: AWS region to check.
check_job_policytool Check which regions would admit a manifest, and whether regions agree.
Check which regions would admit a manifest, and whether regions agree.

    Answers two questions get_job_validation_policy leaves to the caller.

    Which regions would take this job: the same manifest is evaluated against
    each region's deployed policy using the code the manifest processor runs,
    so a job that is admissible in one region and over-cap in another is
    reported as such instead of being discovered by submitting.

    Whether the regions still agree: there are no per-region policy overrides,
    so any field that differs across regions means a region was deployed from a
    different checkout of cdk.json. That is invisible until a manifest that
    worked yesterday is refused. trusted_registries is compared with ECR
    hostnames stripped, since CDK adds those per deployment.

    Advisory. The cluster is the authoritative gate and this reads a snapshot
    of its policy, so a reject here is a strong signal, not a verdict.

    Args:
        manifest_path: Path to a manifest file or a directory of them,
            relative to the project root (an absolute path must also be
            inside it).
        regions: Regions to check. Omit for every configured region.
        namespace: Namespace to assume for manifests that don't declare one.
        offline: Read cdk.json instead of calling AWS. Needs no credentials,
            but reports the CONFIGURED policy rather than the deployed one, and
            a deployed region trusts ECR registries cdk.json never mentions --
            so an image rejection may be a false positive.
cluster_healthtool Get health status of GCO clusters.
Get health status of GCO clusters.

    Args:
        region: Specific region, or omit for all regions.
cluster_tunnel_commandtool `gco cluster tunnel --print` — connection plan for a cluster's API endpoint.
`gco cluster tunnel --print` — connection plan for a cluster's API endpoint.

    Returns a JSON connection plan: the `aws ssm start-session` command that
    tunnels to the (possibly private) EKS API endpoint and the
    `kubectl --server/--tls-server-name` flags to use through it. Read-only — it
    resolves the endpoint and builds commands; it does not open a tunnel or
    launch any instance.

    Args:
        region: AWS region of the target cluster (e.g. us-east-1). When omitted,
            resolves to the CLI's default region: GCO_DEFAULT_REGION or the
            config file, else the first cdk.json regional entry.
        instance_id: Optional SSM-managed instance id to tunnel through. It is
            used whenever the cluster has private endpoint access,
            PUBLIC_AND_PRIVATE included, and the plan fails when private
            access is off. When omitted, a cluster with a public endpoint
            gets the direct plan; a private-only one gets a command template
            with an <INSTANCE_ID> placeholder — use `gco cluster tunnel
            --via-ssm auto` in the CLI to auto-provision a self-terminating
            ephemeral bastion instead.
        local_port: Local port to bind for the API tunnel (default 8443).
config_gettool `gco config-cmd get` — read a CLI configuration value.
`gco config-cmd get` — read a CLI configuration value.

    Args:
        key: Configuration key to read (dotted paths allowed). If omitted,
            returns the full config.
configure_mooncake_storetool Update a Mooncake endpoint's shared KV-cache store configuration.
Update a Mooncake endpoint's shared KV-cache store configuration.

    At least one optional setting must be supplied. Enabling the cold tier also
    enables the shared store it extends; the CLI merges supplied fields onto
    the endpoint's existing store block before reconciliation.

    Args:
        endpoint_name: Endpoint whose store configuration should change.
        cold_tier: Enable or disable the asynchronous per-region S3 cold tier.
        offload: Spill tier: ``cpu``, ``disk``, or ``none``.
        global_segment_size: Global KV-cache segment size in bytes.
        local_buffer_size: Local KV-cache buffer size in bytes.
        enabled: Enable or disable the shared store itself.
cost_allocation_activatetool Activate GCO's cost allocation tag keys in the billing account.
Activate GCO's cost allocation tag keys in the billing account.

    Activates the Project and aws:eks:cluster-name tag keys (plus any
    extras) so Cost Explorer can attribute spend to them. Reversible in
    the Billing console; in an AWS Organization this requires the
    management (payer) account. Only affects billing data from activation
    onward unless a backfill date is given.

    Args:
        extra_tags: Additional tag keys to activate.
        backfill_from: Optionally re-tag historical usage from this date
            (YYYY-MM-DD, up to 12 months back).
cost_allocation_statustool Show cost allocation tag activation status for GCO's billing keys.
Show cost allocation tag activation status for GCO's billing keys.

    Reports whether the Project tag (which every cost query filters on) and
    the AWS-generated aws:eks:cluster-name tag (per-cluster attribution for
    EKS Auto Mode compute) are Active, Inactive, or not yet discovered by
    Billing, plus backfill history and split-cost-allocation-data guidance.

    Args:
        extra_tags: Additional tag keys to check.
cost_by_regiontool Get cost breakdown by AWS region.
Get cost breakdown by AWS region.

    Args:
        days: Number of days to look back.
cost_forecasttool Forecast GCO costs for the next N days.
Forecast GCO costs for the next N days.

    Args:
        days_ahead: Days to forecast ahead.
cost_k8s_namespacestool Show Kubernetes cost by namespace (Athena over OpenCost reports).
Show Kubernetes cost by namespace (Athena over OpenCost reports).

    Args:
        days: Days to look back.
        region: Restrict to one deployment region, or omit for all.
cost_k8s_regionstool Show Kubernetes allocation cost by deployment region.
Show Kubernetes allocation cost by deployment region.

    Args:
        days: Days to look back.
cost_k8s_toptool Show the top-N Kubernetes spenders by namespace, region, or cluster.
Show the top-N Kubernetes spenders by namespace, region, or cluster.

    Args:
        limit: Number of results.
        by: Grouping dimension ("namespace", "region", or "cluster").
        days: Days to look back.
cost_k8s_trendtool Show Kubernetes cost over time.
Show Kubernetes cost over time.

    Args:
        days: Days to look back.
        granularity: Trend bucket size ("daily" or "hourly").
        namespace: Restrict to one namespace, or omit for all.
cost_report_generatetool Generate an ad-hoc OpenCost allocation report now (written to S3).
Generate an ad-hoc OpenCost allocation report now (written to S3).

    Args:
        region: Region whose cost monitor generates the report.
        window_hours: Trailing window the report covers (1-168).
cost_report_listtool List recent OpenCost allocation report objects in S3.
List recent OpenCost allocation report objects in S3.

    Args:
        region: Region whose reports to list.
        adhoc: List ad-hoc instead of scheduled reports.
        limit: Maximum results.
cost_report_statustool Show cost monitoring health, including OpenCost status.
Show cost monitoring health, including OpenCost status.

    Args:
        region: Region whose cost monitor to check, or omit for the
            nearest healthy region via the global API.
cost_summarytool Get total GCO spend broken down by AWS service.
Get total GCO spend broken down by AWS service.

    Args:
        days: Number of days to look back.
cost_trendtool Get daily cost trend.
Get daily cost trend.

    Args:
        days: Number of days to show.
cost_workloadstool Estimate accumulated and hourly cost for running workloads.
Estimate accumulated and hourly cost for running workloads.

    Reads each region's cluster API with the server's kubeconfig credentials.
    A region whose cluster cannot be read makes the call fail and is named in
    the error; the workloads read from the other regions are in its output.

    Args:
        region: Region to inspect, or omit to inspect every deployment region.
create_reservationtool Create a new On-Demand Capacity Reservation (ODCR).
Create a new On-Demand Capacity Reservation (ODCR).

        The ODCR counterpart to reserve_capacity. Reserves On-Demand capacity for
        an instance type in a specific AZ. Charges accrue for the reserved
        capacity until it is cancelled — use dry_run=True first to check the
        request and the caller's permission. EC2's dry run does not check
        capacity or the Availability Zone; only the real request does.

        Args:
            instance_type: EC2 instance type or alias (e.g. p5.48xlarge, p6-b200).
            region: AWS region.
            availability_zone: Target AZ (e.g. us-east-1a).
            count: Number of instances to reserve.
            platform: Instance platform/OS (default "Linux/UNIX").
            tenancy: "default" or "dedicated".
            match_criteria: "open" or "targeted".
            end_date: Optional end date (YYYY-MM-DD or ISO); omit for unlimited.
            ebs_optimized: Reserve EBS-optimized capacity.
            dry_run: If True, check the request and permission without creating
                (no cost). Does not check capacity or the AZ.
crossplane_statustool `gco crossplane status` — the configured self-managed Crossplane (cdk.json helm.crossplane).
`gco crossplane status` — the configured self-managed Crossplane (cdk.json helm.crossplane).

    Reports whether Crossplane and its Crossview dashboard are enabled, the
    pinned charts, the composition functions GCO installs and how to reach
    the dashboard. Reads cdk.json, charts.yaml and the shipped manifest only.
dag_runtool `gco dag run` — execute a DAG manifest end-to-end.Filesoutside text
`gco dag run` — execute a DAG manifest end-to-end.

    long-running. The CLI submits each step's job and waits for it (up to an
    hour per step), so a run is a long-running task: progress messages carry
    the CLI's step lines, and the result is ``{"status": "ok", "task_id",
    "duration_seconds", ...}``. A failed step raises a tool error with the
    exit code and the last stderr lines. ``task_tail(task_id)`` shows the
    step log. Cancelling the call stops the CLI; jobs it already submitted
    keep running. With ``dry_run`` nothing is submitted and the tool returns
    the CLI's validation document at once.

    Args:
        manifest_path: Path to the DAG manifest file, relative to the project
            root (an absolute path must also be inside it). Every step
            manifest it names must be inside the project root too.
        region: Target region for the DAG run.
        dry_run: When True, validate and plan without submitting jobs.
dag_validatetool `gco dag validate` — statically validate a DAG manifest.Filesoutside text
`gco dag validate` — statically validate a DAG manifest.

    Args:
        manifest_path: Path to the DAG manifest file, relative to the project
            root (an absolute path must also be inside it). Every step
            manifest it names must be inside the project root too.
delete_inferencetool [gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        Delete an inference endpoint. Cannot be undone — the endpoint, its
        DynamoDB record, and the underlying Kubernetes resources are removed.
        A disaggregated (split prefill/decode) endpoint is deleted the same
        way, including its per-role Deployments and proxy.

        Args:
            name: Endpoint name.
delete_jobtool [gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        Delete a job. Cannot be undone — the Kubernetes Job and its pods
        are removed and any pod logs not yet shipped to CloudWatch are lost.

        Args:
            job_name: Name of the job to delete.
            region: AWS region.
            namespace: Kubernetes namespace.
delete_modeltool [gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco models delete` — delete a model from the central S3 bucket.
        Cannot be undone — every file under the model's S3 prefix is
        permanently removed.

        Args:
            model_name: Name of the model to delete.
delete_nodepooltool [gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco nodepools delete` — delete a Karpenter NodePool.
        Cannot be undone — the NodePool, its paired ``<name>-nodeclass``
        NodeClass, and any nodes currently provisioned through it are removed.

        Args:
            nodepool_name: NodePool name.
            region: AWS region.
            cluster: EKS cluster name (defaults to ``gco-<region>``).
delete_templatetool [gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco templates delete` — delete a job template.
        Cannot be undone — the template definition is permanently removed.

        Args:
            name: Template name.
            region: Region to use (any region works).
delete_webhooktool [gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco webhooks delete` — delete a webhook subscription.
        Cannot be undone — the webhook record is permanently removed.

        Args:
            name: Webhook identifier.
            region: Region to use (any region works).
deploy_alltool [gated by GCO_ENABLE_INFRASTRUCTURE_DEPLOY] long-running.Files
[gated by GCO_ENABLE_INFRASTRUCTURE_DEPLOY] long-running.

        `gco stacks deploy-all` — deploy every CDK stack in dependency order.

        Typical wall-clock: 30-60 minutes for a fresh multi-region deploy.
        Clients that speak FastMCP's task protocol can receive a task ID
        immediately and poll `tasks://gco/{task_id}` for progress; clients
        that don't run the tool inline with progress streamed through the
        FastMCP Progress dependency. Cancellation sends SIGTERM to the
        running CDK process and partial CloudFormation state may remain —
        inspect via stack_status or the AWS console.

        Regions with AWS PCS or SageMaker HyperPod on are preflighted first
        (the same checks as ``hyperpod_preflight`` / `gco stacks pcs
        preflight`); a failed check stops the deploy before CloudFormation
        starts, with the findings in the output.

        Args:
            yes: Skip approval prompts (passes ``-y``). Defaults to True.
            outputs_file: Optional path to write stack outputs JSON, relative
                to the project root (an absolute path must also be inside it).
            tags: Optional list of ``key=value`` tag strings applied to every stack.
            parallel: Deploy regional stacks concurrently when True.
            max_workers: Cap on parallel deployments when ``parallel=True``.
            skip_pcs_preflight: Deploy without the AWS PCS preflight.
            skip_hyperpod_preflight: Deploy without the SageMaker HyperPod preflight.
deploy_disaggregated_inferencetool Deploy a split prefill/decode (XpYd) inference endpoint.
Deploy a split prefill/decode (XpYd) inference endpoint.

    Registers an endpoint that serves the prefill and decode phases on
    separate roles backed by a shared KV-cache store. When no image is
    supplied the deploy falls back to the default upstream Mooncake-enabled
    vLLM image.

    Args:
        name: Endpoint name (e.g. llama-pd).
        image: Container image. Omit to use the default upstream
            Mooncake-enabled vLLM image.
        prefill: Prefill (X) instance count for the topology.
        decode: Decode (Y) instance count for the topology.
        mooncake_mode: Serving mode: disaggregated, store, or both.
        gpu_count: GPUs per replica.
        port: Container port.
        region: Target region(s). Omit for all deployed regions.
        env_vars: Environment variables as KEY=VALUE strings.
deploy_inferencetool Deploy an inference endpoint across regions.
Deploy an inference endpoint across regions.

    The model to serve is ``MODEL=<id-or-path>`` in ``env_vars``: vLLM and
    SGLang both take it from there. Servers without a strict adapter, such as
    Triton, need their command in ``extra_args`` (for Triton,
    ``["tritonserver", "--model-repository=/models/<name>"]``).

    Args:
        name: Endpoint name (e.g. my-llm).
        image: Container image (e.g. vllm/vllm-openai:v0.32.0).
        gpu_count: GPUs per replica.
        replicas: Number of replicas per region.
        port: Container port.
        region: Target region(s). Omit for all deployed regions.
        env_vars: Environment variables as KEY=VALUE strings.
        framework: Strict serving adapter, ``vllm`` or ``sglang``. Omit to let
            the image name decide.
        extra_args: Container arguments, one token per entry, appended in order.
        capacity_type: Pin the pods to one node capacity type. Omit (the
            default) to add no selector: a node launched for the pod is Spot
            when Spot is available and On-Demand otherwise, and the pod may
            land on any existing node with room. ``spot`` pins to Spot with no
            fallback (pods stay Pending while Spot is unavailable);
            ``on-demand`` pins to On-Demand, the choice for production and
            single-replica endpoints; ``hyperpod`` pins to the Region's
            SageMaker HyperPod nodes (cdk.json ``hyperpod``; pods stay Pending
            without them).
deploy_stacktool [gated by GCO_ENABLE_INFRASTRUCTURE_DEPLOY] long-running.
[gated by GCO_ENABLE_INFRASTRUCTURE_DEPLOY] long-running.

        `gco stacks deploy` — deploy a single CDK stack to AWS.

        Typical wall-clock: 15-30 minutes per regional stack. Clients that
        speak FastMCP's task protocol can receive a task ID immediately
        and poll `tasks://gco/{task_id}` for progress; clients that don't
        run the tool inline with progress streamed through the FastMCP
        Progress dependency. Cancellation sends SIGTERM to the running
        CDK process and partial CloudFormation state may remain — inspect
        via stack_status or the AWS console.

        A regional stack whose Region has AWS PCS or SageMaker HyperPod on
        is preflighted first (the same checks as ``hyperpod_preflight`` /
        `gco stacks pcs preflight`); a failed check stops the deploy before
        CloudFormation starts, with the findings in the output.

        Args:
            stack_name: Stack to deploy (e.g. ``gco-us-east-1``).
            yes: Skip approval prompts (passes ``-y``). Defaults to True.
            outputs_file: Optional path to write stack outputs JSON, relative
                to the project root (an absolute path must also be inside it).
            tags: Optional list of ``key=value`` tag strings applied to the stack.
            skip_pcs_preflight: Deploy without the AWS PCS preflight.
            skip_hyperpod_preflight: Deploy without the SageMaker HyperPod preflight.
deps_scantool Generate the dependency update list the monthly deps-scan produces.
Generate the dependency update list the monthly deps-scan produces.

    Runs `gco deps scan` — the same scanner behind the rolling
    "[Automated] Dependency updates available" GitHub issue — and returns
    a JSON envelope with `has_drift`, `scan_complete`, the full Markdown
    report under `report_markdown`, and the same rows as structured data
    under `findings` (one record per surface, each with its urgency, skip
    reason and findings keyed by column). Surfaces that need AWS
    credentials or missing host tools are skipped and flagged as
    incomplete rather than failing.

    The full scan reaches out to PyPI, npm, container registries, GitHub,
    and (with credentials) AWS, and typically takes several minutes. Its
    Python surface pip-installs the project's extras into the server's
    active environment, mirroring how the CI scan runs, so the tool is
    low-risk rather than read-only: it changes the packages installed
    where the server runs. ``nodepools_only=True`` installs nothing.
    Requires a GCO checkout (the scanner lives under .github/scripts/).

    Args:
        nodepools_only: Run only the accelerator-catalog / Karpenter
            NodePool freshness check (offline policy validation always;
            live EC2 catalog comparison when AWS credentials resolve).
            Fast, and the only network it may touch is EC2.
destroy_alltool [gated by GCO_ENABLE_INFRASTRUCTURE_DESTROY] long-running.Files
[gated by GCO_ENABLE_INFRASTRUCTURE_DESTROY] long-running.

        `gco stacks destroy-all` — destroy every CDK stack in reverse dependency order,
        or with keep_control_plane=True only the workload tier (scale to zero Regions).

        Typical wall-clock: 20-40 minutes for a multi-region teardown.
        Clients that speak FastMCP's task protocol can receive a task
        ID immediately and poll `tasks://gco/{task_id}` for progress;
        clients that don't run the tool inline with progress streamed
        through the FastMCP Progress dependency. Cancellation sends
        SIGTERM to the running CDK process and partial CloudFormation
        state may remain — inspect via stack_status or the AWS console
        before retrying.

        Args:
            yes: Skip the confirmation prompt (passes ``-y``). Defaults to True.
                The MCP server gives ``gco`` no stdin, so with ``yes=False``
                the prompt reads end-of-file and the CLI aborts before
                destroying anything.
            parallel: Destroy regional stacks concurrently when True.
            max_workers: Cap on parallel destructions when ``parallel=True``.
            retain_volumes: Report each cluster's orphaned EBS volumes instead
                of deleting them (passes ``--retain-volumes``). Defaults to
                False, matching the CLI.
            keep_control_plane: Destroy only the regional API bridges and
                regional stacks and leave the global, API Gateway and
                monitoring stacks standing (passes ``--keep-control-plane``).
                Regional data (EFS/FSx, Valkey, Aurora, in-cluster volumes) is
                still deleted. Defaults to False, matching the CLI.
destroy_stacktool [gated by GCO_ENABLE_INFRASTRUCTURE_DESTROY] long-running.
[gated by GCO_ENABLE_INFRASTRUCTURE_DESTROY] long-running.

        `gco stacks destroy` — destroy a single CDK stack.

        Typical wall-clock: 5-20 minutes per stack. Clients that speak
        FastMCP's task protocol can receive a task ID immediately and
        poll `tasks://gco/{task_id}` for progress; clients that don't
        run the tool inline with progress streamed through the FastMCP
        Progress dependency. Cancellation sends SIGTERM to the running
        CDK process and partial CloudFormation state may remain —
        inspect via stack_status or the AWS console before retrying.

        Args:
            stack_name: Stack to destroy (e.g. ``gco-us-east-1``).
            yes: Skip the confirmation prompt (passes ``-y``). Defaults to True.
                The MCP server gives ``gco`` no stdin, so with ``yes=False``
                the prompt reads end-of-file and the CLI aborts before
                destroying anything.
            retain_volumes: Report the cluster's orphaned EBS volumes instead
                of deleting them (passes ``--retain-volumes``). Defaults to
                False, matching the CLI: deleting an EKS cluster does not
                delete the volumes its CSI driver provisioned, so they bill
                indefinitely with nothing able to reattach them.
disable_analyticstool `gco analytics disable` — flip the analytics environment off in cdk.json.
`gco analytics disable` — flip the analytics environment off in cdk.json.

    Note: this only edits the cdk.json toggle. The change does not take effect
    until ``gco stacks deploy-all`` runs to tear down the analytics stack.
disable_auroratool `gco stacks aurora disable` — flip Aurora pgvector off in cdk.json.
`gco stacks aurora disable` — flip Aurora pgvector off in cdk.json.

    Note: this only edits the cdk.json toggle. The change does not take effect
    until ``gco stacks deploy-all`` runs to remove the Aurora cluster.
disable_fsxtool `gco stacks fsx disable` — flip FSx Lustre off in cdk.json.
`gco stacks fsx disable` — flip FSx Lustre off in cdk.json.

    Note: this only edits the cdk.json toggle. The change does not take effect
    until ``gco stacks deploy-all`` runs to remove the FSx file system.
disable_monitoringtool `gco monitoring disable` — flip cluster observability off in cdk.json.
`gco monitoring disable` — flip cluster observability off in cdk.json.

    Note: this only edits the cdk.json toggle. The in-cluster stack is removed
    on the next ``gco stacks deploy``.
disable_valkeytool `gco stacks valkey disable` — flip Valkey Serverless off in cdk.json.
`gco stacks valkey disable` — flip Valkey Serverless off in cdk.json.

    Note: this only edits the cdk.json toggle. The change does not take effect
    until ``gco stacks deploy-all`` runs to remove the Valkey cache.
eks_capabilities_statustool `gco stacks capabilities status` — configured vs. live EKS Capabilities.
`gco stacks capabilities status` — configured vs. live EKS Capabilities.

    Reports, per AWS-managed capability type (ACK, kro), whether cdk.json
    ``eks_capabilities`` enables it for the region, whether it is attached to
    the cluster, its status/version, and any drift between configuration and
    the cluster. When a Region drifts or cannot be described, the result is
    an error envelope with the status document(s) under ``output``.

    Args:
        region: Region to inspect. Omit for the first deployment region.
        all_regions: Inspect every configured deployment region.
enable_analyticstool `gco analytics enable` — flip the analytics environment on in cdk.json.
`gco analytics enable` — flip the analytics environment on in cdk.json.

    Note: this only edits the cdk.json toggle. The change does not take effect
    until ``gco stacks deploy-all`` runs to provision the analytics stack.
enable_auroratool `gco stacks aurora enable` — flip Aurora pgvector on in cdk.json.
`gco stacks aurora enable` — flip Aurora pgvector on in cdk.json.

    Note: this only edits the cdk.json toggle. The change does not take effect
    until ``gco stacks deploy-all`` runs to provision the Aurora cluster.
enable_fsxtool `gco stacks fsx enable` — flip FSx Lustre on in cdk.json.
`gco stacks fsx enable` — flip FSx Lustre on in cdk.json.

    Note: this only edits the cdk.json toggle. The change does not take effect
    until ``gco stacks deploy-all`` runs to provision the FSx file system.
enable_monitoringtool `gco monitoring enable` — flip cluster observability on in cdk.json.
`gco monitoring enable` — flip cluster observability on in cdk.json.

    Note: this only edits the cdk.json toggle. It does not take effect until
    ``gco stacks deploy`` (or deploy-all) reinstalls kube-prometheus-stack.
enable_valkeytool `gco stacks valkey enable` — flip Valkey Serverless on in cdk.json.
`gco stacks valkey enable` — flip Valkey Serverless on in cdk.json.

    Note: this only edits the cdk.json toggle. The change does not take effect
    until ``gco stacks deploy-all`` runs to provision the Valkey cache.
files_access_pointstool `gco files access-points` — list the access points of one EFS file system.
`gco files access-points` — list the access points of one EFS file system.

    ``files_get`` returns the file system ID for a region. A file system that
    does not exist has none (``[]``); any other read failure (access denied,
    throttling) is returned as an error.

    Args:
        file_system_id: EFS file system ID (e.g. ``fs-0123456789abcdef0``).
        region: AWS region the file system lives in.
files_gettool `gco files get` — get file system details for a region.
`gco files get` — get file system details for a region.

    Returns the EFS (or FSx) file system's ID, lifecycle state, throughput mode,
    encryption flags, and mount targets. To browse or fetch file contents, use
    list_storage_contents (``gco files ls``) or ``gco files download``.

    Args:
        region: AWS region.
        fs_type: File system type — "efs" (default) or "fsx".
find_capacity_blockstool Find EC2 Capacity Blocks across regions x durations x a start-date window.
Find EC2 Capacity Blocks across regions x durations x a start-date window.

    This is the one-call sweep for "where and when can I get N of this GPU
    instance for D days?". It searches every requested region and every valid
    Capacity Block duration in the range, in parallel, then returns a single
    consolidated, de-duplicated, ranked report (cheapest per-GPU-hour first) with
    per-hour and per-GPU-hour pricing and the longest available block.

    AWS allows durations in 1-day increments up to 14 days, then 7-day increments
    up to 182 days; a duration range is expanded to those discrete values
    automatically. Friendly names are normalized (p6-b200 -> p6-b200.48xlarge,
    p6-b300 -> p6-b300.48xlarge), and UltraServer-only families (the Grace-
    Blackwell GB200/GB300 superchips / P6e-GB UltraServers) are flagged rather
    than silently returning nothing.

    Args:
        instance_type: GPU instance type or alias (e.g. p6-b200, p5.48xlarge).
        regions: Regions to search (any regions; defaults to deployed regions).
        count: Instances per block.
        duration_days / duration_hours: A single target duration.
        min_duration_days / max_duration_days: Duration range bounds in days.
        min_duration_hours / max_duration_hours: Duration range bounds in hours.
        earliest_start: Earliest block start (YYYY-MM-DD or ISO datetime).
        latest_start: Latest block start (YYYY-MM-DD or ISO datetime); a date
            means the whole of that day.
        find_longest: Sweep the duration ladder and surface the longest block.

    A probe EC2 refuses (an instance count it does not sell, a start window
    it cannot serve) is listed in the report's ``rejected_probes`` and named
    in ``recommendation``; when EC2 refuses every probe the tool returns an
    error with EC2's reason instead of an empty report.
find_capacity_reservationstool Find existing ODCRs across regions in one parallel, ranked report.
Find existing ODCRs across regions in one parallel, ranked report.

    The ODCR counterpart to find_capacity_blocks: it searches every requested
    region in parallel, normalizes friendly instance-type aliases (p6-b200 ->
    p6-b200.48xlarge), enriches each reservation with On-Demand pricing, and
    ranks them most-available-first (then cheapest per-GPU-hour). Use this to
    answer "where do I already have free reserved capacity?" rather than
    list_reservations' plain per-region aggregation.

    Args:
        instance_type: Instance type or alias to filter by (e.g. p6-b200); omit
            to return every reservation.
        regions: Regions to search in parallel (any regions; defaults to deployed).
        count: Minimum available instances to consider the search satisfied.
        state: Reservation state filter ("active" default; "all" for any state).
        pricing: Enrich reservations with On-Demand pricing.
find_docstool `find_docs` — search the docs catalog by topic and free-text query.
`find_docs` — search the docs catalog by topic and free-text query.

    Searches the ``docs/*.md`` guides, selected root project documents, and
    package-level READMEs that live next to code under ``gco_mcp/``. Each
    result carries a ``resource_uri`` naming the exact resource to fetch.

    Args:
        query: Free-text query matched against the doc's keywords, summary,
            and name (case-insensitive substring match).
        topic: Filter by topic substring (case-insensitive). Acts as a hard
            filter — entries without a topic match are dropped.
        limit: Maximum results (default 10). ``limit <= 0`` returns ``[]``.

    Scoring: topic substring matches contribute 3 pts each; keyword
    substring matches contribute 4 pts each; summary/name substring
    matches contribute 1 pt each. Returns the top ``limit`` matches
    sorted by score descending then name ascending.
find_examplestool `find_examples` — search the example-manifest catalog by keyword and filters.
`find_examples` — search the example-manifest catalog by keyword and filters.

    Args:
        query: Natural-language query matched against keywords, summary,
            name, and use_cases (case-insensitive substring match).
        category: Filter by category (case-insensitive exact match).
        gpu: Pass ``"yes"``/``"true"`` to require GPU examples;
            ``"no"``/``"false"`` to exclude. Omit to leave unconstrained.
        opt_in: Pass ``"yes"`` to require an opt-in feature flag;
            ``"no"`` to exclude.
        limit: Maximum results (default 10). ``limit <= 0`` returns ``[]``.

    Returns a list of dicts with ``name``, ``category``, ``summary``,
    ``gpu``, ``opt_in``, ``submission``, ``keywords``, ``use_cases``, and
    ``related`` for each match.
find_training_planstool Find SageMaker Training Plan offerings: reserved capacity for HyperPod instance groups.
Find SageMaker Training Plan offerings: reserved capacity for HyperPod instance groups.

    A Training Plan reserves accelerated instances for a fixed window, the
    SageMaker counterpart of an EC2 Capacity Block, and is what a HyperPod
    instance group launches into through cdk.json
    ``hyperpod.instance_groups[].training_plan_arn`` (see docs/HYPERPOD.md).
    Every requested region is searched in parallel and the offerings come
    back in one report ranked cheapest per instance-hour first, then
    earliest start. Nothing is purchased: buying a plan is an account
    commitment made in the console or with
    ``aws sagemaker create-training-plan --training-plan-offering-id <id>``.

    Args:
        instance_type: HyperPod instance type or alias (e.g. ml.p5.48xlarge,
            p5); the ``ml.`` prefix is added when missing.
        regions: Regions to search (defaults to the deployed regions).
        count: Instances the plan must reserve.
        duration_hours / duration_days: The plan duration (one of the two).
        start_after: Earliest start (YYYY-MM-DD or ISO datetime).
        end_before: Latest end (YYYY-MM-DD or ISO datetime); a date means
            the whole of that day.
        target: What the capacity is for: ``hyperpod-cluster`` (default) or
            ``training-job``.

    A region that refuses the search is listed with its reason while the
    others still answer; only when every region refuses does the tool
    return an error.
fleet_statustool `gco status` — whole-fleet deployment status as one document.
`gco status` — whole-fleet deployment status as one document.

    Aggregates stacks, queue depth, central job-queue counts, capacity
    telemetry, and inference endpoints across every configured region. The
    jobs section counts only `gco queue submit` records (its data says
    ``source: central job queue``); `list_jobs` lists jobs submitted any
    other way. Each section carries its own status
    (ok/empty/partial/unavailable/error/skipped) plus a findings list of
    what looks wrong, so one call answers what would otherwise take eight.

    Args:
        region: Restrict the gather to a single region (default: every
            configured deployment region).
        with_costs: Include the costs section. Cost Explorer bills per
            request, so this is off by default.
        with_nodepools: Include Karpenter NodePools. Requires a publicly
            reachable cluster API endpoint; private endpoints are reported
            as unavailable.
fsx_statustool Check FSx for Lustre configuration status.
Check FSx for Lustre configuration status.
get_jobtool Get details of a specific job, including where its pods were scheduled.
Get details of a specific job, including where its pods were scheduled.

    Reports ``node_name``, ``node_instance_type`` and ``node_capacity_type``
    (spot vs on-demand) for the node the job's pod landed on, plus a ``nodes``
    list covering every node involved. A job authorized to run on a set of
    interchangeable instance types therefore reports the one it actually used,
    not just what the manifest permitted. The fields are unset — never guessed
    — when nothing is scheduled yet or the pods have been garbage-collected.

    ``status`` is the Job's verdict and stays ``running`` while an unplaced
    pod exists, so read the pod state next to it: ``pod_phase`` (the phase all
    pods share; ``null`` when they disagree), ``pod_phases`` (count per
    phase), ``scheduled_pods`` / ``unscheduled_pods``, and ``unscheduled`` —
    one entry per pod with no node, carrying the ``PodScheduled`` condition's
    ``reason`` and ``message`` ("0/6 nodes are available ...", a taint nobody
    tolerates, Karpenter still nominating capacity). A Job whose only pod sits
    in ``unscheduled`` is waiting on capacity, not training, and needs no
    ``get_job_events`` call to learn why. Counts are ``null`` (unknown), not
    ``0``, when the region runs a bridge that predates them.

    Args:
        job_name: Name of the job.
        region: AWS region where the job is running.
        namespace: Kubernetes namespace.
get_job_eventstool Get Kubernetes events for a job, its pods, and the nodes they ran on.
Get Kubernetes events for a job, its pods, and the nodes they ran on.

    Returns the job's own events, the events of every pod it has had within
    the cluster's event TTL (including pods an eviction already deleted), and
    the events of each pod's Node and Karpenter NodeClaim, where the cause of
    a node's departure is recorded: ``SpotInterrupted``,
    ``InstanceTerminating``, ``TerminatingOnInterruption``,
    ``InstanceUnhealthy``, or ``DisruptionTerminating`` ("Disrupting Node:
    Underutilized" / "Drifted") for consolidation and drift. Each event names
    its ``involvedObject`` kind and name; ``scope`` lists the pods, deleted
    pods, nodes and NodeClaims covered and any lookup that failed.

    Args:
        job_name: Name of the job.
        region: AWS region.
        namespace: Kubernetes namespace.
get_job_logstool Get logs from a job.
Get logs from a job.

    Args:
        job_name: Name of the job.
        region: AWS region.
        namespace: Kubernetes namespace.
        tail: Number of log lines to return.
get_job_metricstool Get CPU and memory usage for all pods in a job.
Get CPU and memory usage for all pods in a job.

    Requires metrics-server in the target cluster.

    Args:
        job_name: Name of the Kubernetes Job.
        region: AWS region where the job is running.
        namespace: Kubernetes namespace.
get_job_podstool Get pod details, placement, and container status for a job.
Get pod details, placement, and container status for a job.

    Each pod carries a ``node`` block with the instance type and spot/on-demand
    capacity type of the node it landed on. A pod in the middle of an eviction
    carries ``metadata.deletionTimestamp`` and, when a disruption is what is
    deleting it, ``status.disruptionTarget`` with the mechanism's reason
    (``EvictionByEvictionAPI`` for a Karpenter / EKS Auto Mode drain) — use
    ``get_job_events`` for the node-level cause.

    Each entry of ``status.containerStatuses`` (and ``initContainerStatuses``)
    has a ``state`` of ``running`` (with ``startedAt``), ``waiting`` (with
    ``reason`` and ``message``), or ``terminated`` (with ``exitCode``,
    ``reason``, ``signal``, ``message``, ``startedAt`` and ``finishedAt``).
    ``finishedAt`` is when the container exited: an event from
    ``get_job_events`` later than it happened after the exit and did not cause
    it. ``lastState`` holds the previous termination, in the ``terminated``
    shape, of a container the kubelet restarted in place, and is null
    otherwise.

    Args:
        job_name: Name of the owning Kubernetes Job.
        region: AWS region where the job is running.
        namespace: Kubernetes namespace.
get_job_validation_policytool Get the job validation policy a region actually enforces, as deployed.
Get the job validation policy a region actually enforces, as deployed.

    Use this before submitting to check whether a manifest will be admitted,
    rather than paying to provision a region and discovering the conflict at
    submit time. Returns the per-manifest cpu/memory/gpu caps,
    allowed_namespaces, allowed_kinds, trusted_registries, the pod-security
    block_* flags, and the namespace's live ResourceQuota / LimitRange
    ceilings.

    This reads the deployed cluster, not a local cdk.json. The two diverge
    whenever a stack was deployed from a different checkout, and CDK augments
    trusted_registries with the project's own ECR hostnames at synth time, so
    the effective allowlist is strictly larger than the configured one.

    A manifest must clear all three layers: the front-door policy, the
    per-container LimitRange, and the aggregate ResourceQuota.

    Args:
        region: AWS region (e.g. us-east-1).
get_model_uritool Get the S3 URI for a model (for use with --model-source).
Get the S3 URI for a model (for use with --model-source).

    Args:
        model_name: Name of the model.
get_pod_logstool Get a bounded log tail from one specific pod belonging to a job.
Get a bounded log tail from one specific pod belonging to a job.

    Args:
        job_name: Name of the owning Kubernetes Job.
        pod_name: Exact pod name returned by ``get_job_pods``.
        region: AWS region where the pod is running.
        namespace: Kubernetes namespace.
        tail: Maximum number of log lines to return.
        container: Container name for a multi-container pod.
gitops_statustool `gco gitops status` — the configured self-managed Argo CD (cdk.json helm.argocd).
`gco gitops status` — the configured self-managed Argo CD (cdk.json helm.argocd).

    Reports whether Argo CD is enabled, the pinned argo-cd chart, the
    gco-tenants fence (destinations and source repositories) and the GitOps
    hand-off with its path rendered per Region, plus how to reach the UI.
    Reads cdk.json and charts.yaml only.

    Args:
        region: Render the GitOps path for this Region only. Omit for every
            regional deployment Region.
hyperpod_preflighttool `gco stacks hyperpod preflight` — check the account before a deploy with HyperPod on.
`gco stacks hyperpod preflight` — check the account before a deploy with HyperPod on.

    Read-only AWS checks per region: HyperPod publishes a health-monitoring
    agent image there, the account's "<instance type> for cluster usage"
    Service Quotas cover every instance group, each training plan exists and
    fits its group, the configured zone exists, the EKS cluster (once
    deployed) is ACTIVE with access entries, and the cluster name is free or
    already this project's. An AWS error while checking is a warning; only a
    fact that would break the deploy fails. ``deploy_stack`` and
    ``deploy_all`` run the same checks unless told to skip them. When a
    check fails, the result is an error envelope with the summary under
    ``output``.

    Args:
        region: Region to check. Omit for the first deployment region.
        all_regions: Check every configured deployment region.
hyperpod_statustool `gco stacks hyperpod status` — configured and deployed SageMaker HyperPod state.
`gco stacks hyperpod status` — configured and deployed SageMaker HyperPod state.

    Reads the validated cdk.json ``hyperpod`` block (cluster name, node
    recovery, zone, instance groups, Kueue quotas, removal policy) and, when
    the regional stack is deployed with HyperPod on, the cluster SageMaker
    describes under the stack's published name: its status and every
    instance group's current and target counts. See docs/HYPERPOD.md. When
    the cluster is not healthy, the result is an error envelope with the
    status document(s) under ``output``.

    Args:
        region: Region to inspect. Omit for the first deployment region.
        all_regions: Inspect every configured deployment region.
images_buildtool [gated by GCO_ENABLE_IMAGE_PUBLISH] long-running, data-upload.
[gated by GCO_ENABLE_IMAGE_PUBLISH] long-running, data-upload.

        `gco images build` — build a container image and push to ECR.

        Args:
            context: Build context directory, relative to the project root
                (an absolute path must also be inside it).
            name: Image name (lowercase letters and digits joined by single dashes,
                starting with a letter; max 63 chars).
            tag: Image tag (defaults to git short SHA, else ``latest``).
            dockerfile: Path to the Dockerfile, relative to ``context``.
            platform: ``--platform`` argument for the build.
            retain: When True, tag the repository ``gco:retain=true``. A
                marker only: no GCO stack deletes project repositories, so
                every one survives a stack destroy with or without it.
images_cleanuptool [gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco images cleanup` — remove every untagged image across one or all project repos.
        Cannot be undone — untagged image manifests are permanently deleted.

        Args:
            name: Repository name to clean (without the ``gco/`` prefix). Required
                unless ``all=True``.
            all: When True, clean every project repository.
images_delete_repotool [gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco images delete-repo` — delete a whole repository.
        Cannot be undone — the repo and (when ``force=True``) every image
        inside it are permanently removed from ECR.

        Args:
            name: Repository name (without the ``gco/`` prefix).
            force: When True, also delete every image inside the repo.
images_delete_tagtool [gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco images delete-tag` — delete a single tag from a repository.
        Cannot be undone — the image manifest is removed from ECR.

        Args:
            name: Repository name (without the ``gco/`` prefix).
            tag: Image tag to delete.
images_describetool `gco images describe` — full ECR details for a single image tag.
`gco images describe` — full ECR details for a single image tag.

    Returns ``{}`` when the repository has no such tag.

    Args:
        name: Repository name (without the ``gco/`` prefix).
        tag: Image tag.
images_inittool `gco images init` — create the project ECR repo idempotently with default lifecycle.Files
`gco images init` — create the project ECR repo idempotently with default lifecycle.

    Args:
        name: Repository name (without the ``gco/`` prefix).
        retain: When True, tag the repository ``gco:retain=true``. A marker
            only: no GCO stack deletes project repositories, so every one
            survives a stack destroy with or without it.
images_lifecycle_gettool `gco images lifecycle get` — print the lifecycle policy on a repository.
`gco images lifecycle get` — print the lifecycle policy on a repository.

    Args:
        name: Repository name (without the ``gco/`` prefix).
images_lifecycle_settool `gco images lifecycle set` — replace the lifecycle policy on a repository.
`gco images lifecycle set` — replace the lifecycle policy on a repository.

    Args:
        name: Repository name (without the ``gco/`` prefix).
        policy: ECR lifecycle policy document as a dict.
images_listtool `gco images list` — list every gco/* repository in ECR.
`gco images list` — list every gco/* repository in ECR.
images_mirrortool [gated by GCO_ENABLE_IMAGE_PUBLISH] image-upload.
[gated by GCO_ENABLE_IMAGE_PUBLISH] image-upload.

        Mirror third-party images into the project's ``gco/*`` ECR so the
        cluster pulls them from same-account ECR instead of a rate-limited
        upstream (chiefly ``docker.io``, which has no credential-free ECR
        pull-through cache). Today that's Volcano's ``volcanosh/vc-*`` images,
        derived from ``charts.yaml``; the set is general — see
        ``docs/IMAGE_MIRROR.md`` for how to add another image.

        Creates each destination repository if needed and copies the image
        preserving its full multi-arch manifest list (so both amd64 and arm64
        nodes find a match). Idempotent — already-mirrored tags are skipped when
        ``skip_existing`` is True, so repeat runs are a fast no-op. This is the
        same operation ``gco stacks deploy`` runs automatically when the cdk.json
        ``volcano_image_mirror`` toggle is enabled; invoke it directly to
        pre-seed or repair the mirror out of band.

        Args:
            region: AWS region whose ECR registry is the mirror destination.
            ecr_namespace: Destination namespace under the registry. Defaults to
                the cdk.json ``volcano_image_mirror.ecr_namespace`` (e.g.
                ``gco/dockerhub``).
            skip_existing: When True (default), skip any image whose tag already
                exists in ECR so repeat runs don't re-copy.
images_mirror_plantool Image mirror — show which third-party images would be mirrored into ECR.
Image mirror — show which third-party images would be mirrored into ECR.

    Read-only planning view: resolves the destination registry and repository
    for every image the mirror manages (Volcano's ``docker.io/volcanosh/vc-*``
    images today, derived from ``charts.yaml``) without creating any repository
    or copying anything. Use it to preview the mirror before a deploy, or to see
    where a consumer's ``image_registry`` override should point. The ``enabled``
    field reflects the cdk.json ``volcano_image_mirror`` toggle that drives the
    auto-mirror on ``gco stacks deploy``. See ``docs/IMAGE_MIRROR.md``.

    Args:
        region: AWS region whose ECR registry is the mirror destination.
        ecr_namespace: Destination namespace under the registry. Defaults to the
            cdk.json ``volcano_image_mirror.ecr_namespace`` (e.g. ``gco/dockerhub``).
images_mirror_statustool Image mirror — report which managed images are already present in ECR.Files
Image mirror — report which managed images are already present in ECR.

    Read-only: for every image the mirror manages, checks whether its tag
    already exists in the ``gco/*`` ECR namespace (ECR ``DescribeImages``; no
    writes). The result carries a ``mirrored`` flag per image plus top-level
    ``all_mirrored`` / ``missing``, so you can confirm a deploy's auto-mirror
    has populated everything the consuming Helm install (Volcano) needs before
    it runs, or diagnose a stuck install. See ``docs/IMAGE_MIRROR.md``.

    Args:
        region: AWS region whose ECR registry is the mirror destination.
        ecr_namespace: Destination namespace under the registry. Defaults to the
            cdk.json ``volcano_image_mirror.ecr_namespace`` (e.g. ``gco/dockerhub``).
images_orphanstool `gco images orphans` — list gco/* tags older than ``threshold_days`` with no references.FilesEnv vars
`gco images orphans` — list gco/* tags older than ``threshold_days`` with no references.

    A tag an inference endpoint or a job in any Region names, by tag or by
    digest, is in use. Fails when the inference endpoints or a Region's jobs
    cannot be read, instead of reporting tags that may be in use.

    Args:
        threshold_days: Age threshold in days. Defaults to 30.
images_prunetool [gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco images prune` — remove untagged images older than 30 days.
        Cannot be undone when ``dry_run=False``; the matching image manifests
        are permanently deleted.

        Args:
            dry_run: When True (default), report what would be deleted without
                deleting anything.
images_pushtool [gated by GCO_ENABLE_IMAGE_PUBLISH] long-running, data-upload.
[gated by GCO_ENABLE_IMAGE_PUBLISH] long-running, data-upload.

        `gco images push` — push an already-built local image to the project ECR repo.

        Args:
            name: Image name (lowercase letters and digits joined by single dashes,
                starting with a letter; max 63 chars).
            tag: Image tag.
            local_image: Source image reference on the local container runtime.
            retain: When True, tag the repository ``gco:retain=true``. A
                marker only: no GCO stack deletes project repositories, so
                every one survives a stack destroy with or without it.
images_replication_gettool `gco images replication get` — current ECR replication configuration.
`gco images replication get` — current ECR replication configuration.
images_replication_statustool `gco images replication status` — per-image replication status across project repos.
`gco images replication status` — per-image replication status across project repos.
images_replication_synctool `gco images replication sync` — apply the standard gco/* replication rule.
`gco images replication sync` — apply the standard gco/* replication rule.
images_tagstool `gco images tags` — list tags within a repository.
`gco images tags` — list tags within a repository.

    Args:
        name: Repository name (without the ``gco/`` prefix).
images_uritool `gco images uri` — return the registry URI for an image. No AWS calls.
`gco images uri` — return the registry URI for an image. No AWS calls.

    Args:
        name: Repository name (without the ``gco/`` prefix).
        tag: Image tag. Defaults to ``latest``.
inference_healthtool Check if an inference endpoint is healthy and ready to serve requests.
Check if an inference endpoint is healthy and ready to serve requests.

    Hits the endpoint's health check path and returns status and latency.
    Useful to verify readiness before sending inference requests.

    Args:
        name: Endpoint name.
        region: Target region to check (default: nearest via Global Accelerator).
inference_statustool Get detailed status of an inference endpoint including per-region breakdown.
Get detailed status of an inference endpoint including per-region breakdown.

    Args:
        name: Endpoint name.
instance_infotool Describe an EC2 instance type's compute characteristics.
Describe an EC2 instance type's compute characteristics.

    Resolved live from ec2:DescribeInstanceTypes on every call — no checked-in
    specification table — so a newly launched accelerator family is reported as
    soon as it ships.

    Returns vCPUs/cores/threads, memory, every accelerator class (NVIDIA GPU,
    AWS Neuron, Inferentia, media, FPGA) with per-model counts and memory, EFA
    and network limits, local NVMe and EBS characteristics, placement-group
    support, purchase options (spot / capacity-block), and platform
    capabilities. GPU memory is reported as a total across devices.

    Carries no pricing. Use check_capacity or spot_prices for cost signals.

    DescribeInstanceTypes is region-scoped, so a type is described only where it
    is offered; if it is missing, try another region or recommend_region.

    Args:
        instance_type: EC2 instance type (for example, g5.2xlarge or p5.48xlarge).
        region: Region to describe it in. Defaults to the configured region.
invoke_inferencetool Send a prompt to an inference endpoint and return the generated text.
Send a prompt to an inference endpoint and return the generated text.

    Automatically discovers the endpoint's ingress path, detects the serving
    framework (vLLM or SGLang), and routes the request through the API
    Gateway with SigV4 authentication. Triton takes tensors rather than a
    prompt, so a Triton endpoint is refused with the --path/--data form to use
    through the CLI.

    Use this for single-turn text completions. For multi-turn conversations
    with chat models, use chat_inference instead.

    Args:
        name: Endpoint name (e.g. my-llm).
        prompt: Text prompt to send to the model.
        max_tokens: Maximum tokens to generate (default: 100).
        api_path: Override the API sub-path, starting with ``/`` (default:
            auto-detect from framework). A ``.`` or ``..`` segment is refused.
        region: Target region for the request (default: nearest via Global Accelerator).

    This MCP tool intentionally returns one buffered string because the MCP
    runner has no incremental output contract. The API Gateway/Lambda route
    supports response streaming; use ``gco inference invoke --stream`` when
    token-by-token output is required.
list_deployment_regionstool [gated by GCO_ENABLE_CONFIG_MANAGEMENT]
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Show the deployment-region topology configured in cdk.json.

        Reports the global/api_gateway/monitoring Regions, the workload
        (regional) Region list, the resolved AWS partition, and the cdk.json
        path backing the answer. Works on a broken configuration too — the
        partition_error field explains what CDK synth would reject.
list_endpoint_modelstool List models loaded on an inference endpoint.
List models loaded on an inference endpoint.

    Queries the endpoint's /v1/models path (OpenAI-compatible) to discover
    which models are loaded, their context length, and other metadata.
    Works with vLLM and other OpenAI-compatible servers; SGLang reports its
    launcher's model identity, and Triton its /v2/models/stats inventory.

    Args:
        name: Endpoint name.
        region: Target region to query.
list_file_systemstool List EFS and FSx file systems.
List EFS and FSx file systems.

    Args:
        region: Specific region, or omit for all.
list_inference_endpointstool List all inference endpoints.
List all inference endpoints.

    Args:
        state: Filter by state (deploying, running, stopped, deleted).
        region: Filter by region.
list_jobstool List jobs across GCO clusters.
List jobs across GCO clusters.

    Args:
        region: AWS region (e.g. us-east-1). If omitted, lists across all regions;
            a region that cannot be read is listed under ``errors`` and fails
            the call, with the other regions' jobs returned under ``output``.
        namespace: Filter by Kubernetes namespace.
        status: Filter by job status: pending, running, succeeded, or failed
            (the values ``gco jobs list --status`` accepts).
list_modelstool List all uploaded model weights in the S3 bucket.
List all uploaded model weights in the S3 bucket.
list_reservationstool List On-Demand Capacity Reservations (ODCRs) across regions.
List On-Demand Capacity Reservations (ODCRs) across regions.

    Shows all active capacity reservations with utilization details.

    Args:
        instance_type: Filter by instance type (e.g. p5.48xlarge).
        region: Filter by specific region.
list_stackstool List all GCO CDK stacks.
List all GCO CDK stacks.
list_storage_bucketstool List deployed GCO S3 buckets and their human-friendly aliases.
List deployed GCO S3 buckets and their human-friendly aliases.

    Returns user-facing buckets such as ``cluster-shared``, ``model-weights``,
    ``regional-shared:<region>``, and the optional ``analytics-studio`` bucket.
    Physical names are resolved from the deployment's SSM and CloudFormation
    metadata rather than reconstructed.

    Args:
        region: Optionally limit regional-bucket discovery to one AWS region.
            Global and analytics buckets are still included.
list_storage_contentstool List contents of shared EFS storage.
List contents of shared EFS storage.

    Args:
        region: AWS region.
        path: Directory path to list (default: root).
list_training_planstool List the SageMaker Training Plans the account holds.
List the SageMaker Training Plans the account holds.

    Each plan's state, reserved instance types and zones, total and
    available instances, window and ARN, soonest start first. The ARN is
    what cdk.json ``hyperpod.instance_groups[].training_plan_arn`` takes;
    ``hyperpod_preflight`` then checks that the plan fits the instance group.

    Args:
        regions: Regions to list (defaults to the deployed regions).
        instance_type: Keep the plans whose reserved capacity includes this
            type (alias or ``ml.`` type).
        status: Keep the plans in this state: Pending, Active, Scheduled,
            Expired or Failed.
metrics_cloudwatch_gettool [read-only] Read one CloudWatch datapoint as a canonical metric.
[read-only] Read one CloudWatch datapoint as a canonical metric.

    Issues a single region-scoped, read-only ``GetMetricStatistics`` request and
    returns the most-recent datapoint's statistic value in the canonical
    ``{"metrics": {...}}`` shape consumable by a ``metric_threshold`` criterion.
    The metric key defaults to the CloudWatch metric name when ``output_name``
    is omitted.

    Args:
        metric_name: The CloudWatch metric name.
        namespace: The CloudWatch namespace the metric lives in.
        region: AWS region to scope the read to (supports Multi_Region).
        dimensions: Name/value dimension pairs passed through unchanged.
        statistic: The statistic to request (Average, Sum, Maximum, Minimum,
            SampleCount).
        period: Aggregation period in seconds (default 300).
        minutes_back: Lookback window in minutes when start/end are not given.
        start_time: ISO-8601 window start (used with ``end_time``).
        end_time: ISO-8601 window end (used with ``start_time``).
        output_name: Explicit metric key; defaults to ``metric_name``.

    Returns the Canonical_Metrics_Shape on success, or a Tool_Error_Envelope
    (``metric_name_invalid``, ``no_datapoints``, ``aws_unreachable``) on failure.
metrics_from_job_logstool [read-only] Extract a scalar from the tail of a job's logs.
[read-only] Extract a scalar from the tail of a job's logs.

    Tails a job's logs through the existing read-only retrieval path and pulls a
    candidate scalar from each line by **either** a JSON key (resolved as a
    dot-path) **or** a regex (first capture group) — exactly one must be set.
    The matched values are coerced to numbers and reduced to one Numeric_Value
    via the aggregation mode (default ``last`` = most recent match). Returns the
    canonical ``{"metrics": {...}}`` shape. The metric key defaults to the last
    segment of ``json_key`` (or ``value`` in regex mode) when ``output_name`` is
    omitted.

    Args:
        job_name: Name of the job whose logs to read.
        region: AWS region where the job ran.
        namespace: Kubernetes namespace (default ``gco-jobs``).
        json_key: JSON dot-path key to resolve per line (mutually exclusive
            with ``regex``).
        regex: Regex whose first capture group is the scalar (mutually
            exclusive with ``json_key``).
        aggregation: One of last, first, min, max, mean (default ``last``).
        tail: Number of log lines to read; clamped to [1, 10000] (default 1000).
        output_name: Explicit metric key.

    Returns the Canonical_Metrics_Shape on success, or a Tool_Error_Envelope
    (``invalid_extraction_mode``, ``invalid_regex``, ``invalid_aggregation_mode``,
    ``log_retrieval_failed``, ``no_match``, ``non_numeric_value``) on failure.
metrics_from_local_filetool [gated by GCO_ENABLE_LOCAL_METRICS] [read-only] Read a named field from a LOCAL metrics file.Env vars
[gated by GCO_ENABLE_LOCAL_METRICS] [read-only] Read a named field from a LOCAL metrics file.

        Reads a small metrics file from a LOCAL filesystem path confined to the
        allowlisted root ``GCO_METRICS_LOCAL_ROOT`` and surfaces a named field
        as a metric in the canonical ``{"metrics": {...}}`` shape, dispatching
        on ``format``. Reuses the same format handlers, aggregation modes, size
        cap, and error model as ``metrics_from_shared_storage_file`` — the only
        difference is that the path is resolved and confined to the allowlisted
        root via realpath containment instead of going through the shared-storage
        path. There is **no** ``region`` parameter: local reads are not
        region-scoped. Sequence-bearing formats (a list, a CSV column, a Hugging
        Face ``log_history``, a JSONL stream, a Parquet column) are reduced to one
        Numeric_Value via the aggregation mode. The metric key defaults to
        ``field`` when ``output_name`` is omitted.

        Args:
            path: Local filesystem path to the metrics file (confined to
                ``GCO_METRICS_LOCAL_ROOT``).
            field: Field/column/key name to read (dot-path for document formats).
            format: One of json, csv, hf_trainer_state, jsonl, yaml, parquet,
                tfevents.
            aggregation: One of last, first, min, max, mean (default ``last``).
            max_bytes: Maximum artifact size in bytes (default 10 MiB); the size
                is checked before the content is read.
            output_name: Explicit metric key; defaults to ``field``.

        Returns the Canonical_Metrics_Shape on success, or a Tool_Error_Envelope
        (``local_root_not_configured``, ``path_traversal_escape``,
        ``symlink_escape``, ``unsupported_format``, ``metric_name_invalid``,
        ``file_not_found``, ``file_too_large``, ``malformed_file``,
        ``field_not_found``, ``non_numeric_value``, ``no_numeric_value``,
        ``empty_sequence``, ``format_dependency_unavailable``) on failure.
metrics_from_shared_storage_filetool [read-only] Read a named field from a metrics file on the cluster's shared file system.
[read-only] Read a named field from a metrics file on the cluster's shared file system.

    Reads a small metrics file from the region's shared EFS file system
    through ``gco files download``, which copies it out through a short-lived
    helper pod, so kubectl access to a reachable cluster endpoint is needed.
    It does not read S3 buckets. The value is returned as a metric in the
    canonical ``{"metrics": {...}}`` shape,
    dispatching on ``format``. Sequence-bearing formats (a list, a CSV column, a
    Hugging Face ``log_history``, a JSONL stream, a Parquet column) are reduced
    to one Numeric_Value via the aggregation mode. The metric key defaults to
    ``field`` when ``output_name`` is omitted.

    Args:
        path: Path of the metrics file on the shared file system (as seen
            by a pod that mounts it, for example ``outputs/run-1/metrics.json``).
        region: AWS region of the storage.
        field: Field/column/key name to read (dot-path for document formats).
        format: One of json, csv, hf_trainer_state, jsonl, yaml, parquet,
            tfevents.
        aggregation: One of last, first, min, max, mean (default ``last``).
        max_bytes: Maximum artifact size in bytes (default 10 MiB); the size is
            checked before the content is read.
        output_name: Explicit metric key; defaults to ``field``.

    Returns the Canonical_Metrics_Shape on success, or a Tool_Error_Envelope
    (``unsupported_format``, ``metric_name_invalid``, ``file_not_found``,
    ``file_too_large``, ``malformed_file``, ``field_not_found``,
    ``non_numeric_value``, ``no_numeric_value``, ``empty_sequence``,
    ``format_dependency_unavailable``) on failure.
metrics_semantic_progresstool [gated by GCO_ENABLE_SEMANTIC_PROGRESS] [read-only] Score Mission progress.Filesoutside text
[gated by GCO_ENABLE_SEMANTIC_PROGRESS] [read-only] Score Mission progress.

        Scores how close a Mission is to satisfying ``directive`` against a
        fixed, versioned rubric via the existing sampling backend, and returns
        the canonical ``{"metrics": {"progress_score": <float 0.0-1.0>}}`` shape
        consumable by a ``metric_threshold`` (e.g. ``progress_score >= 0.8``) or
        ``metric_trend`` (e.g. ``progress_score`` increasing) criterion. Incurs
        one LLM call per invocation. Mutates nothing — it only reads its inputs
        and asks the model for a score. Provenance (rationale, source,
        backend_name, model_id, rubric_version, raw_score) is returned outside
        the ``metrics`` object.

        Args:
            directive: The natural-language objective the Mission is pursuing.
                Must be non-empty and not whitespace-only.
            recent_context: Optional recent progress context (recent
                observations and/or metric-history series the caller selects).
                Truncated keep-newest to a fixed character budget; omit it to
                score from the directive alone.
            output_name: Optional metric key under ``metrics`` (default
                ``"progress_score"``). Must be a single path segment of 1..128
                characters with no ``.`` separator and no whitespace.
            model_id: Optional concrete model identifier forwarded to the
                sampling seam; ``None`` uses the seam's resolved default.

        Returns the canonical metrics shape on success, or a structured
        ``{"code", "details"}`` error envelope (never carrying a top-level
        ``metrics`` key) on any failure, so the Mission loop keeps running.
mission_aborttool [gated by GCO_ENABLE_MISSION] Pause or terminate a Mission session.Env vars
[gated by GCO_ENABLE_MISSION] Pause or terminate a Mission session.

        Args:
            session_id: The session to transition.
            pause: When True, transition to ``paused``. When False
                (default), transition to ``terminated`` with a
                synthetic ``terminate`` final verdict.

        Refuses sessions already in a terminal state. Best-effort
        emits a ``ctx.warning`` when the active request context is
        available so the operator sees the side-effect.
mission_checkpointtool [gated by GCO_ENABLE_MISSION] Re-run the verdict cascade on the latest iteration.Env vars
[gated by GCO_ENABLE_MISSION] Re-run the verdict cascade on the latest iteration.

        Args:
            session_id: The session whose latest iteration should be
                re-evaluated.

        Returns a JSON object with the freshly-computed verdict and
        reason. Does not run the propose / execute / observe phases —
        only the deterministic decide cascade. Returns an error envelope
        when the session is missing or has no iterations yet.
mission_completetool [gated by GCO_ENABLE_MISSION] Force a Mission session into completed status.Env vars
[gated by GCO_ENABLE_MISSION] Force a Mission session into completed status.

        Args:
            session_id: The session to complete.
            reason: Free-form reason recorded alongside the synthetic
                final verdict (default ``forced_complete``).

        Stamps a synthetic ``complete`` final verdict and an
        ``ended_at`` timestamp. Refuses sessions already in a terminal
        state.
mission_historytool [gated by GCO_ENABLE_MISSION] Get iteration history for a Mission session.Env vars
[gated by GCO_ENABLE_MISSION] Get iteration history for a Mission session.

        Args:
            session_id: The session whose history to retrieve.
            format: ``"summary"`` (default) returns a compact list of
                ``{iteration_index, verdict, verdict_reason,
                started_at, ended_at}`` dicts; ``"full"`` returns the
                complete iteration record dicts.

        Returns a JSON object with an ``iterations`` list, or an error
        envelope when the session is unknown.
mission_iteratetool [gated by GCO_ENABLE_MISSION] Run iteration(s) on a Mission session.Env vars
[gated by GCO_ENABLE_MISSION] Run iteration(s) on a Mission session.

        Args:
            session_id: The session to iterate.
            max_iterations_this_call: How many iterations to run before
                returning (default 1). The loop exits early on a
                terminal verdict (``complete`` or ``terminate``).

        Returns a JSON object with a ``session_id`` and an
        ``iterations`` list of iteration summaries (verdict, reason,
        iteration index). On engine errors, returns an error envelope
        with whatever summaries had accumulated before the failure.
mission_listtool [gated by GCO_ENABLE_MISSION] List Mission sessions.Env vars
[gated by GCO_ENABLE_MISSION] List Mission sessions.

        Args:
            status: Optional filter. Recognised values are ``running``,
                ``completed``, ``terminated``, ``failed``, ``paused``,
                ``pending``. Omit to list every known session.

        Returns a JSON object with a ``sessions`` list of summary dicts
        (``session_id``, ``status``, ``created_at``,
        ``iteration_count``).
mission_memory_searchtool [gated by GCO_ENABLE_MISSION] Search mission memory for similar past missions.
[gated by GCO_ENABLE_MISSION] Search mission memory for similar past missions.

        Embeds ``directive`` and queries the ``{project}-mission-memory``
        DynamoDB vector index for the closest completed missions — the
        same institutional memory the engine consults on sampling
        sessions. Requires the mission-memory add-on to be deployed
        (``mission_memory.enabled`` in cdk.json, on by default).

        Args:
            directive: Natural-language mission goal to search by.
            top_k: Number of similar missions to return (default 3,
                mirroring the ``mission_memory.top_k`` config default).
            final_verdict: Optional inline filter on the stored
                terminal verdict — ``"complete"`` or ``"terminate"``.

        Returns a JSON object with a ``results`` list (each entry
        carries ``session_id``, ``directive``, ``lessons``,
        ``recommended_followups``, ``final_verdict``, ``verdict_reason``,
        ``iteration_count``, ``completed_at``, and a similarity
        ``score``), or an error envelope: ``mission_memory_unavailable``
        when the table/index is absent or still backfilling,
        ``mission_memory_search_failed`` for anything else.
mission_resumetool [gated by GCO_ENABLE_MISSION] Resume a paused Mission session.Env vars
[gated by GCO_ENABLE_MISSION] Resume a paused Mission session.

        Args:
            session_id: The session to resume.

        Transitions ``paused -> running``. Returns an error envelope
        when the session is missing or not in ``paused`` state.
mission_starttool [gated by GCO_ENABLE_MISSION] Start a new Mission session.Env vars
[gated by GCO_ENABLE_MISSION] Start a new Mission session.

        Args:
            directive: Natural-language goal description.
            criteria: List of success criterion dicts (``metric_threshold``,
                ``event``, or ``predicate`` kinds).
            budget: Budget controls dict with ``max_iterations`` and
                ``max_wall_clock_seconds``. Cost guardrails live
                out-of-band via AWS Budgets and Cost Anomaly Detection.
            tool_allowlist: List of tool names the session may invoke.
                Optional; omit it when ``allow_all_tools`` is set. Naming a
                ``mission_*`` control tool or a ``swarm_*`` tool is rejected
                (``control_tool_not_allowed``).
            checkpoint_cadence: Optional cadence dict (default
                ``{"kind": "every_iteration"}``).
            stagnation_threshold: Iterations of no progress before
                terminating (default 3).
            use_sampling: Three-state opt-in. ``None`` auto-detects,
                ``True`` opts in explicitly, ``False`` opts out.
                Sampling always runs server-side through Bedrock — MCP
                client sampling left the protocol with FastMCP 4.
            allow_scripted_strategies: When True, the session permits
                scripted strategies (validated via the sandbox AST).
            allow_all_tools: When True (default ``False``), resolve the
                session's allowlist to every currently-registered tool
                minus the ``mission_*`` and ``swarm_*`` tools, instead of an
                explicit ``tool_allowlist``. Mutually exclusive with a
                non-empty ``tool_allowlist``.

        Returns a JSON string with the new ``session_id`` and the
        resolved sampling state, or an error envelope.
mission_statustool [gated by GCO_ENABLE_MISSION] Get the full state of a Mission session.Env vars
[gated by GCO_ENABLE_MISSION] Get the full state of a Mission session.

        Args:
            session_id: The session identifier returned by
                :func:`mission_start`.

        Returns the full session JSON or an error envelope when the
        session is unknown.
monitoring_statustool `gco monitoring status` — show the cluster observability toggle + config.
`gco monitoring status` — show the cluster observability toggle + config.
monitoring_user_addtool `gco monitoring users add` — create a Grafana user via the admin API.
`gco monitoring users add` — create a Grafana user via the admin API.

    The password reaches the CLI through ``$GCO_GRAFANA_USER_PASSWORD`` in the
    child's environment, never on its command line. The admin credential is
    read from the Grafana Secret on the region's cluster.

    Args:
        username: Grafana login for the new user.
        password: Password to set for the new user.
        email: Optional email address for the new user.
        region: Region whose cluster holds the Grafana Secret. Omit for the
            CLI's default Region.
        via_ssm: SSM-managed instance id to read the Secret through when the
            cluster's API endpoint is private and this host is outside the
            VPC. ``auto`` is refused: the tool never provisions a bastion.
monitoring_user_removetool [gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco monitoring users remove` — delete a Grafana user via the admin
        API. Cannot be undone — the user and their Grafana-owned resources are
        permanently removed.

        Args:
            username: Grafana login or email to remove.
            region: Region whose cluster holds the Grafana Secret. Omit for
                the CLI's default Region.
            via_ssm: SSM-managed instance id to read the Secret through when
                the cluster's API endpoint is private and this host is outside
                the VPC. ``auto`` is refused: the tool never provisions a
                bastion.
monitoring_users_listtool `gco monitoring users list` — list Grafana users via the admin API.
`gco monitoring users list` — list Grafana users via the admin API.

    Reaches Grafana over a `gco monitoring open` port-forward; the admin
    credential is read from the chart-generated Secret on the region's cluster
    (or $GCO_GRAFANA_ADMIN_PASSWORD).

    Args:
        region: Region whose cluster holds the Grafana Secret. Omit for the
            CLI's default Region (GCO_DEFAULT_REGION or the config file, else
            the first cdk.json regional entry).
        via_ssm: SSM-managed instance id to read the Secret through when the
            cluster's API endpoint is private (the default) and this host is
            outside the VPC. ``auto`` is refused: the tool never provisions a
            bastion.
mooncake_topology_statustool Show a disaggregated endpoint's per-role topology status.
Show a disaggregated endpoint's per-role topology status.

    Returns the endpoint record including its role-keyed region status, so
    the prefill and decode roles can be inspected per region.

    Args:
        name: Endpoint name.
nodepools_create_capacity_blocktool `gco nodepools create-capacity-block` — NodePool manifest for a Capacity Block.
`gco nodepools create-capacity-block` — NodePool manifest for a Capacity Block.

    The Capacity Block counterpart to ``nodepools_create_odcr``. Purchasing a
    Capacity Block yields an EC2 Capacity Reservation id (``cr-...``), which the
    returned EKS Auto Mode NodeClass binds through
    ``capacityReservationSelectorTerms``. Because a block is prepaid for a
    fixed term, the NodePool holds the capacity rather than consolidating it
    early. Nothing is applied: apply the returned YAML with kubectl.

    Args:
        name: NodePool name.
        region: AWS region.
        capacity_reservation_id: Capacity Reservation ID (``cr-...``) of the block.
        instance_type: Instance types the NodePool may provision (one per entry).
        max_nodes: Maximum nodes in the pool.
        fallback_on_demand: Fall back to on-demand when the block is exhausted/expired.
        efa: Enable EFA support (adds EFA taint and labels).
        cluster: EKS cluster name (defaults to ``gco-<region>``).
nodepools_create_odcrtool `gco nodepools create-odcr` — generate a NodePool manifest tied to an ODCR.
`gco nodepools create-odcr` — generate a NodePool manifest tied to an ODCR.

    Returns an EKS Auto Mode NodeClass that binds an On-Demand Capacity
    Reservation through ``capacityReservationSelectorTerms`` (with the
    cluster's own node role, subnets and security group) plus a NodePool
    that launches reserved capacity through it. Nothing is applied: apply
    the returned YAML with kubectl, and target the pool from a pod with
    ``nodeSelector karpenter.sh/nodepool: <name>``.

    Args:
        name: NodePool name.
        region: AWS region.
        capacity_reservation_id: EC2 Capacity Reservation ID (``cr-...``).
        instance_type: Instance types the NodePool may provision (one per entry).
        max_nodes: Maximum nodes in the pool.
        fallback_on_demand: Fall back to on-demand when the ODCR is exhausted.
        efa: Enable EFA support (adds EFA taint and labels).
        cluster: EKS cluster name (defaults to ``gco-<region>``).
nodepools_describetool `gco nodepools describe` — describe a single NodePool.
`gco nodepools describe` — describe a single NodePool.

    Args:
        nodepool_name: NodePool name.
        region: AWS region.
        cluster: EKS cluster name (defaults to ``gco-<region>``).
nodepools_listtool `gco nodepools list` — list Karpenter NodePools in a cluster.
`gco nodepools list` — list Karpenter NodePools in a cluster.

    Needs the cluster's EKS API endpoint to be reachable (it is private by
    default; see ``cluster_tunnel_command``).

    Args:
        region: AWS region to query.
        cluster: EKS cluster name (defaults to ``gco-<region>``).
populate_kv_cachetool [gated by GCO_ENABLE_MODEL_UPLOAD] Upload data into an endpoint's KV-cache cold tier.Files
[gated by GCO_ENABLE_MODEL_UPLOAD] Upload data into an endpoint's KV-cache cold tier.

        `gco inference populate-kv` — uploads a local file or directory to the
        region's general-purpose bucket under the cold-tier key prefix the
        endpoint reads from, pre-warming its Mooncake KV-cache prefix cache.
        The endpoint must be deployed with the cold tier enabled (deploy with
        --mooncake-cold-tier, or configure it via configure-store) for its pods
        to read the uploaded data.

        The source must resolve beneath ``GCO_STORAGE_LOCAL_ROOT``; relative
        paths are interpreted relative to that root, never relative to the MCP
        process working directory. The CLI receives a private hard-link
        snapshot built with descriptor-relative no-follow opens; descendant
        links, special files, hard links, and filesystem crossings fail closed.
        The upload may run for up to an hour.

        Args:
            endpoint_name: Endpoint whose KV-cache cold tier receives the data.
            local_path: Root-relative local file or directory to upload.
            region: Region whose general-purpose bucket backs the cold tier.
promote_canarytool Promote canary to primary (100% traffic to new version).
Promote canary to primary (100% traffic to new version).

    Args:
        name: Endpoint name.
queue_gettool `gco queue get` — fetch a single job from the global queue.
`gco queue get` — fetch a single job from the global queue.

    Args:
        job_id: Job identifier.
        region: Region to query (any region works).
queue_listtool `gco queue list` — list one page of jobs in the global queue.
`gco queue list` — list one page of jobs in the global queue.

    A page holds up to ``limit`` jobs; when more may match, the result's
    ``next_cursor`` is set. Pass it back as ``cursor`` with the same filters
    to read the next page (a cursor is bound to its filters).

    Args:
        region: Filter by target region.
        status: Filter by status (queued, claimed, applying, pending, running,
            succeeded, failed, cancelled).
        namespace: Filter by Kubernetes namespace.
        limit: Maximum results in this page (1-1000, default 50).
        cursor: ``next_cursor`` from the previous page, to read the page after it.
queue_statstool `gco queue stats` — show aggregate stats for the global queue.
`gco queue stats` — show aggregate stats for the global queue.

    Args:
        region: Region to query (any region works).
queue_statustool View SQS queue status (pending, in-flight, DLQ counts).
View SQS queue status (pending, in-flight, DLQ counts).

    Args:
        region: Specific region, or omit for all regions.
queue_submittool `gco queue submit` — submit a job manifest to the global queue.
`gco queue submit` — submit a job manifest to the global queue.

    Args:
        manifest_path: Path to the job manifest YAML, relative to the project
            root (an absolute path must also be inside it).
        region: Target region for job execution.
        namespace: Namespace for a manifest that declares none (defaults to
            the configured default namespace, ``gco-jobs``); must match a
            namespace the manifest declares.
        priority: Job priority (0-100, higher = more important).
        labels: Optional ``key=value`` labels to attach to the queued job.
recommend_capacitytool Recommend spot or on-demand capacity for a workload.
Recommend spot or on-demand capacity for a workload.

    Args:
        instance_type: EC2 instance type to evaluate.
        region: AWS region in which the workload will run.
        fault_tolerance: Interruption tolerance: ``high``, ``medium``, or ``low``.
recommend_regiontool Get optimal region recommendation based on capacity.
Get optimal region recommendation based on capacity.

    Args:
        gpu: Whether the workload requires GPUs.
        instance_type: Specific instance type to check. When provided, uses weighted
            multi-signal scoring (spot placement scores, pricing, queue depth, etc.);
            Regions that do not offer the type are left out
            (``ineligible_regions``), and the call fails when none does.
            With ``backend="hyperpod"`` it names the HyperPod instance group type
            the Region must have (``ml.g5.8xlarge`` or ``g5.8xlarge``).
        gpu_count: Number of GPUs required for the workload.
        backend: Capacity pool to place on. ``eks`` (default) is the Region's EKS
            cluster. ``hyperpod`` considers only Regions running SageMaker
            HyperPod, ranked on the cluster's health, whether its GPU pool fits
            ``gpu_count`` and the Region's job queue; ``pcs`` considers only
            Regions running AWS PCS, ranked on the cluster's health, the compute
            nodes its node groups can still launch and Slurm's pending jobs.
            Both fail when no Region runs the backend.
remove_deployment_regiontool [gated by GCO_ENABLE_CONFIG_MANAGEMENT]
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Remove a workload Region from cdk.json deployment_regions.regional.

        Config-only and idempotent: the resulting list must stay valid
        (SDK-known, unique Regions in one AWS partition). Removing the last
        Region is allowed and leaves a control-plane-only topology (global,
        API Gateway, and monitoring stacks with no workload cluster);
        removing an absent Region is a reported no-op.
        A deployed stack for the removed Region is NOT destroyed, and once
        the Region leaves cdk.json it is outside the CDK app, where
        destroy_stack cannot reach it. Retire a deployed Region first with the
        procedure in docs/CUSTOMIZATION.md (Removing a Region).

        Args:
            region: AWS Region name to remove (e.g. us-west-2).
remove_inference_regiontool Remove a Region from an inference endpoint.
Remove a Region from an inference endpoint.

    The inference monitor in that Region deletes the endpoint's resources
    there; the endpoint keeps serving from its other Regions and the Region can
    be added back. Removing the endpoint's last Region is refused.

    Args:
        name: Endpoint name.
        region: Region to remove.
reservation_checktool Check ODCR and Capacity Block availability for an instance type.
Check ODCR and Capacity Block availability for an instance type.

    Checks existing On-Demand Capacity Reservations and purchasable Capacity
    Blocks for ML. By default it searches a 24h block soonest-available, but you
    can widen the search: pass several regions to fan out in parallel, set a
    start-date window (earliest_start / latest_start) to ask for blocks starting
    near a date, and set the block duration in hours or days. For a full
    duration-range sweep that returns one ranked, de-duplicated report, use
    find_capacity_blocks instead.

    Args:
        instance_type: GPU instance type (e.g. p4d.24xlarge, p5.48xlarge, p6-b200).
        regions: Regions to check in parallel (any regions, not just deployed);
            omit to check all deployed regions.
        count: Minimum number of instances needed.
        include_blocks: Whether to include Capacity Block offerings.
        block_duration: Capacity Block duration in hours (default 24).
        block_duration_days: Capacity Block duration in days (overrides hours).
        earliest_start: Earliest block start date (YYYY-MM-DD or ISO datetime).
        latest_start: Latest block start date (YYYY-MM-DD or ISO datetime); a
            date means the whole of that day.

    A Capacity Block request EC2 refuses (an instance count it does not sell,
    a start window it cannot serve) is returned as an error with EC2's
    reason rather than as "no offerings".
reserve_capacitytool Purchase a Capacity Block offering by its ID.
Purchase a Capacity Block offering by its ID.

        Use find_capacity_blocks or reservation_check first to find available
        offerings and their IDs, then purchase with this tool. dry_run=True
        checks the request and the caller's permission without purchasing;
        EC2's dry run does not look the offering up, so it cannot tell whether
        the offering still exists. Only the purchase itself does.

        Args:
            offering_id: Capacity Block offering ID (cb-xxx) from a recent search.
            region: AWS region where the offering exists.
            dry_run: If True, check the request and permission without
                purchasing (no cost). Does not verify the offering exists.
retry_jobtool Retry a failed job by creating a new Job while preserving the original.
Retry a failed job by creating a new Job while preserving the original.

    Args:
        job_name: Failed Kubernetes Job to retry.
        region: AWS region where the job ran.
        namespace: Kubernetes namespace.
rollback_canarytool Rollback canary (remove canary, 100% traffic to primary).
Rollback canary (remove canary, 100% traffic to primary).

    Args:
        name: Endpoint name.
runai_capacitytool Read GPU capacity from the NVIDIA Run:ai control plane configured on the MCP host.
Read GPU capacity from the NVIDIA Run:ai control plane configured on the MCP host.

        Returns one row per Run:ai cluster and node pool: total, allocated and
        free GPUs, whole_gpus_upper_bound (the whole GPUs a new workload could be
        given), the GPU models with the EC2 families that carry them, and each
        project's quota headroom. Rows carry observed_at/valid_until (telemetry
        is a short-lived snapshot), a value Run:ai did not report is null (never
        0), and every row says submit_compatible=false: GCO does not submit work
        to Run:ai, and these rows are not part of recommend_region's AWS ranking.

        The control plane and its credentials come only from the MCP host's
        environment (GCO_RUNAI_URL, GCO_RUNAI_CLIENT_ID, GCO_RUNAI_CLIENT_SECRET,
        optional GCO_RUNAI_CA_FILE); this tool takes no URL or credential
        argument, so a prompt cannot redirect the secret to another host.

        Args:
            cluster: Only this Run:ai cluster (name or ID).
            node_pool: Only this node pool.
            gpu_count: Mark which node pools have this many whole GPUs free.
            project: Report this Run:ai project's quota headroom on each pool.
s3_inventorytool Describe every S3 bucket the deployment creates, with its contract.
Describe every S3 bucket the deployment creates, with its contract.

    Broader than list_storage_buckets, which returns only the four buckets
    addressable by ``storage sync``. This covers the always-on central
    (``Cluster_Shared_Bucket``) and per-region (``Regional_Shared_Bucket``)
    buckets, model weights, cost reports, the optional analytics Studio bucket,
    and every server-access-log sink.

    Each entry carries the owning stack and region, the bucket's purpose,
    reserved object-key prefixes, whether job pods have read-write / read-only /
    no access and how they discover the name (ConfigMap key or SSM path), the
    teardown removal policy, and whether it is currently deployed. Buckets whose
    stack is not deployed are included with ``status="not-deployed"`` so the
    inventory is complete rather than silently partial.

    Use this to answer "where can a job write?" — ``summary.pod_writable`` lists
    exactly the buckets the job-pod role can write to.

    Inventories buckets and their deployment contract; unrelated to the AWS
    "S3 Inventory" feature, which reports the objects inside a bucket.

    Args:
        region: Limit regional entries to one AWS region. Global, monitoring,
            and analytics entries are always included.
scale_inferencetool Scale an inference endpoint.
Scale an inference endpoint.

    Args:
        name: Endpoint name.
        replicas: Target replica count.
set_capacity_advisor_default_modeltool [gated by GCO_ENABLE_CONFIG_MANAGEMENT]
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Set cdk.json bedrock.capacity_advisor_default_model_id.

        The default model for gco capacity ai-recommend and gco capacity
        predict. Config-only and idempotent; Mission sampling and gco
        autopilot have their own keys (set_mission_default_model and
        set_claude_code_default_model). Validation mirrors the runtime
        reader (non-empty, no surrounding whitespace). Sibling settings
        (bedrock.generation_reasoning, the other model keys) are preserved; explicit
        --model overrides still take precedence at run time.

        Args:
            model_id: Bedrock model or inference-profile ID
                (e.g. us.amazon.nova-2-lite-v1:0).
set_claude_code_default_modeltool [gated by GCO_ENABLE_CONFIG_MANAGEMENT]
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Set cdk.json bedrock.claude_code_default_model_id (autopilot model).

        The session model gco autopilot hands to Claude Code, independent of
        the mission_default_model_id and capacity_advisor_default_model_id
        knobs consumed by Mission sampling and the capacity advisor.
        Config-only and idempotent; validation mirrors the runtime reader
        (non-empty, no surrounding whitespace). Sibling settings are
        preserved; explicit --model / GCO_AUTOPILOT_MODEL overrides still
        take precedence at launch time.

        Args:
            model_id: Bedrock model or inference-profile ID
                (e.g. us.anthropic.claude-sonnet-4-6).
set_codex_default_modeltool [gated by GCO_ENABLE_CONFIG_MANAGEMENT]
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Set cdk.json bedrock.codex_default_model_id.

        Config-only and idempotent. The reviewed
        bedrock.codex.reasoning_effort sibling is preserved; review the pair
        together when changing model families. Explicit --model,
        GCO_AUTOPILOT_CODEX_MODEL, and GCO_AUTOPILOT_MODEL overrides still
        take precedence at launch.

        Args:
            model_id: Bedrock model or inference-profile ID
                (e.g. global.openai.<model-id>).
set_codex_reasoning_efforttool [gated by GCO_ENABLE_CONFIG_MANAGEMENT]
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Set cdk.json bedrock.codex.reasoning_effort.

        Allowed values are minimal, low, medium, high, and xhigh. The setting
        applies only to the canonical Codex model; explicit model overrides
        intentionally omit canonical reasoning.

        Args:
            reasoning_effort: Reviewed canonical Codex reasoning effort.
set_deployment_regiontool [gated by GCO_ENABLE_CONFIG_MANAGEMENT]
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Set a control-plane Region scalar in cdk.json deployment_regions.

        Config-only and idempotent: the Region must be SDK-known and keep
        the whole topology (all three scalars plus the workload list) in one
        AWS partition. Already-deployed stacks are not moved or destroyed —
        the next deploy creates the stack in the new Region.

        Args:
            role: Which scalar to set: "global", "api_gateway", or "monitoring".
            region: AWS Region name (e.g. us-east-2).
set_eks_endpoint_accesstool [gated by GCO_ENABLE_CONFIG_MANAGEMENT]
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Set cdk.json eks_cluster.endpoint_access (the EKS API endpoint mode).

        Config-only and synth-time: no stack is deployed, and `gco stacks
        status` reports the configured-vs-live endpoint as drift until a
        deploy converges it. PUBLIC_AND_PRIVATE requires an explicit CIDR
        allowlist — the CLI refuses to widen control-plane access without
        one, and an internet-open endpoint must be spelled out as 0.0.0.0/0.
        PRIVATE needs no CIDRs (use cluster_tunnel_command / `gco cluster
        tunnel` for laptop access, plus an access entry via `gco stacks
        access`).

        Args:
            mode: "PRIVATE" or "PUBLIC_AND_PRIVATE".
            cidrs: CIDR allowlist entries for the public endpoint
                (e.g. ["203.0.113.7/32"]). Required for PUBLIC_AND_PRIVATE.
set_mission_default_modeltool [gated by GCO_ENABLE_CONFIG_MANAGEMENT]
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Set cdk.json bedrock.mission_default_model_id (Mission sampling).

        Config-only and idempotent. The capacity advisor and gco autopilot
        have their own keys (set_capacity_advisor_default_model and
        set_claude_code_default_model). Model and inference-profile IDs are
        free-form (custom profiles, marketplace models); validation mirrors
        the runtime reader (non-empty, no surrounding whitespace). Sibling
        settings (bedrock.generation_reasoning, the other model keys) are preserved;
        explicit --bedrock-model-id / env overrides still take precedence
        at run time.

        Args:
            model_id: Bedrock model or inference-profile ID
                (e.g. us.amazon.nova-2-lite-v1:0).
set_mooncake_topologytool Resize a disaggregated endpoint's prefill/decode topology.
Resize a disaggregated endpoint's prefill/decode topology.

    Updates the prefill (X) and decode (Y) instance counts and re-triggers
    reconciliation so each region adjusts its role replica counts. Both
    counts must be integers in the range 1..1000.

    Args:
        name: Endpoint name.
        prefill: New prefill (X) instance count.
        decode: New decode (Y) instance count.
set_opencode_default_modeltool [gated by GCO_ENABLE_CONFIG_MANAGEMENT]
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Set cdk.json bedrock.opencode_default_model_id.

        Config-only and idempotent. OpenCode has no engine-owned reasoning
        sibling, so this single key is the whole default. Explicit --model,
        GCO_AUTOPILOT_OPENCODE_MODEL, and GCO_AUTOPILOT_MODEL overrides still
        take precedence at launch.

        Args:
            model_id: Bedrock model or inference-profile ID
                (e.g. global.moonshotai.<model-id>).
setup_cluster_accesstool Configure kubectl access to a GCO EKS cluster.
Configure kubectl access to a GCO EKS cluster.

    Updates kubeconfig, creates an EKS access entry for your IAM principal,
    and associates the cluster admin policy. Handles assumed roles automatically.

    Returns ``cluster``, ``region``, ``principal_arn``,
    ``api_server_reachable``, ``node_count``, ``kubectl_error`` and
    ``warning``. An API server this host cannot reach is not an error:
    ``api_server_reachable`` is false and ``warning`` says why, because the
    access still applies from inside the cluster's network.

    Args:
        cluster: Cluster name (default: <project_name>-{region}).
        region: AWS region (default: first deployment region from cdk.json).
slurm_accountingtool `gco slurm accounting` — job history from slurmdbd (sacct).
`gco slurm accounting` — job history from slurmdbd (sacct).

    Args:
        region: Region whose Slurm cluster to read.
        since: Relative window such as 30m, 24h, 7d or 2w (default 1d unless start is given).
        start: Window start as a Slurm time (2026-10-01, 2026-10-01T08:00, now-2days).
        end: Window end as a Slurm time (default now).
        user: Only this Slurm user (API submissions run as the backend's
            identity, ``slurm`` on Slinky and ``pcs.identity`` on PCS; the
            submitting caller is in each row's comment).
        partition: Only this partition.
        state: Only these states, comma-separated (COMPLETED,FAILED,TIMEOUT).
        name: Only jobs with exactly this name.
        limit: Maximum rows (default 200).
        backend: Which Slurm cluster: slinky or pcs; optional when the region
            runs one, required when it runs both.
slurm_backendstool `gco slurm backends` — the Slurm backends enabled in a region and what each one is.
`gco slurm backends` — the Slurm backends enabled in a region and what each one is.

    Lists ``slinky`` (the cluster on the EKS cluster) and/or ``pcs`` (the AWS
    PCS cluster) with their facts, and whether the other tools need
    ``backend`` there (``selection_required``: both are on) or may leave it
    out (``default``: the one that is on). An empty list means no Slurm
    backend is deployed in the region.

    Args:
        region: Region whose Slurm backends to list.
slurm_canceltool [gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco slurm cancel` — cancel a Slurm job (scancel). A running job's
        work is lost; a pending job leaves the queue.

        Args:
            region: Region whose Slurm cluster runs the job.
            job_id: The Slurm job id.
            signal: Signal to send instead of the default (e.g. SIGUSR1).
            backend: Which Slurm cluster: slinky or pcs; optional when the
                region runs one, required when it runs both.
slurm_jobtool `gco slurm job` — one job in full (state, TRES, times, exit code, output paths).
`gco slurm job` — one job in full (state, TRES, times, exit code, output paths).

    Args:
        region: Region whose Slurm cluster to read.
        job_id: The Slurm job id.
        backend: Which Slurm cluster: slinky or pcs; optional when the region
            runs one, required when it runs both.
slurm_nodestool `gco slurm nodes` — Slurm nodes (slurmd worker pods or PCS instances) with state, resources and gres.
`gco slurm nodes` — Slurm nodes (slurmd worker pods or PCS instances) with state, resources and gres.

    Args:
        region: Region whose Slurm cluster to read.
        partition: Only nodes in this partition.
        backend: Which Slurm cluster: slinky or pcs; optional when the region
            runs one, required when it runs both.
slurm_partitionstool `gco slurm partitions` — partitions with state, time limit and node counts (sinfo).
`gco slurm partitions` — partitions with state, time limit and node counts (sinfo).

    An autoscaled partition reads zero nodes while idle: the first pending job
    makes KEDA (Slinky) or PCS scale it up.

    Args:
        region: Region whose Slurm cluster to read.
        backend: Which Slurm cluster: slinky or pcs; optional when the region
            runs one, required when it runs both.
slurm_queuetool `gco slurm queue` — the live queue as slurmctld sees it (squeue).
`gco slurm queue` — the live queue as slurmctld sees it (squeue).

    Args:
        region: Region whose Slurm cluster to read.
        state: Only jobs in this state (PENDING, RUNNING, COMPLETING, ...).
        partition: Only jobs in this partition.
        name: Only jobs with exactly this name.
        limit: Maximum jobs returned (default 200).
        backend: Which Slurm cluster: slinky or pcs; optional when the region
            runs one, required when it runs both.
slurm_statustool `gco slurm status` — controller reachability, partitions, node and job counts.
`gco slurm status` — controller reachability, partitions, node and job counts.

    Args:
        region: Region whose Slurm cluster to read (one cluster per backend per region).
        backend: Which Slurm cluster: slinky (the cluster on the EKS cluster) or
            pcs (AWS PCS); optional when the region runs one, required when it
            runs both.
slurm_submittool `gco slurm submit` — submit a local batch script to Slurm (sbatch).
`gco slurm submit` — submit a local batch script to Slurm (sbatch).

    The script's leading ``#SBATCH`` directives are honoured; the arguments
    here override them. The job runs as the backend's Slurm identity with the
    caller identity in its comment, and allocates compute (an idle autoscaled
    partition scales up for it).

    Args:
        region: Region whose Slurm cluster runs the job.
        script_path: Local path of the batch script (an interpreter line
            first), relative to the project root (an absolute path must also
            be inside it).
        name: Job name (default: the script's #SBATCH --job-name, else gco-job).
        partition: Partition (default: the cluster's default partition).
        nodes: Node count.
        tasks: Task count (--ntasks).
        cpus_per_task: CPUs per task.
        gpus_per_node: GPUs per node.
        memory: Memory per node: MiB or a K/M/G/T suffix such as 64G. 0 (all of
            each node's memory) is refused; give an explicit size.
        time_limit: Wall time: minutes, HH:MM:SS or D-HH:MM:SS.
        working_directory: Working directory on the worker (default: the
            backend identity's home on the shared filesystem).
        environment: Extra environment variables as NAME=VALUE strings.
        comment: Free-text comment appended after the caller identity.
        exclusive: Whole-node allocation.
        backend: Which Slurm cluster: slinky or pcs; optional when the region
            runs one, required when it runs both.
spot_pricestool Get current spot prices for an instance type.
Get current spot prices for an instance type.

    Args:
        instance_type: EC2 instance type.
        region: AWS region.
stack_difftool `gco stacks diff` — show CloudFormation diff for a stack.
`gco stacks diff` — show CloudFormation diff for a stack.

    Args:
        stack_name: Stack to diff. If omitted, diffs all stacks.
stack_outputstool `gco stacks outputs` — fetch CloudFormation outputs for a stack.
`gco stacks outputs` — fetch CloudFormation outputs for a stack.

    Args:
        stack_name: Stack name (e.g. gco-us-east-1).
        region: AWS region.
stack_statustool Get detailed status of a CloudFormation stack.
Get detailed status of a CloudFormation stack.

    Args:
        stack_name: Stack name (e.g. gco-us-east-1).
        region: AWS region.
stack_synthtool `gco stacks synth` — synthesize CloudFormation templates from CDK.
`gco stacks synth` — synthesize CloudFormation templates from CDK.

    Args:
        stack_name: Stack to synthesize. If omitted, synthesizes all stacks.
        quiet: When True, pass ``--quiet`` to suppress verbose CDK output.
start_inferencetool Start a stopped inference endpoint.
Start a stopped inference endpoint.

    Args:
        name: Endpoint name.
stop_inferencetool Stop an inference endpoint (scales to zero, keeps config).
Stop an inference endpoint (scales to zero, keeps config).

    Args:
        name: Endpoint name.
submit_job_apitool Submit a job via the authenticated API Gateway (SigV4).
Submit a job via the authenticated API Gateway (SigV4).

    Args:
        manifest_path: Path to the YAML manifest file, relative to the
            project root (an absolute path must also be inside it).
        namespace: Override the namespace in the manifest.
        sandbox: "isolated" runs every pod in an AWS Nitro Sandbox (EKS 1.36+,
            CPU only; see docs/NITRO_SANDBOXES.md).
        keep_warm: Run the GPU pods on the keep-warm pool, whose empty nodes
            are kept for cdk.json gpu_keep_warm.window so the next keep-warm
            GPU Job reuses the node (see docs/GPU_KEEP_WARM.md).
submit_job_sqstool Submit a job via SQS queue (recommended for production).
Submit a job via SQS queue (recommended for production).

    Args:
        manifest_path: Path to the YAML manifest file, relative to the
            project root (an absolute path must also be inside it).
        region: Target AWS region for the SQS queue.
        namespace: Override the namespace in the manifest.
        priority: Job priority (0-100, higher = more important).
        sandbox: "isolated" runs every pod in an AWS Nitro Sandbox (EKS 1.36+,
            CPU only; see docs/NITRO_SANDBOXES.md).
        keep_warm: Run the GPU pods on the keep-warm pool, whose empty nodes
            are kept for cdk.json gpu_keep_warm.window so the next keep-warm
            GPU Job reuses the node (see docs/GPU_KEEP_WARM.md).
swarm_aborttool [gated by GCO_ENABLE_SWARM] Terminate a swarm and its children.Env vars
[gated by GCO_ENABLE_SWARM] Terminate a swarm and its children.

        Transitions the orchestrator to ``terminated`` and aborts every
        non-terminal child through the standard abort transition,
        settling each slot's pool reservation. Works with no live
        runner; a live runner observes the terminal orchestrator at its
        next boundary and stands down.
swarm_iteratetool [gated by GCO_ENABLE_SWARM] Drive a swarm's fleet forward.Env vars
[gated by GCO_ENABLE_SWARM] Drive a swarm's fleet forward.

        Long-running: builds the child runner, schedules every live
        child, and iterates the orchestrator — to its terminal verdict
        by default, or detaching after ``max_orchestrator_iterations``
        with the fleet left resumable. Exactly one live runner may
        drive a swarm at a time; a second call while one runs returns a
        ``swarm_runner_active`` envelope naming the holding process.
swarm_listtool [gated by GCO_ENABLE_SWARM] List swarm (orchestrator) sessions.Env vars
[gated by GCO_ENABLE_SWARM] List swarm (orchestrator) sessions.

        Optionally filtered by lifecycle ``status``. Child and standalone
        sessions never appear here — use ``mission_list`` for those.
swarm_plantool [gated by GCO_ENABLE_SWARM] Draft a validated swarm plan.
[gated by GCO_ENABLE_SWARM] Draft a validated swarm plan.

        Decomposes the directive into admission-validated spawn requests
        — the sampled path with retry-and-feedback when a sampling
        backend resolves, always falling back to the deterministic
        single-worker plan. The returned plan feeds ``mission_spawn``
        requests (or ``gco swarm run``) verbatim; review before running.
swarm_starttool [gated by GCO_ENABLE_SWARM] Start a new swarm (orchestrator) session.Env vars
[gated by GCO_ENABLE_SWARM] Start a new swarm (orchestrator) session.

        Args:
            directive: The swarm-level goal, natural language.
            criteria: Orchestrator success criteria. These evaluate over
                the fleet snapshot — aggregate metrics like
                ``metrics.children_completed`` and predicates over
                ``obs['children']``.
            budget: Orchestrator loop caps (``max_iterations``,
                ``max_wall_clock_seconds``; Mission semantics, ``-1``
                sentinel allowed on one axis).
            swarm: The swarm rails: ``max_children`` and
                ``child_iteration_pool`` (required, strictly positive),
                ``max_concurrent_children`` (default 3),
                ``allow_overlapping_mutating_tools`` (default false).
            tool_allowlist: Optional extra tools for the orchestrator's
                own Execute phase. The three in-process supervisor tools
                are always present; ``children_status`` leads the list so
                the deterministic strategy polls the fleet.
            allow_all_tools: Resolve the extra allowlist to every
                registered tool (minus loop-management names). Mutually
                exclusive with ``tool_allowlist``.
            checkpoint_cadence: Optional cadence dict (default
                ``{"kind": "every_iteration"}``).
            stagnation_threshold: Evaluated iterations with no criterion
                transition before the cascade terminates (default 3) —
                also the swarm's pool-exhaustion exit.
            use_sampling: Three-state opt-in for the orchestrator's
                advisory sampler. ``None`` auto-detects.

        Returns a JSON string with the new ``session_id``, or a
        structured error envelope.
swarm_statustool [gated by GCO_ENABLE_SWARM] One-call fleet rollup for a swarm.FilesEnv vars
[gated by GCO_ENABLE_SWARM] One-call fleet rollup for a swarm.

        Returns the orchestrator summary, the swarm rails, the iteration
        pool balance, the slot-ordered child table, and a findings list
        (orphaned runner heartbeat, unreadable children, exhausted pool)
        in the ``fleet_status`` one-document style.
sync_storage_buckettool Sync between a GCO S3 bucket and the MCP host in one direction.Files
Sync between a GCO S3 bucket and the MCP host in one direction.

        [gated by GCO_ENABLE_LOCAL_STORAGE_SYNC] The local path is confined
        beneath ``GCO_STORAGE_LOCAL_ROOT`` before the CLI is invoked. This
        confinement requires POSIX descriptor-relative filesystem APIs and
        fails closed on unsupported hosts. Download is the default; upload
        reads a local file or directory and writes S3. Neither direction
        deletes destination-only data.

        Args:
            bucket_alias: Human-friendly alias returned by
                ``list_storage_buckets``.
            local_dir: Local path relative to ``GCO_STORAGE_LOCAL_ROOT`` (or an
                absolute path contained by that root).
            direction: ``download`` for S3-to-local or ``upload`` for local-to-S3.
            region: Region for an unqualified ``regional-shared`` alias.
            prefix: Remote S3 key prefix to download from or upload into.
            dry_run: Return the transfer summary without writing files or S3 objects.
            force: Transfer all matching files even if the destination is current.
task_prunetool [gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive local cleanup.
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive local cleanup.

        Delete old ``~/.gco/tasks`` status/log pairs while retaining the newest
        ``keep`` records. This never changes AWS or Kubernetes state, but removed
        local task history cannot be recovered.

        Args:
            keep: Number of newest task records to retain; must be non-negative.
task_statustool Return live status of long-running tools.FilesEnv vars
Return live status of long-running tools.

    Each long-running tool (deploy_all, destroy_all, bootstrap_cdk,
    deploy_stack, destroy_stack, images_build, images_push) records
    progress to ``~/.gco/tasks/{task_id}.json`` on every output line.
    This tool reads that disk-backed channel — independent of whatever
    the calling MCP client decides to do with progress notifications —
    so operators (and other agents) can observe what's happening.

    PIDs are re-checked on every read; a status file claiming
    ``state=running`` whose recorded PID is no longer alive is rewritten
    to ``state=orphaned`` in the response so callers see honest data
    even when the original MCP wrapper exited unexpectedly while the
    underlying CLI was still running.

    Args:
        task_id: Specific task to inspect (e.g. ``deploy_all-1747683123``).
            Omit to list every known task, newest first.
        limit: When listing, maximum number of records to return.
            Ignored when ``task_id`` is set.

    Returns:
        JSON string. When ``task_id`` is set, an object with the task
        record. When omitted, ``{"tasks": [...]}`` newest-first.
task_tailtool Return the last N lines of a long-running task's raw output log.FilesEnv vars
Return the last N lines of a long-running task's raw output log.

    The log captures the full interleaved stdout+stderr of the
    underlying subprocess (CDK deploy, finch image push, etc.) as the
    tool wrote it to disk. Each line is prefixed with ``[stdout]`` or
    ``[stderr]`` so observers can tell which stream produced it.

    Args:
        task_id: Task to read (from ``task_status``).
        lines: Maximum lines to return. ``100`` is enough to see the
            most recent stack milestone plus surrounding context;
            ``500`` typically covers a full single-stack deploy.

    Returns:
        JSON string ``{"task_id": ..., "lines": [...]}`` containing the
        tail. Empty list when the task hasn't emitted any output yet
        or its log file has been pruned.
templates_createtool `gco templates create` — register a new job template from a manifest.
`gco templates create` — register a new job template from a manifest.

    Args:
        name: Template name.
        manifest_path: Path to the source manifest YAML, relative to the
            project root (an absolute path must also be inside it).
        region: Region to use (any region works).
        description: Optional human-readable description.
templates_gettool `gco templates get` — fetch a single job template by name.
`gco templates get` — fetch a single job template by name.

    Args:
        name: Template name.
        region: Region to query (any region works).
templates_listtool `gco templates list` — list job templates.
`gco templates list` — list job templates.

    Args:
        region: Region to query (any region works).
templates_runtool `gco templates run` — instantiate and run a job from a stored template.
`gco templates run` — instantiate and run a job from a stored template.

    Args:
        template_name: Name of the stored template to instantiate.
        job_name: Name for the resulting job.
        region: Region in which to run the job.
        namespace: Override the Kubernetes namespace (default: gco-jobs).
        params: Parameter overrides as ``key=value`` strings (one ``-p`` each).
update_inference_imagetool Rolling update of an inference endpoint's container image.
Rolling update of an inference endpoint's container image.

    A stopped endpoint stays stopped and rolls the new image out when started.

    Args:
        name: Endpoint name.
        image: New container image.
valkey_statustool `gco stacks valkey status` — show Valkey cache stack status.
`gco stacks valkey status` — show Valkey cache stack status.
webhooks_createtool `gco webhooks create` — register a new webhook subscription.
`gco webhooks create` — register a new webhook subscription.

    The URL (which often embeds a token) and the secret reach the CLI through
    ``$GCO_WEBHOOK_URL`` and ``$GCO_WEBHOOK_SECRET`` in the child's
    environment, never on its command line; the audit log records the URL's
    scheme and host only.

    Args:
        url: Destination URL for webhook deliveries.
        events: Event names to subscribe to — one ``--event`` per entry
            (job.started / job.completed / job.failed).
        region: Region to use (any region works).
        namespace: Only deliver events for jobs in this namespace.
        secret: Optional secret for HMAC signature verification.
webhooks_gettool `gco webhooks get` — fetch a single webhook by name.
`gco webhooks get` — fetch a single webhook by name.

    Args:
        name: Webhook name.
        region: Region to query (any region works).
webhooks_listtool `gco webhooks list` — list configured webhooks.
`gco webhooks list` — list configured webhooks.

    Args:
        region: Region to query (any region works).

Text the model reads (282)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

find_capacity_blocks tool
Find EC2 Capacity Blocks across regions x durations x a start-date window.

    This is the one-call sweep for "where and when can I get N of this GPU
    instance for D days?". It searches every requested region and every valid
    Capacity Block duration in the range, in parallel, then returns a single
    consolidated, de-duplicated, ranked report (cheapest per-GPU-hour first) with
    per-hour and per-GPU-hour pricing and the longest available block.

    AWS allows durations in 1-day increments up to 14 days, then 7-day increments
    up to 182 days; a duration range is expanded to those discrete values
    automatically. Friendly names are normalized (p6-b200 -> p6-b200.48xlarge,
    p6-b300 -> p6-b300.48xlarge), and UltraServer-only families (the Grace-
    Blackwell GB200/GB300 superchips / P6e-GB UltraServers) are flagged rather
    than silently returning nothing.

    Args:
        instance_type: GPU instance type or alias (e.g. p6-b200, p5.48xlarge).
        regions: Regions to search (any regions; defaults to deployed regions).
        count: Instances per block.
        duration_days / duration_hours: A single target duration.
        min_duration_days / max_duration_days: Duration range bounds in days.
        min_duration_hours / max_duration_hours: Duration range bounds in hours.
        earliest_start: Earliest block start (YYYY-MM-DD or ISO datetime).
        latest_start: Latest block start (YYYY-MM-DD or ISO datetime); a date
            means the whole of that day.
        find_longest: Sweep the duration ladder and surface the longest block.

    A probe EC2 refuses (an instance count it does not sell, a start window
    it cannot serve) is listed in the report's ``rejected_probes`` and named
    in ``recommendation``; when EC2 refuses every probe the tool returns an
    error with EC2's reason instead of an empty report.
deps_scan tool
Generate the dependency update list the monthly deps-scan produces.

    Runs `gco deps scan` — the same scanner behind the rolling
    "[Automated] Dependency updates available" GitHub issue — and returns
    a JSON envelope with `has_drift`, `scan_complete`, the full Markdown
    report under `report_markdown`, and the same rows as structured data
    under `findings` (one record per surface, each with its urgency, skip
    reason and findings keyed by column). Surfaces that need AWS
    credentials or missing host tools are skipped and flagged as
    incomplete rather than failing.

    The full scan reaches out to PyPI, npm, container registries, GitHub,
    and (with credentials) AWS, and typically takes several minutes. Its
    Python surface pip-installs the project's extras into the server's
    active environment, mirroring how the CI scan runs, so the tool is
    low-risk rather than read-only: it changes the packages installed
    where the server runs. ``nodepools_only=True`` installs nothing.
    Requires a GCO checkout (the scanner lives under .github/scripts/).

    Args:
        nodepools_only: Run only the accelerator-catalog / Karpenter
            NodePool freshness check (offline policy validation always;
            live EC2 catalog comparison when AWS credentials resolve).
            Fast, and the only network it may touch is EC2.
analytics_doctor tool
`gco analytics doctor` — run analytics environment health checks.

    Returns ``{"passed", "checks": [{"name", "ok", "remediation"}]}``. When
    a check fails the CLI exits 1, and the result is the error envelope
    with that document under ``output``.
analytics_status tool
`gco analytics status` — show the analytics environment configuration.
analytics_login_url tool
`gco analytics studio login` — get a SageMaker Studio presigned login URL.

    SRP-authenticates the user against Cognito and prints the presigned Studio
    URL. The password is read from ``$GCO_STUDIO_PASSWORD`` when not passed here.
    A password passed here reaches the CLI through that variable in the
    child's environment, never on its command line. With neither, the tool
    returns ``code: password_required`` without running the CLI, whose
    password prompt the MCP server cannot answer.

    Args:
        username: Cognito username to sign in with.
        password: Cognito password. Omit to use ``$GCO_STUDIO_PASSWORD``.
analytics_users_list tool
`gco analytics users list` — list Cognito users in the analytics user pool.
enable_analytics tool
`gco analytics enable` — flip the analytics environment on in cdk.json.

    Note: this only edits the cdk.json toggle. The change does not take effect
    until ``gco stacks deploy-all`` runs to provision the analytics stack.
disable_analytics tool
`gco analytics disable` — flip the analytics environment off in cdk.json.

    Note: this only edits the cdk.json toggle. The change does not take effect
    until ``gco stacks deploy-all`` runs to tear down the analytics stack.
analytics_user_add tool
`gco analytics users add` — create a Cognito user in the analytics pool.

    Args:
        username: Cognito username for the new user.
        email: Email address for the new user.
analytics_user_remove tool
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco analytics users remove` — delete a Cognito user from the
        analytics user pool. Cannot be undone — the user record and any
        Studio profile artefacts owned by them are permanently removed.

        Args:
            username: Cognito username to remove.
check_capacity tool
Check spot and on-demand capacity for a specific instance type.

    Args:
        instance_type: EC2 instance type (e.g. g4dn.xlarge, g5.2xlarge, p4d.24xlarge).
        region: AWS region to check.
instance_info tool
Describe an EC2 instance type's compute characteristics.

    Resolved live from ec2:DescribeInstanceTypes on every call — no checked-in
    specification table — so a newly launched accelerator family is reported as
    soon as it ships.

    Returns vCPUs/cores/threads, memory, every accelerator class (NVIDIA GPU,
    AWS Neuron, Inferentia, media, FPGA) with per-model counts and memory, EFA
    and network limits, local NVMe and EBS characteristics, placement-group
    support, purchase options (spot / capacity-block), and platform
    capabilities. GPU memory is reported as a total across devices.

    Carries no pricing. Use check_capacity or spot_prices for cost signals.

    DescribeInstanceTypes is region-scoped, so a type is described only where it
    is offered; if it is missing, try another region or recommend_region.

    Args:
        instance_type: EC2 instance type (for example, g5.2xlarge or p5.48xlarge).
        region: Region to describe it in. Defaults to the configured region.
recommend_capacity tool
Recommend spot or on-demand capacity for a workload.

    Args:
        instance_type: EC2 instance type to evaluate.
        region: AWS region in which the workload will run.
        fault_tolerance: Interruption tolerance: ``high``, ``medium``, or ``low``.
capacity_status tool
View capacity status across all deployed regions.

    Args:
        region: Specific region, or omit for all regions.
recommend_region tool
Get optimal region recommendation based on capacity.

    Args:
        gpu: Whether the workload requires GPUs.
        instance_type: Specific instance type to check. When provided, uses weighted
            multi-signal scoring (spot placement scores, pricing, queue depth, etc.);
            Regions that do not offer the type are left out
            (``ineligible_regions``), and the call fails when none does.
            With ``backend="hyperpod"`` it names the HyperPod instance group type
            the Region must have (``ml.g5.8xlarge`` or ``g5.8xlarge``).
        gpu_count: Number of GPUs required for the workload.
        backend: Capacity pool to place on. ``eks`` (default) is the Region's EKS
            cluster. ``hyperpod`` considers only Regions running SageMaker
            HyperPod, ranked on the cluster's health, whether its GPU pool fits
            ``gpu_count`` and the Region's job queue; ``pcs`` considers only
            Regions running AWS PCS, ranked on the cluster's health, the compute
            nodes its node groups can still launch and Slurm's pending jobs.
            Both fail when no Region runs the backend.
spot_prices tool
Get current spot prices for an instance type.

    Args:
        instance_type: EC2 instance type.
        region: AWS region.
ai_recommend tool
Get AI-powered capacity recommendation using Amazon Bedrock.

    Gathers comprehensive capacity data (spot scores, pricing, cluster
    utilization, queue depth) and sends it to an LLM for analysis.
    Returns a recommended region, instance type, capacity type, and reasoning.

    Requires AWS credentials with bedrock:InvokeModel permission and the
    specified model enabled in your account.

    Args:
        workload: Description of the workload (e.g. "Fine-tuning a 20B parameter LLM").
        instance_type: Specific instance type(s) to consider (e.g. "p4d.24xlarge").
        region: Specific region(s) to consider (e.g. "us-east-1").
        gpu: Whether the workload requires GPUs.
        min_gpus: Minimum number of GPUs required.
        min_memory_gb: Minimum GPU memory in GB.
        fault_tolerance: Tolerance for interruptions ("low", "medium", "high").
        max_cost: Maximum acceptable cost per hour in USD.
        model: Bedrock model ID to use for analysis. Omit to use
            `cdk.json` `context.bedrock.capacity_advisor_default_model_id`,
            the advisor's own knob (Mission sampling has a separate
            `mission_default_model_id`).
list_reservations tool
List On-Demand Capacity Reservations (ODCRs) across regions.

    Shows all active capacity reservations with utilization details.

    Args:
        instance_type: Filter by instance type (e.g. p5.48xlarge).
        region: Filter by specific region.
reservation_check tool
Check ODCR and Capacity Block availability for an instance type.

    Checks existing On-Demand Capacity Reservations and purchasable Capacity
    Blocks for ML. By default it searches a 24h block soonest-available, but you
    can widen the search: pass several regions to fan out in parallel, set a
    start-date window (earliest_start / latest_start) to ask for blocks starting
    near a date, and set the block duration in hours or days. For a full
    duration-range sweep that returns one ranked, de-duplicated report, use
    find_capacity_blocks instead.

    Args:
        instance_type: GPU instance type (e.g. p4d.24xlarge, p5.48xlarge, p6-b200).
        regions: Regions to check in parallel (any regions, not just deployed);
            omit to check all deployed regions.
        count: Minimum number of instances needed.
        include_blocks: Whether to include Capacity Block offerings.
        block_duration: Capacity Block duration in hours (default 24).
        block_duration_days: Capacity Block duration in days (overrides hours).
        earliest_start: Earliest block start date (YYYY-MM-DD or ISO datetime).
        latest_start: Latest block start date (YYYY-MM-DD or ISO datetime); a
            date means the whole of that day.

    A Capacity Block request EC2 refuses (an instance count it does not sell,
    a start window it cannot serve) is returned as an error with EC2's
    reason rather than as "no offerings".
find_training_plans tool
Find SageMaker Training Plan offerings: reserved capacity for HyperPod instance groups.

    A Training Plan reserves accelerated instances for a fixed window, the
    SageMaker counterpart of an EC2 Capacity Block, and is what a HyperPod
    instance group launches into through cdk.json
    ``hyperpod.instance_groups[].training_plan_arn`` (see docs/HYPERPOD.md).
    Every requested region is searched in parallel and the offerings come
    back in one report ranked cheapest per instance-hour first, then
    earliest start. Nothing is purchased: buying a plan is an account
    commitment made in the console or with
    ``aws sagemaker create-training-plan --training-plan-offering-id <id>``.

    Args:
        instance_type: HyperPod instance type or alias (e.g. ml.p5.48xlarge,
            p5); the ``ml.`` prefix is added when missing.
        regions: Regions to search (defaults to the deployed regions).
        count: Instances the plan must reserve.
        duration_hours / duration_days: The plan duration (one of the two).
        start_after: Earliest start (YYYY-MM-DD or ISO datetime).
        end_before: Latest end (YYYY-MM-DD or ISO datetime); a date means
            the whole of that day.
        target: What the capacity is for: ``hyperpod-cluster`` (default) or
            ``training-job``.

    A region that refuses the search is listed with its reason while the
    others still answer; only when every region refuses does the tool
    return an error.
list_training_plans tool
List the SageMaker Training Plans the account holds.

    Each plan's state, reserved instance types and zones, total and
    available instances, window and ARN, soonest start first. The ARN is
    what cdk.json ``hyperpod.instance_groups[].training_plan_arn`` takes;
    ``hyperpod_preflight`` then checks that the plan fits the instance group.

    Args:
        regions: Regions to list (defaults to the deployed regions).
        instance_type: Keep the plans whose reserved capacity includes this
            type (alias or ``ml.`` type).
        status: Keep the plans in this state: Pending, Active, Scheduled,
            Expired or Failed.
capacity_history_show tool
Show the recorded capacity time-series for an instance type in a region.

    Requires the historical capacity surface (an optional add-on to the global
    stack, enabled by default). Returns spot score, spot price, AZ coverage,
    queue depth, and capacity-block availability over the window.

    Args:
        instance_type: EC2 instance type (e.g. g5.xlarge, p5.48xlarge).
        region: AWS region.
        hours: Hours of history to show (default 168 = 7 days).
capacity_history_stats tool
Show p25/p50/p75/min/max/stddev per capacity metric over a time window.

    Args:
        instance_type: EC2 instance type.
        region: AWS region.
        hours: Hours of history to summarize (default 168 = 7 days).
capacity_history_patterns tool
Show a day-of-week by hour heatmap of average spot placement scores.

    Args:
        instance_type: EC2 instance type.
        region: AWS region.
        hours: Hours of history to analyze (default 168 = 7 days).
capacity_predict tool
Predict the best time to acquire capacity from historical patterns (Bedrock).

    Uses the historical capacity surface plus Amazon Bedrock to recommend the
    day/hour windows with the best spot availability and pricing.

    Args:
        instance_type: EC2 instance type.
        region: AWS region. Omit when all_regions is true.
        hours: Hours of history to analyze (default 168 = 7 days).
        all_regions: Predict across every region that has data for the type.
find_capacity_reservations tool
Find existing ODCRs across regions in one parallel, ranked report.

    The ODCR counterpart to find_capacity_blocks: it searches every requested
    region in parallel, normalizes friendly instance-type aliases (p6-b200 ->
    p6-b200.48xlarge), enriches each reservation with On-Demand pricing, and
    ranks them most-available-first (then cheapest per-GPU-hour). Use this to
    answer "where do I already have free reserved capacity?" rather than
    list_reservations' plain per-region aggregation.

    Args:
        instance_type: Instance type or alias to filter by (e.g. p6-b200); omit
            to return every reservation.
        regions: Regions to search in parallel (any regions; defaults to deployed).
        count: Minimum available instances to consider the search satisfied.
        state: Reservation state filter ("active" default; "all" for any state).
        pricing: Enrich reservations with On-Demand pricing.
reserve_capacity tool
Purchase a Capacity Block offering by its ID.

        Use find_capacity_blocks or reservation_check first to find available
        offerings and their IDs, then purchase with this tool. dry_run=True
        checks the request and the caller's permission without purchasing;
        EC2's dry run does not look the offering up, so it cannot tell whether
        the offering still exists. Only the purchase itself does.

        Args:
            offering_id: Capacity Block offering ID (cb-xxx) from a recent search.
            region: AWS region where the offering exists.
            dry_run: If True, check the request and permission without
                purchasing (no cost). Does not verify the offering exists.
create_reservation tool
Create a new On-Demand Capacity Reservation (ODCR).

        The ODCR counterpart to reserve_capacity. Reserves On-Demand capacity for
        an instance type in a specific AZ. Charges accrue for the reserved
        capacity until it is cancelled — use dry_run=True first to check the
        request and the caller's permission. EC2's dry run does not check
        capacity or the Availability Zone; only the real request does.

        Args:
            instance_type: EC2 instance type or alias (e.g. p5.48xlarge, p6-b200).
            region: AWS region.
            availability_zone: Target AZ (e.g. us-east-1a).
            count: Number of instances to reserve.
            platform: Instance platform/OS (default "Linux/UNIX").
            tenancy: "default" or "dedicated".
            match_criteria: "open" or "targeted".
            end_date: Optional end date (YYYY-MM-DD or ISO); omit for unlimited.
            ebs_optimized: Reserve EBS-optimized capacity.
            dry_run: If True, check the request and permission without creating
                (no cost). Does not check capacity or the AZ.
cancel_reservation tool
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        Cancel an On-Demand Capacity Reservation, releasing its capacity.

        Stops On-Demand charges for the reserved capacity. Only ODCRs can be
        cancelled; a Capacity Block runs for its fixed term. Instances already
        running against the reservation are not terminated.

        Args:
            reservation_id: Capacity Reservation ID (cr-xxx) to cancel.
            region: AWS region where the reservation exists.
            dry_run: If True, check the caller's permission without cancelling.
                EC2's dry run does not verify the reservation exists.
runai_capacity tool
Read GPU capacity from the NVIDIA Run:ai control plane configured on the MCP host.

        Returns one row per Run:ai cluster and node pool: total, allocated and
        free GPUs, whole_gpus_upper_bound (the whole GPUs a new workload could be
        given), the GPU models with the EC2 families that carry them, and each
        project's quota headroom. Rows carry observed_at/valid_until (telemetry
        is a short-lived snapshot), a value Run:ai did not report is null (never
        0), and every row says submit_compatible=false: GCO does not submit work
        to Run:ai, and these rows are not part of recommend_region's AWS ranking.

        The control plane and its credentials come only from the MCP host's
        environment (GCO_RUNAI_URL, GCO_RUNAI_CLIENT_ID, GCO_RUNAI_CLIENT_SECRET,
        optional GCO_RUNAI_CA_FILE); this tool takes no URL or credential
        argument, so a prompt cannot redirect the secret to another host.

        Args:
            cluster: Only this Run:ai cluster (name or ID).
            node_pool: Only this node pool.
            gpu_count: Mark which node pools have this many whole GPUs free.
            project: Report this Run:ai project's quota headroom on each pool.
cluster_tunnel_command tool
`gco cluster tunnel --print` — connection plan for a cluster's API endpoint.

    Returns a JSON connection plan: the `aws ssm start-session` command that
    tunnels to the (possibly private) EKS API endpoint and the
    `kubectl --server/--tls-server-name` flags to use through it. Read-only — it
    resolves the endpoint and builds commands; it does not open a tunnel or
    launch any instance.

    Args:
        region: AWS region of the target cluster (e.g. us-east-1). When omitted,
            resolves to the CLI's default region: GCO_DEFAULT_REGION or the
            config file, else the first cdk.json regional entry.
        instance_id: Optional SSM-managed instance id to tunnel through. It is
            used whenever the cluster has private endpoint access,
            PUBLIC_AND_PRIVATE included, and the plan fails when private
            access is off. When omitted, a cluster with a public endpoint
            gets the direct plan; a private-only one gets a command template
            with an <INSTANCE_ID> placeholder — use `gco cluster tunnel
            --via-ssm auto` in the CLI to auto-provision a self-terminating
            ephemeral bastion instead.
        local_port: Local port to bind for the API tunnel (default 8443).
config_get tool
`gco config-cmd get` — read a CLI configuration value.

    Args:
        key: Configuration key to read (dotted paths allowed). If omitted,
            returns the full config.
cost_summary tool
Get total GCO spend broken down by AWS service.

    Args:
        days: Number of days to look back.
cost_by_region tool
Get cost breakdown by AWS region.

    Args:
        days: Number of days to look back.
cost_trend tool
Get daily cost trend.

    Args:
        days: Number of days to show.
cost_workloads tool
Estimate accumulated and hourly cost for running workloads.

    Reads each region's cluster API with the server's kubeconfig credentials.
    A region whose cluster cannot be read makes the call fail and is named in
    the error; the workloads read from the other regions are in its output.

    Args:
        region: Region to inspect, or omit to inspect every deployment region.
cost_forecast tool
Forecast GCO costs for the next N days.

    Args:
        days_ahead: Days to forecast ahead.
cost_allocation_status tool
Show cost allocation tag activation status for GCO's billing keys.

    Reports whether the Project tag (which every cost query filters on) and
    the AWS-generated aws:eks:cluster-name tag (per-cluster attribution for
    EKS Auto Mode compute) are Active, Inactive, or not yet discovered by
    Billing, plus backfill history and split-cost-allocation-data guidance.

    Args:
        extra_tags: Additional tag keys to check.
cost_allocation_activate tool
Activate GCO's cost allocation tag keys in the billing account.

    Activates the Project and aws:eks:cluster-name tag keys (plus any
    extras) so Cost Explorer can attribute spend to them. Reversible in
    the Billing console; in an AWS Organization this requires the
    management (payer) account. Only affects billing data from activation
    onward unless a backfill date is given.

    Args:
        extra_tags: Additional tag keys to activate.
        backfill_from: Optionally re-tag historical usage from this date
            (YYYY-MM-DD, up to 12 months back).
cost_k8s_namespaces tool
Show Kubernetes cost by namespace (Athena over OpenCost reports).

    Args:
        days: Days to look back.
        region: Restrict to one deployment region, or omit for all.
cost_k8s_regions tool
Show Kubernetes allocation cost by deployment region.

    Args:
        days: Days to look back.
cost_k8s_trend tool
Show Kubernetes cost over time.

    Args:
        days: Days to look back.
        granularity: Trend bucket size ("daily" or "hourly").
        namespace: Restrict to one namespace, or omit for all.
cost_k8s_top tool
Show the top-N Kubernetes spenders by namespace, region, or cluster.

    Args:
        limit: Number of results.
        by: Grouping dimension ("namespace", "region", or "cluster").
        days: Days to look back.
cost_report_status tool
Show cost monitoring health, including OpenCost status.

    Args:
        region: Region whose cost monitor to check, or omit for the
            nearest healthy region via the global API.
cost_report_list tool
List recent OpenCost allocation report objects in S3.

    Args:
        region: Region whose reports to list.
        adhoc: List ad-hoc instead of scheduled reports.
        limit: Maximum results.
cost_report_generate tool
Generate an ad-hoc OpenCost allocation report now (written to S3).

    Args:
        region: Region whose cost monitor generates the report.
        window_hours: Trailing window the report covers (1-168).
crossplane_status tool
`gco crossplane status` — the configured self-managed Crossplane (cdk.json helm.crossplane).

    Reports whether Crossplane and its Crossview dashboard are enabled, the
    pinned charts, the composition functions GCO installs and how to reach
    the dashboard. Reads cdk.json, charts.yaml and the shipped manifest only.
dag_validate tool
`gco dag validate` — statically validate a DAG manifest.

    Args:
        manifest_path: Path to the DAG manifest file, relative to the project
            root (an absolute path must also be inside it). Every step
            manifest it names must be inside the project root too.
dag_run tool
`gco dag run` — execute a DAG manifest end-to-end.

    long-running. The CLI submits each step's job and waits for it (up to an
    hour per step), so a run is a long-running task: progress messages carry
    the CLI's step lines, and the result is ``{"status": "ok", "task_id",
    "duration_seconds", ...}``. A failed step raises a tool error with the
    exit code and the last stderr lines. ``task_tail(task_id)`` shows the
    step log. Cancelling the call stops the CLI; jobs it already submitted
    keep running. With ``dry_run`` nothing is submitted and the tool returns
    the CLI's validation document at once.

    Args:
        manifest_path: Path to the DAG manifest file, relative to the project
            root (an absolute path must also be inside it). Every step
            manifest it names must be inside the project root too.
        region: Target region for the DAG run.
        dry_run: When True, validate and plan without submitting jobs.
find_docs tool
`find_docs` — search the docs catalog by topic and free-text query.

    Searches the ``docs/*.md`` guides, selected root project documents, and
    package-level READMEs that live next to code under ``gco_mcp/``. Each
    result carries a ``resource_uri`` naming the exact resource to fetch.

    Args:
        query: Free-text query matched against the doc's keywords, summary,
            and name (case-insensitive substring match).
        topic: Filter by topic substring (case-insensitive). Acts as a hard
            filter — entries without a topic match are dropped.
        limit: Maximum results (default 10). ``limit <= 0`` returns ``[]``.

    Scoring: topic substring matches contribute 3 pts each; keyword
    substring matches contribute 4 pts each; summary/name substring
    matches contribute 1 pt each. Returns the top ``limit`` matches
    sorted by score descending then name ascending.
find_examples tool
`find_examples` — search the example-manifest catalog by keyword and filters.

    Args:
        query: Natural-language query matched against keywords, summary,
            name, and use_cases (case-insensitive substring match).
        category: Filter by category (case-insensitive exact match).
        gpu: Pass ``"yes"``/``"true"`` to require GPU examples;
            ``"no"``/``"false"`` to exclude. Omit to leave unconstrained.
        opt_in: Pass ``"yes"`` to require an opt-in feature flag;
            ``"no"`` to exclude.
        limit: Maximum results (default 10). ``limit <= 0`` returns ``[]``.

    Returns a list of dicts with ``name``, ``category``, ``summary``,
    ``gpu``, ``opt_in``, ``submission``, ``keywords``, ``use_cases``, and
    ``related`` for each match.
gitops_status tool
`gco gitops status` — the configured self-managed Argo CD (cdk.json helm.argocd).

    Reports whether Argo CD is enabled, the pinned argo-cd chart, the
    gco-tenants fence (destinations and source repositories) and the GitOps
    hand-off with its path rendered per Region, plus how to reach the UI.
    Reads cdk.json and charts.yaml only.

    Args:
        region: Render the GitOps path for this Region only. Omit for every
            regional deployment Region.
images_list tool
`gco images list` — list every gco/* repository in ECR.
images_tags tool
`gco images tags` — list tags within a repository.

    Args:
        name: Repository name (without the ``gco/`` prefix).
images_describe tool
`gco images describe` — full ECR details for a single image tag.

    Returns ``{}`` when the repository has no such tag.

    Args:
        name: Repository name (without the ``gco/`` prefix).
        tag: Image tag.
images_uri tool
`gco images uri` — return the registry URI for an image. No AWS calls.

    Args:
        name: Repository name (without the ``gco/`` prefix).
        tag: Image tag. Defaults to ``latest``.
images_replication_get tool
`gco images replication get` — current ECR replication configuration.
images_replication_status tool
`gco images replication status` — per-image replication status across project repos.
images_orphans tool
`gco images orphans` — list gco/* tags older than ``threshold_days`` with no references.

    A tag an inference endpoint or a job in any Region names, by tag or by
    digest, is in use. Fails when the inference endpoints or a Region's jobs
    cannot be read, instead of reporting tags that may be in use.

    Args:
        threshold_days: Age threshold in days. Defaults to 30.
images_mirror_plan tool
Image mirror — show which third-party images would be mirrored into ECR.

    Read-only planning view: resolves the destination registry and repository
    for every image the mirror manages (Volcano's ``docker.io/volcanosh/vc-*``
    images today, derived from ``charts.yaml``) without creating any repository
    or copying anything. Use it to preview the mirror before a deploy, or to see
    where a consumer's ``image_registry`` override should point. The ``enabled``
    field reflects the cdk.json ``volcano_image_mirror`` toggle that drives the
    auto-mirror on ``gco stacks deploy``. See ``docs/IMAGE_MIRROR.md``.

    Args:
        region: AWS region whose ECR registry is the mirror destination.
        ecr_namespace: Destination namespace under the registry. Defaults to the
            cdk.json ``volcano_image_mirror.ecr_namespace`` (e.g. ``gco/dockerhub``).
images_mirror_status tool
Image mirror — report which managed images are already present in ECR.

    Read-only: for every image the mirror manages, checks whether its tag
    already exists in the ``gco/*`` ECR namespace (ECR ``DescribeImages``; no
    writes). The result carries a ``mirrored`` flag per image plus top-level
    ``all_mirrored`` / ``missing``, so you can confirm a deploy's auto-mirror
    has populated everything the consuming Helm install (Volcano) needs before
    it runs, or diagnose a stuck install. See ``docs/IMAGE_MIRROR.md``.

    Args:
        region: AWS region whose ECR registry is the mirror destination.
        ecr_namespace: Destination namespace under the registry. Defaults to the
            cdk.json ``volcano_image_mirror.ecr_namespace`` (e.g. ``gco/dockerhub``).
images_init tool
`gco images init` — create the project ECR repo idempotently with default lifecycle.

    Args:
        name: Repository name (without the ``gco/`` prefix).
        retain: When True, tag the repository ``gco:retain=true``. A marker
            only: no GCO stack deletes project repositories, so every one
            survives a stack destroy with or without it.
images_lifecycle_get tool
`gco images lifecycle get` — print the lifecycle policy on a repository.

    Args:
        name: Repository name (without the ``gco/`` prefix).
images_lifecycle_set tool
`gco images lifecycle set` — replace the lifecycle policy on a repository.

    Args:
        name: Repository name (without the ``gco/`` prefix).
        policy: ECR lifecycle policy document as a dict.
images_replication_sync tool
`gco images replication sync` — apply the standard gco/* replication rule.
images_mirror tool
[gated by GCO_ENABLE_IMAGE_PUBLISH] image-upload.

        Mirror third-party images into the project's ``gco/*`` ECR so the
        cluster pulls them from same-account ECR instead of a rate-limited
        upstream (chiefly ``docker.io``, which has no credential-free ECR
        pull-through cache). Today that's Volcano's ``volcanosh/vc-*`` images,
        derived from ``charts.yaml``; the set is general — see
        ``docs/IMAGE_MIRROR.md`` for how to add another image.

        Creates each destination repository if needed and copies the image
        preserving its full multi-arch manifest list (so both amd64 and arm64
        nodes find a match). Idempotent — already-mirrored tags are skipped when
        ``skip_existing`` is True, so repeat runs are a fast no-op. This is the
        same operation ``gco stacks deploy`` runs automatically when the cdk.json
        ``volcano_image_mirror`` toggle is enabled; invoke it directly to
        pre-seed or repair the mirror out of band.

        Args:
            region: AWS region whose ECR registry is the mirror destination.
            ecr_namespace: Destination namespace under the registry. Defaults to
                the cdk.json ``volcano_image_mirror.ecr_namespace`` (e.g.
                ``gco/dockerhub``).
            skip_existing: When True (default), skip any image whose tag already
                exists in ECR so repeat runs don't re-copy.
images_build tool
[gated by GCO_ENABLE_IMAGE_PUBLISH] long-running, data-upload.

        `gco images build` — build a container image and push to ECR.

        Args:
            context: Build context directory, relative to the project root
                (an absolute path must also be inside it).
            name: Image name (lowercase letters and digits joined by single dashes,
                starting with a letter; max 63 chars).
            tag: Image tag (defaults to git short SHA, else ``latest``).
            dockerfile: Path to the Dockerfile, relative to ``context``.
            platform: ``--platform`` argument for the build.
            retain: When True, tag the repository ``gco:retain=true``. A
                marker only: no GCO stack deletes project repositories, so
                every one survives a stack destroy with or without it.
images_push tool
[gated by GCO_ENABLE_IMAGE_PUBLISH] long-running, data-upload.

        `gco images push` — push an already-built local image to the project ECR repo.

        Args:
            name: Image name (lowercase letters and digits joined by single dashes,
                starting with a letter; max 63 chars).
            tag: Image tag.
            local_image: Source image reference on the local container runtime.
            retain: When True, tag the repository ``gco:retain=true``. A
                marker only: no GCO stack deletes project repositories, so
                every one survives a stack destroy with or without it.
images_delete_tag tool
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco images delete-tag` — delete a single tag from a repository.
        Cannot be undone — the image manifest is removed from ECR.

        Args:
            name: Repository name (without the ``gco/`` prefix).
            tag: Image tag to delete.
images_delete_repo tool
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco images delete-repo` — delete a whole repository.
        Cannot be undone — the repo and (when ``force=True``) every image
        inside it are permanently removed from ECR.

        Args:
            name: Repository name (without the ``gco/`` prefix).
            force: When True, also delete every image inside the repo.
images_cleanup tool
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco images cleanup` — remove every untagged image across one or all project repos.
        Cannot be undone — untagged image manifests are permanently deleted.

        Args:
            name: Repository name to clean (without the ``gco/`` prefix). Required
                unless ``all=True``.
            all: When True, clean every project repository.
images_prune tool
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco images prune` — remove untagged images older than 30 days.
        Cannot be undone when ``dry_run=False``; the matching image manifests
        are permanently deleted.

        Args:
            dry_run: When True (default), report what would be deleted without
                deleting anything.
deploy_inference tool
Deploy an inference endpoint across regions.

    The model to serve is ``MODEL=<id-or-path>`` in ``env_vars``: vLLM and
    SGLang both take it from there. Servers without a strict adapter, such as
    Triton, need their command in ``extra_args`` (for Triton,
    ``["tritonserver", "--model-repository=/models/<name>"]``).

    Args:
        name: Endpoint name (e.g. my-llm).
        image: Container image (e.g. vllm/vllm-openai:v0.32.0).
        gpu_count: GPUs per replica.
        replicas: Number of replicas per region.
        port: Container port.
        region: Target region(s). Omit for all deployed regions.
        env_vars: Environment variables as KEY=VALUE strings.
        framework: Strict serving adapter, ``vllm`` or ``sglang``. Omit to let
            the image name decide.
        extra_args: Container arguments, one token per entry, appended in order.
        capacity_type: Pin the pods to one node capacity type. Omit (the
            default) to add no selector: a node launched for the pod is Spot
            when Spot is available and On-Demand otherwise, and the pod may
            land on any existing node with room. ``spot`` pins to Spot with no
            fallback (pods stay Pending while Spot is unavailable);
            ``on-demand`` pins to On-Demand, the choice for production and
            single-replica endpoints; ``hyperpod`` pins to the Region's
            SageMaker HyperPod nodes (cdk.json ``hyperpod``; pods stay Pending
            without them).
list_inference_endpoints tool
List all inference endpoints.

    Args:
        state: Filter by state (deploying, running, stopped, deleted).
        region: Filter by region.
inference_status tool
Get detailed status of an inference endpoint including per-region breakdown.

    Args:
        name: Endpoint name.
scale_inference tool
Scale an inference endpoint.

    Args:
        name: Endpoint name.
        replicas: Target replica count.
update_inference_image tool
Rolling update of an inference endpoint's container image.

    A stopped endpoint stays stopped and rolls the new image out when started.

    Args:
        name: Endpoint name.
        image: New container image.
stop_inference tool
Stop an inference endpoint (scales to zero, keeps config).

    Args:
        name: Endpoint name.
start_inference tool
Start a stopped inference endpoint.

    Args:
        name: Endpoint name.
add_inference_region tool
Add a Region to an existing inference endpoint.

    An endpoint keeps the Region list it was deployed with, so a Region added
    to the deployment later does not run it until it is added here. The
    inference monitor in that Region then creates the endpoint from its stored
    spec. The Region must already run a GCO regional stack.

    Args:
        name: Endpoint name.
        region: Deployed GCO Region to add (e.g. ``us-west-2``).
remove_inference_region tool
Remove a Region from an inference endpoint.

    The inference monitor in that Region deletes the endpoint's resources
    there; the endpoint keeps serving from its other Regions and the Region can
    be added back. Removing the endpoint's last Region is refused.

    Args:
        name: Endpoint name.
        region: Region to remove.
deploy_disaggregated_inference tool
Deploy a split prefill/decode (XpYd) inference endpoint.

    Registers an endpoint that serves the prefill and decode phases on
    separate roles backed by a shared KV-cache store. When no image is
    supplied the deploy falls back to the default upstream Mooncake-enabled
    vLLM image.

    Args:
        name: Endpoint name (e.g. llama-pd).
        image: Container image. Omit to use the default upstream
            Mooncake-enabled vLLM image.
        prefill: Prefill (X) instance count for the topology.
        decode: Decode (Y) instance count for the topology.
        mooncake_mode: Serving mode: disaggregated, store, or both.
        gpu_count: GPUs per replica.
        port: Container port.
        region: Target region(s). Omit for all deployed regions.
        env_vars: Environment variables as KEY=VALUE strings.
set_mooncake_topology tool
Resize a disaggregated endpoint's prefill/decode topology.

    Updates the prefill (X) and decode (Y) instance counts and re-triggers
    reconciliation so each region adjusts its role replica counts. Both
    counts must be integers in the range 1..1000.

    Args:
        name: Endpoint name.
        prefill: New prefill (X) instance count.
        decode: New decode (Y) instance count.
configure_mooncake_store tool
Update a Mooncake endpoint's shared KV-cache store configuration.

    At least one optional setting must be supplied. Enabling the cold tier also
    enables the shared store it extends; the CLI merges supplied fields onto
    the endpoint's existing store block before reconciliation.

    Args:
        endpoint_name: Endpoint whose store configuration should change.
        cold_tier: Enable or disable the asynchronous per-region S3 cold tier.
        offload: Spill tier: ``cpu``, ``disk``, or ``none``.
        global_segment_size: Global KV-cache segment size in bytes.
        local_buffer_size: Local KV-cache buffer size in bytes.
        enabled: Enable or disable the shared store itself.
mooncake_topology_status tool
Show a disaggregated endpoint's per-role topology status.

    Returns the endpoint record including its role-keyed region status, so
    the prefill and decode roles can be inspected per region.

    Args:
        name: Endpoint name.
populate_kv_cache tool
[gated by GCO_ENABLE_MODEL_UPLOAD] Upload data into an endpoint's KV-cache cold tier.

        `gco inference populate-kv` — uploads a local file or directory to the
        region's general-purpose bucket under the cold-tier key prefix the
        endpoint reads from, pre-warming its Mooncake KV-cache prefix cache.
        The endpoint must be deployed with the cold tier enabled (deploy with
        --mooncake-cold-tier, or configure it via configure-store) for its pods
        to read the uploaded data.

        The source must resolve beneath ``GCO_STORAGE_LOCAL_ROOT``; relative
        paths are interpreted relative to that root, never relative to the MCP
        process working directory. The CLI receives a private hard-link
        snapshot built with descriptor-relative no-follow opens; descendant
        links, special files, hard links, and filesystem crossings fail closed.
        The upload may run for up to an hour.

        Args:
            endpoint_name: Endpoint whose KV-cache cold tier receives the data.
            local_path: Root-relative local file or directory to upload.
            region: Region whose general-purpose bucket backs the cold tier.
delete_inference tool
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        Delete an inference endpoint. Cannot be undone — the endpoint, its
        DynamoDB record, and the underlying Kubernetes resources are removed.
        A disaggregated (split prefill/decode) endpoint is deleted the same
        way, including its per-role Deployments and proxy.

        Args:
            name: Endpoint name.
canary_deploy tool
Start a canary deployment (A/B test a new image version).

    Args:
        name: Endpoint name.
        image: New image to canary.
        weight: Percentage of traffic to send to canary (1-99).
promote_canary tool
Promote canary to primary (100% traffic to new version).

    Args:
        name: Endpoint name.
rollback_canary tool
Rollback canary (remove canary, 100% traffic to primary).

    Args:
        name: Endpoint name.
invoke_inference tool
Send a prompt to an inference endpoint and return the generated text.

    Automatically discovers the endpoint's ingress path, detects the serving
    framework (vLLM or SGLang), and routes the request through the API
    Gateway with SigV4 authentication. Triton takes tensors rather than a
    prompt, so a Triton endpoint is refused with the --path/--data form to use
    through the CLI.

    Use this for single-turn text completions. For multi-turn conversations
    with chat models, use chat_inference instead.

    Args:
        name: Endpoint name (e.g. my-llm).
        prompt: Text prompt to send to the model.
        max_tokens: Maximum tokens to generate (default: 100).
        api_path: Override the API sub-path, starting with ``/`` (default:
            auto-detect from framework). A ``.`` or ``..`` segment is refused.
        region: Target region for the request (default: nearest via Global Accelerator).

    This MCP tool intentionally returns one buffered string because the MCP
    runner has no incremental output contract. The API Gateway/Lambda route
    supports response streaming; use ``gco inference invoke --stream`` when
    token-by-token output is required.
chat_inference tool
Send a multi-turn chat conversation to an inference endpoint.

    Sends an OpenAI-compatible /v1/chat/completions request. Works with
    vLLM, SGLang, and any OpenAI-compatible server.

    Each message in the list should have 'role' (system/user/assistant) and
    'content' keys.

    Args:
        name: Endpoint name (e.g. my-llm).
        messages: List of chat messages, e.g. [{"role": "user", "content": "Hello"}].
        max_tokens: Maximum tokens to generate (default: 256).
        temperature: Sampling temperature (optional, server default if omitted).
        region: Target region for the request.

    This MCP tool intentionally returns one buffered string because the MCP
    runner has no incremental output contract. The API Gateway/Lambda route
    supports response streaming; use ``gco inference invoke --stream`` when
    token-by-token output is required.
inference_health tool
Check if an inference endpoint is healthy and ready to serve requests.

    Hits the endpoint's health check path and returns status and latency.
    Useful to verify readiness before sending inference requests.

    Args:
        name: Endpoint name.
        region: Target region to check (default: nearest via Global Accelerator).
list_endpoint_models tool
List models loaded on an inference endpoint.

    Queries the endpoint's /v1/models path (OpenAI-compatible) to discover
    which models are loaded, their context length, and other metadata.
    Works with vLLM and other OpenAI-compatible servers; SGLang reports its
    launcher's model identity, and Triton its /v2/models/stats inventory.

    Args:
        name: Endpoint name.
        region: Target region to query.
list_jobs tool
List jobs across GCO clusters.

    Args:
        region: AWS region (e.g. us-east-1). If omitted, lists across all regions;
            a region that cannot be read is listed under ``errors`` and fails
            the call, with the other regions' jobs returned under ``output``.
        namespace: Filter by Kubernetes namespace.
        status: Filter by job status: pending, running, succeeded, or failed
            (the values ``gco jobs list --status`` accepts).
submit_job_sqs tool
Submit a job via SQS queue (recommended for production).

    Args:
        manifest_path: Path to the YAML manifest file, relative to the
            project root (an absolute path must also be inside it).
        region: Target AWS region for the SQS queue.
        namespace: Override the namespace in the manifest.
        priority: Job priority (0-100, higher = more important).
        sandbox: "isolated" runs every pod in an AWS Nitro Sandbox (EKS 1.36+,
            CPU only; see docs/NITRO_SANDBOXES.md).
        keep_warm: Run the GPU pods on the keep-warm pool, whose empty nodes
            are kept for cdk.json gpu_keep_warm.window so the next keep-warm
            GPU Job reuses the node (see docs/GPU_KEEP_WARM.md).
submit_job_api tool
Submit a job via the authenticated API Gateway (SigV4).

    Args:
        manifest_path: Path to the YAML manifest file, relative to the
            project root (an absolute path must also be inside it).
        namespace: Override the namespace in the manifest.
        sandbox: "isolated" runs every pod in an AWS Nitro Sandbox (EKS 1.36+,
            CPU only; see docs/NITRO_SANDBOXES.md).
        keep_warm: Run the GPU pods on the keep-warm pool, whose empty nodes
            are kept for cdk.json gpu_keep_warm.window so the next keep-warm
            GPU Job reuses the node (see docs/GPU_KEEP_WARM.md).
get_job tool
Get details of a specific job, including where its pods were scheduled.

    Reports ``node_name``, ``node_instance_type`` and ``node_capacity_type``
    (spot vs on-demand) for the node the job's pod landed on, plus a ``nodes``
    list covering every node involved. A job authorized to run on a set of
    interchangeable instance types therefore reports the one it actually used,
    not just what the manifest permitted. The fields are unset — never guessed
    — when nothing is scheduled yet or the pods have been garbage-collected.

    ``status`` is the Job's verdict and stays ``running`` while an unplaced
    pod exists, so read the pod state next to it: ``pod_phase`` (the phase all
    pods share; ``null`` when they disagree), ``pod_phases`` (count per
    phase), ``scheduled_pods`` / ``unscheduled_pods``, and ``unscheduled`` —
    one entry per pod with no node, carrying the ``PodScheduled`` condition's
    ``reason`` and ``message`` ("0/6 nodes are available ...", a taint nobody
    tolerates, Karpenter still nominating capacity). A Job whose only pod sits
    in ``unscheduled`` is waiting on capacity, not training, and needs no
    ``get_job_events`` call to learn why. Counts are ``null`` (unknown), not
    ``0``, when the region runs a bridge that predates them.

    Args:
        job_name: Name of the job.
        region: AWS region where the job is running.
        namespace: Kubernetes namespace.
get_job_logs tool
Get logs from a job.

    Args:
        job_name: Name of the job.
        region: AWS region.
        namespace: Kubernetes namespace.
        tail: Number of log lines to return.
delete_job tool
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        Delete a job. Cannot be undone — the Kubernetes Job and its pods
        are removed and any pod logs not yet shipped to CloudWatch are lost.

        Args:
            job_name: Name of the job to delete.
            region: AWS region.
            namespace: Kubernetes namespace.
get_job_events tool
Get Kubernetes events for a job, its pods, and the nodes they ran on.

    Returns the job's own events, the events of every pod it has had within
    the cluster's event TTL (including pods an eviction already deleted), and
    the events of each pod's Node and Karpenter NodeClaim, where the cause of
    a node's departure is recorded: ``SpotInterrupted``,
    ``InstanceTerminating``, ``TerminatingOnInterruption``,
    ``InstanceUnhealthy``, or ``DisruptionTerminating`` ("Disrupting Node:
    Underutilized" / "Drifted") for consolidation and drift. Each event names
    its ``involvedObject`` kind and name; ``scope`` lists the pods, deleted
    pods, nodes and NodeClaims covered and any lookup that failed.

    Args:
        job_name: Name of the job.
        region: AWS region.
        namespace: Kubernetes namespace.
get_job_pods tool
Get pod details, placement, and container status for a job.

    Each pod carries a ``node`` block with the instance type and spot/on-demand
    capacity type of the node it landed on. A pod in the middle of an eviction
    carries ``metadata.deletionTimestamp`` and, when a disruption is what is
    deleting it, ``status.disruptionTarget`` with the mechanism's reason
    (``EvictionByEvictionAPI`` for a Karpenter / EKS Auto Mode drain) — use
    ``get_job_events`` for the node-level cause.

    Each entry of ``status.containerStatuses`` (and ``initContainerStatuses``)
    has a ``state`` of ``running`` (with ``startedAt``), ``waiting`` (with
    ``reason`` and ``message``), or ``terminated`` (with ``exitCode``,
    ``reason``, ``signal``, ``message``, ``startedAt`` and ``finishedAt``).
    ``finishedAt`` is when the container exited: an event from
    ``get_job_events`` later than it happened after the exit and did not cause
    it. ``lastState`` holds the previous termination, in the ``terminated``
    shape, of a container the kubelet restarted in place, and is null
    otherwise.

    Args:
        job_name: Name of the owning Kubernetes Job.
        region: AWS region where the job is running.
        namespace: Kubernetes namespace.
get_pod_logs tool
Get a bounded log tail from one specific pod belonging to a job.

    Args:
        job_name: Name of the owning Kubernetes Job.
        pod_name: Exact pod name returned by ``get_job_pods``.
        region: AWS region where the pod is running.
        namespace: Kubernetes namespace.
        tail: Maximum number of log lines to return.
        container: Container name for a multi-container pod.
get_job_metrics tool
Get CPU and memory usage for all pods in a job.

    Requires metrics-server in the target cluster.

    Args:
        job_name: Name of the Kubernetes Job.
        region: AWS region where the job is running.
        namespace: Kubernetes namespace.
retry_job tool
Retry a failed job by creating a new Job while preserving the original.

    Args:
        job_name: Failed Kubernetes Job to retry.
        region: AWS region where the job ran.
        namespace: Kubernetes namespace.
cluster_health tool
Get health status of GCO clusters.

    Args:
        region: Specific region, or omit for all regions.
get_job_validation_policy tool
Get the job validation policy a region actually enforces, as deployed.

    Use this before submitting to check whether a manifest will be admitted,
    rather than paying to provision a region and discovering the conflict at
    submit time. Returns the per-manifest cpu/memory/gpu caps,
    allowed_namespaces, allowed_kinds, trusted_registries, the pod-security
    block_* flags, and the namespace's live ResourceQuota / LimitRange
    ceilings.

    This reads the deployed cluster, not a local cdk.json. The two diverge
    whenever a stack was deployed from a different checkout, and CDK augments
    trusted_registries with the project's own ECR hostnames at synth time, so
    the effective allowlist is strictly larger than the configured one.

    A manifest must clear all three layers: the front-door policy, the
    per-container LimitRange, and the aggregate ResourceQuota.

    Args:
        region: AWS region (e.g. us-east-1).
check_job_policy tool
Check which regions would admit a manifest, and whether regions agree.

    Answers two questions get_job_validation_policy leaves to the caller.

    Which regions would take this job: the same manifest is evaluated against
    each region's deployed policy using the code the manifest processor runs,
    so a job that is admissible in one region and over-cap in another is
    reported as such instead of being discovered by submitting.

    Whether the regions still agree: there are no per-region policy overrides,
    so any field that differs across regions means a region was deployed from a
    different checkout of cdk.json. That is invisible until a manifest that
    worked yesterday is refused. trusted_registries is compared with ECR
    hostnames stripped, since CDK adds those per deployment.

    Advisory. The cluster is the authoritative gate and this reads a snapshot
    of its policy, so a reject here is a strong signal, not a verdict.

    Args:
        manifest_path: Path to a manifest file or a directory of them,
            relative to the project root (an absolute path must also be
            inside it).
        regions: Regions to check. Omit for every configured region.
        namespace: Namespace to assume for manifests that don't declare one.
        offline: Read cdk.json instead of calling AWS. Needs no credentials,
            but reports the CONFIGURED policy rather than the deployed one, and
            a deployed region trusts ECR registries cdk.json never mentions --
            so an image rejection may be a false positive.
queue_status tool
View SQS queue status (pending, in-flight, DLQ counts).

    Args:
        region: Specific region, or omit for all regions.
metrics_cloudwatch_get tool
[read-only] Read one CloudWatch datapoint as a canonical metric.

    Issues a single region-scoped, read-only ``GetMetricStatistics`` request and
    returns the most-recent datapoint's statistic value in the canonical
    ``{"metrics": {...}}`` shape consumable by a ``metric_threshold`` criterion.
    The metric key defaults to the CloudWatch metric name when ``output_name``
    is omitted.

    Args:
        metric_name: The CloudWatch metric name.
        namespace: The CloudWatch namespace the metric lives in.
        region: AWS region to scope the read to (supports Multi_Region).
        dimensions: Name/value dimension pairs passed through unchanged.
        statistic: The statistic to request (Average, Sum, Maximum, Minimum,
            SampleCount).
        period: Aggregation period in seconds (default 300).
        minutes_back: Lookback window in minutes when start/end are not given.
        start_time: ISO-8601 window start (used with ``end_time``).
        end_time: ISO-8601 window end (used with ``start_time``).
        output_name: Explicit metric key; defaults to ``metric_name``.

    Returns the Canonical_Metrics_Shape on success, or a Tool_Error_Envelope
    (``metric_name_invalid``, ``no_datapoints``, ``aws_unreachable``) on failure.
metrics_from_job_logs tool
[read-only] Extract a scalar from the tail of a job's logs.

    Tails a job's logs through the existing read-only retrieval path and pulls a
    candidate scalar from each line by **either** a JSON key (resolved as a
    dot-path) **or** a regex (first capture group) — exactly one must be set.
    The matched values are coerced to numbers and reduced to one Numeric_Value
    via the aggregation mode (default ``last`` = most recent match). Returns the
    canonical ``{"metrics": {...}}`` shape. The metric key defaults to the last
    segment of ``json_key`` (or ``value`` in regex mode) when ``output_name`` is
    omitted.

    Args:
        job_name: Name of the job whose logs to read.
        region: AWS region where the job ran.
        namespace: Kubernetes namespace (default ``gco-jobs``).
        json_key: JSON dot-path key to resolve per line (mutually exclusive
            with ``regex``).
        regex: Regex whose first capture group is the scalar (mutually
            exclusive with ``json_key``).
        aggregation: One of last, first, min, max, mean (default ``last``).
        tail: Number of log lines to read; clamped to [1, 10000] (default 1000).
        output_name: Explicit metric key.

    Returns the Canonical_Metrics_Shape on success, or a Tool_Error_Envelope
    (``invalid_extraction_mode``, ``invalid_regex``, ``invalid_aggregation_mode``,
    ``log_retrieval_failed``, ``no_match``, ``non_numeric_value``) on failure.
metrics_from_shared_storage_file tool
[read-only] Read a named field from a metrics file on the cluster's shared file system.

    Reads a small metrics file from the region's shared EFS file system
    through ``gco files download``, which copies it out through a short-lived
    helper pod, so kubectl access to a reachable cluster endpoint is needed.
    It does not read S3 buckets. The value is returned as a metric in the
    canonical ``{"metrics": {...}}`` shape,
    dispatching on ``format``. Sequence-bearing formats (a list, a CSV column, a
    Hugging Face ``log_history``, a JSONL stream, a Parquet column) are reduced
    to one Numeric_Value via the aggregation mode. The metric key defaults to
    ``field`` when ``output_name`` is omitted.

    Args:
        path: Path of the metrics file on the shared file system (as seen
            by a pod that mounts it, for example ``outputs/run-1/metrics.json``).
        region: AWS region of the storage.
        field: Field/column/key name to read (dot-path for document formats).
        format: One of json, csv, hf_trainer_state, jsonl, yaml, parquet,
            tfevents.
        aggregation: One of last, first, min, max, mean (default ``last``).
        max_bytes: Maximum artifact size in bytes (default 10 MiB); the size is
            checked before the content is read.
        output_name: Explicit metric key; defaults to ``field``.

    Returns the Canonical_Metrics_Shape on success, or a Tool_Error_Envelope
    (``unsupported_format``, ``metric_name_invalid``, ``file_not_found``,
    ``file_too_large``, ``malformed_file``, ``field_not_found``,
    ``non_numeric_value``, ``no_numeric_value``, ``empty_sequence``,
    ``format_dependency_unavailable``) on failure.
metrics_from_local_file tool
[gated by GCO_ENABLE_LOCAL_METRICS] [read-only] Read a named field from a LOCAL metrics file.

        Reads a small metrics file from a LOCAL filesystem path confined to the
        allowlisted root ``GCO_METRICS_LOCAL_ROOT`` and surfaces a named field
        as a metric in the canonical ``{"metrics": {...}}`` shape, dispatching
        on ``format``. Reuses the same format handlers, aggregation modes, size
        cap, and error model as ``metrics_from_shared_storage_file`` — the only
        difference is that the path is resolved and confined to the allowlisted
        root via realpath containment instead of going through the shared-storage
        path. There is **no** ``region`` parameter: local reads are not
        region-scoped. Sequence-bearing formats (a list, a CSV column, a Hugging
        Face ``log_history``, a JSONL stream, a Parquet column) are reduced to one
        Numeric_Value via the aggregation mode. The metric key defaults to
        ``field`` when ``output_name`` is omitted.

        Args:
            path: Local filesystem path to the metrics file (confined to
                ``GCO_METRICS_LOCAL_ROOT``).
            field: Field/column/key name to read (dot-path for document formats).
            format: One of json, csv, hf_trainer_state, jsonl, yaml, parquet,
                tfevents.
            aggregation: One of last, first, min, max, mean (default ``last``).
            max_bytes: Maximum artifact size in bytes (default 10 MiB); the size
                is checked before the content is read.
            output_name: Explicit metric key; defaults to ``field``.

        Returns the Canonical_Metrics_Shape on success, or a Tool_Error_Envelope
        (``local_root_not_configured``, ``path_traversal_escape``,
        ``symlink_escape``, ``unsupported_format``, ``metric_name_invalid``,
        ``file_not_found``, ``file_too_large``, ``malformed_file``,
        ``field_not_found``, ``non_numeric_value``, ``no_numeric_value``,
        ``empty_sequence``, ``format_dependency_unavailable``) on failure.
mission_start tool
[gated by GCO_ENABLE_MISSION] Start a new Mission session.

        Args:
            directive: Natural-language goal description.
            criteria: List of success criterion dicts (``metric_threshold``,
                ``event``, or ``predicate`` kinds).
            budget: Budget controls dict with ``max_iterations`` and
                ``max_wall_clock_seconds``. Cost guardrails live
                out-of-band via AWS Budgets and Cost Anomaly Detection.
            tool_allowlist: List of tool names the session may invoke.
                Optional; omit it when ``allow_all_tools`` is set. Naming a
                ``mission_*`` control tool or a ``swarm_*`` tool is rejected
                (``control_tool_not_allowed``).
            checkpoint_cadence: Optional cadence dict (default
                ``{"kind": "every_iteration"}``).
            stagnation_threshold: Iterations of no progress before
                terminating (default 3).
            use_sampling: Three-state opt-in. ``None`` auto-detects,
                ``True`` opts in explicitly, ``False`` opts out.
                Sampling always runs server-side through Bedrock — MCP
                client sampling left the protocol with FastMCP 4.
            allow_scripted_strategies: When True, the session permits
                scripted strategies (validated via the sandbox AST).
            allow_all_tools: When True (default ``False``), resolve the
                session's allowlist to every currently-registered tool
                minus the ``mission_*`` and ``swarm_*`` tools, instead of an
                explicit ``tool_allowlist``. Mutually exclusive with a
                non-empty ``tool_allowlist``.

        Returns a JSON string with the new ``session_id`` and the
        resolved sampling state, or an error envelope.
mission_status tool
[gated by GCO_ENABLE_MISSION] Get the full state of a Mission session.

        Args:
            session_id: The session identifier returned by
                :func:`mission_start`.

        Returns the full session JSON or an error envelope when the
        session is unknown.
mission_iterate tool
[gated by GCO_ENABLE_MISSION] Run iteration(s) on a Mission session.

        Args:
            session_id: The session to iterate.
            max_iterations_this_call: How many iterations to run before
                returning (default 1). The loop exits early on a
                terminal verdict (``complete`` or ``terminate``).

        Returns a JSON object with a ``session_id`` and an
        ``iterations`` list of iteration summaries (verdict, reason,
        iteration index). On engine errors, returns an error envelope
        with whatever summaries had accumulated before the failure.
mission_checkpoint tool
[gated by GCO_ENABLE_MISSION] Re-run the verdict cascade on the latest iteration.

        Args:
            session_id: The session whose latest iteration should be
                re-evaluated.

        Returns a JSON object with the freshly-computed verdict and
        reason. Does not run the propose / execute / observe phases —
        only the deterministic decide cascade. Returns an error envelope
        when the session is missing or has no iterations yet.
mission_complete tool
[gated by GCO_ENABLE_MISSION] Force a Mission session into completed status.

        Args:
            session_id: The session to complete.
            reason: Free-form reason recorded alongside the synthetic
                final verdict (default ``forced_complete``).

        Stamps a synthetic ``complete`` final verdict and an
        ``ended_at`` timestamp. Refuses sessions already in a terminal
        state.
mission_abort tool
[gated by GCO_ENABLE_MISSION] Pause or terminate a Mission session.

        Args:
            session_id: The session to transition.
            pause: When True, transition to ``paused``. When False
                (default), transition to ``terminated`` with a
                synthetic ``terminate`` final verdict.

        Refuses sessions already in a terminal state. Best-effort
        emits a ``ctx.warning`` when the active request context is
        available so the operator sees the side-effect.
mission_resume tool
[gated by GCO_ENABLE_MISSION] Resume a paused Mission session.

        Args:
            session_id: The session to resume.

        Transitions ``paused -> running``. Returns an error envelope
        when the session is missing or not in ``paused`` state.
mission_history tool
[gated by GCO_ENABLE_MISSION] Get iteration history for a Mission session.

        Args:
            session_id: The session whose history to retrieve.
            format: ``"summary"`` (default) returns a compact list of
                ``{iteration_index, verdict, verdict_reason,
                started_at, ended_at}`` dicts; ``"full"`` returns the
                complete iteration record dicts.

        Returns a JSON object with an ``iterations`` list, or an error
        envelope when the session is unknown.
mission_list tool
[gated by GCO_ENABLE_MISSION] List Mission sessions.

        Args:
            status: Optional filter. Recognised values are ``running``,
                ``completed``, ``terminated``, ``failed``, ``paused``,
                ``pending``. Omit to list every known session.

        Returns a JSON object with a ``sessions`` list of summary dicts
        (``session_id``, ``status``, ``created_at``,
        ``iteration_count``).
mission_memory_search tool
[gated by GCO_ENABLE_MISSION] Search mission memory for similar past missions.

        Embeds ``directive`` and queries the ``{project}-mission-memory``
        DynamoDB vector index for the closest completed missions — the
        same institutional memory the engine consults on sampling
        sessions. Requires the mission-memory add-on to be deployed
        (``mission_memory.enabled`` in cdk.json, on by default).

        Args:
            directive: Natural-language mission goal to search by.
            top_k: Number of similar missions to return (default 3,
                mirroring the ``mission_memory.top_k`` config default).
            final_verdict: Optional inline filter on the stored
                terminal verdict — ``"complete"`` or ``"terminate"``.

        Returns a JSON object with a ``results`` list (each entry
        carries ``session_id``, ``directive``, ``lessons``,
        ``recommended_followups``, ``final_verdict``, ``verdict_reason``,
        ``iteration_count``, ``completed_at``, and a similarity
        ``score``), or an error envelope: ``mission_memory_unavailable``
        when the table/index is absent or still backfilling,
        ``mission_memory_search_failed`` for anything else.
list_models tool
List all uploaded model weights in the S3 bucket.
get_model_uri tool
Get the S3 URI for a model (for use with --model-source).

    Args:
        model_name: Name of the model.
models_upload tool
[gated by GCO_ENABLE_MODEL_UPLOAD] data-upload.

        Upload model weights from a source confined beneath
        ``GCO_STORAGE_LOCAL_ROOT``. The upload may run for up to an hour. Relative paths are resolved beneath that
        root rather than the MCP process's working directory. The source is
        exposed to the CLI through a private hard-link snapshot built with
        descriptor-relative no-follow opens; descendant links, special files,
        hard links, and filesystem crossings fail closed.

        Args:
            model_name: Model name in the registry.
            source_path: Root-relative local file or directory to upload.
delete_model tool
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco models delete` — delete a model from the central S3 bucket.
        Cannot be undone — every file under the model's S3 prefix is
        permanently removed.

        Args:
            model_name: Name of the model to delete.
monitoring_status tool
`gco monitoring status` — show the cluster observability toggle + config.
monitoring_users_list tool
`gco monitoring users list` — list Grafana users via the admin API.

    Reaches Grafana over a `gco monitoring open` port-forward; the admin
    credential is read from the chart-generated Secret on the region's cluster
    (or $GCO_GRAFANA_ADMIN_PASSWORD).

    Args:
        region: Region whose cluster holds the Grafana Secret. Omit for the
            CLI's default Region (GCO_DEFAULT_REGION or the config file, else
            the first cdk.json regional entry).
        via_ssm: SSM-managed instance id to read the Secret through when the
            cluster's API endpoint is private (the default) and this host is
            outside the VPC. ``auto`` is refused: the tool never provisions a
            bastion.
enable_monitoring tool
`gco monitoring enable` — flip cluster observability on in cdk.json.

    Note: this only edits the cdk.json toggle. It does not take effect until
    ``gco stacks deploy`` (or deploy-all) reinstalls kube-prometheus-stack.
disable_monitoring tool
`gco monitoring disable` — flip cluster observability off in cdk.json.

    Note: this only edits the cdk.json toggle. The in-cluster stack is removed
    on the next ``gco stacks deploy``.
monitoring_user_add tool
`gco monitoring users add` — create a Grafana user via the admin API.

    The password reaches the CLI through ``$GCO_GRAFANA_USER_PASSWORD`` in the
    child's environment, never on its command line. The admin credential is
    read from the Grafana Secret on the region's cluster.

    Args:
        username: Grafana login for the new user.
        password: Password to set for the new user.
        email: Optional email address for the new user.
        region: Region whose cluster holds the Grafana Secret. Omit for the
            CLI's default Region.
        via_ssm: SSM-managed instance id to read the Secret through when the
            cluster's API endpoint is private and this host is outside the
            VPC. ``auto`` is refused: the tool never provisions a bastion.
monitoring_user_remove tool
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco monitoring users remove` — delete a Grafana user via the admin
        API. Cannot be undone — the user and their Grafana-owned resources are
        permanently removed.

        Args:
            username: Grafana login or email to remove.
            region: Region whose cluster holds the Grafana Secret. Omit for
                the CLI's default Region.
            via_ssm: SSM-managed instance id to read the Secret through when
                the cluster's API endpoint is private and this host is outside
                the VPC. ``auto`` is refused: the tool never provisions a
                bastion.
nodepools_list tool
`gco nodepools list` — list Karpenter NodePools in a cluster.

    Needs the cluster's EKS API endpoint to be reachable (it is private by
    default; see ``cluster_tunnel_command``).

    Args:
        region: AWS region to query.
        cluster: EKS cluster name (defaults to ``gco-<region>``).
nodepools_describe tool
`gco nodepools describe` — describe a single NodePool.

    Args:
        nodepool_name: NodePool name.
        region: AWS region.
        cluster: EKS cluster name (defaults to ``gco-<region>``).
nodepools_create_odcr tool
`gco nodepools create-odcr` — generate a NodePool manifest tied to an ODCR.

    Returns an EKS Auto Mode NodeClass that binds an On-Demand Capacity
    Reservation through ``capacityReservationSelectorTerms`` (with the
    cluster's own node role, subnets and security group) plus a NodePool
    that launches reserved capacity through it. Nothing is applied: apply
    the returned YAML with kubectl, and target the pool from a pod with
    ``nodeSelector karpenter.sh/nodepool: <name>``.

    Args:
        name: NodePool name.
        region: AWS region.
        capacity_reservation_id: EC2 Capacity Reservation ID (``cr-...``).
        instance_type: Instance types the NodePool may provision (one per entry).
        max_nodes: Maximum nodes in the pool.
        fallback_on_demand: Fall back to on-demand when the ODCR is exhausted.
        efa: Enable EFA support (adds EFA taint and labels).
        cluster: EKS cluster name (defaults to ``gco-<region>``).
nodepools_create_capacity_block tool
`gco nodepools create-capacity-block` — NodePool manifest for a Capacity Block.

    The Capacity Block counterpart to ``nodepools_create_odcr``. Purchasing a
    Capacity Block yields an EC2 Capacity Reservation id (``cr-...``), which the
    returned EKS Auto Mode NodeClass binds through
    ``capacityReservationSelectorTerms``. Because a block is prepaid for a
    fixed term, the NodePool holds the capacity rather than consolidating it
    early. Nothing is applied: apply the returned YAML with kubectl.

    Args:
        name: NodePool name.
        region: AWS region.
        capacity_reservation_id: Capacity Reservation ID (``cr-...``) of the block.
        instance_type: Instance types the NodePool may provision (one per entry).
        max_nodes: Maximum nodes in the pool.
        fallback_on_demand: Fall back to on-demand when the block is exhausted/expired.
        efa: Enable EFA support (adds EFA taint and labels).
        cluster: EKS cluster name (defaults to ``gco-<region>``).
delete_nodepool tool
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco nodepools delete` — delete a Karpenter NodePool.
        Cannot be undone — the NodePool, its paired ``<name>-nodeclass``
        NodeClass, and any nodes currently provisioned through it are removed.

        Args:
            nodepool_name: NodePool name.
            region: AWS region.
            cluster: EKS cluster name (defaults to ``gco-<region>``).
queue_list tool
`gco queue list` — list one page of jobs in the global queue.

    A page holds up to ``limit`` jobs; when more may match, the result's
    ``next_cursor`` is set. Pass it back as ``cursor`` with the same filters
    to read the next page (a cursor is bound to its filters).

    Args:
        region: Filter by target region.
        status: Filter by status (queued, claimed, applying, pending, running,
            succeeded, failed, cancelled).
        namespace: Filter by Kubernetes namespace.
        limit: Maximum results in this page (1-1000, default 50).
        cursor: ``next_cursor`` from the previous page, to read the page after it.
queue_get tool
`gco queue get` — fetch a single job from the global queue.

    Args:
        job_id: Job identifier.
        region: Region to query (any region works).
queue_stats tool
`gco queue stats` — show aggregate stats for the global queue.

    Args:
        region: Region to query (any region works).
queue_submit tool
`gco queue submit` — submit a job manifest to the global queue.

    Args:
        manifest_path: Path to the job manifest YAML, relative to the project
            root (an absolute path must also be inside it).
        region: Target region for job execution.
        namespace: Namespace for a manifest that declares none (defaults to
            the configured default namespace, ``gco-jobs``); must match a
            namespace the manifest declares.
        priority: Job priority (0-100, higher = more important).
        labels: Optional ``key=value`` labels to attach to the queued job.
cancel_queue_job tool
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco queue cancel` — cancel a job that is still queued, before a
        region claims it. A claimed, applying, pending, running or finished
        job is refused (409). Cannot be undone — the job's queue record is
        transitioned to ``cancelled`` and no region will claim it.

        Args:
            job_id: Job identifier.
            region: Region to query (any region works).
metrics_semantic_progress tool
[gated by GCO_ENABLE_SEMANTIC_PROGRESS] [read-only] Score Mission progress.

        Scores how close a Mission is to satisfying ``directive`` against a
        fixed, versioned rubric via the existing sampling backend, and returns
        the canonical ``{"metrics": {"progress_score": <float 0.0-1.0>}}`` shape
        consumable by a ``metric_threshold`` (e.g. ``progress_score >= 0.8``) or
        ``metric_trend`` (e.g. ``progress_score`` increasing) criterion. Incurs
        one LLM call per invocation. Mutates nothing — it only reads its inputs
        and asks the model for a score. Provenance (rationale, source,
        backend_name, model_id, rubric_version, raw_score) is returned outside
        the ``metrics`` object.

        Args:
            directive: The natural-language objective the Mission is pursuing.
                Must be non-empty and not whitespace-only.
            recent_context: Optional recent progress context (recent
                observations and/or metric-history series the caller selects).
                Truncated keep-newest to a fixed character budget; omit it to
                score from the directive alone.
            output_name: Optional metric key under ``metrics`` (default
                ``"progress_score"``). Must be a single path segment of 1..128
                characters with no ``.`` separator and no whitespace.
            model_id: Optional concrete model identifier forwarded to the
                sampling seam; ``None`` uses the seam's resolved default.

        Returns the canonical metrics shape on success, or a structured
        ``{"code", "details"}`` error envelope (never carrying a top-level
        ``metrics`` key) on any failure, so the Mission loop keeps running.
slurm_backends tool
`gco slurm backends` — the Slurm backends enabled in a region and what each one is.

    Lists ``slinky`` (the cluster on the EKS cluster) and/or ``pcs`` (the AWS
    PCS cluster) with their facts, and whether the other tools need
    ``backend`` there (``selection_required``: both are on) or may leave it
    out (``default``: the one that is on). An empty list means no Slurm
    backend is deployed in the region.

    Args:
        region: Region whose Slurm backends to list.
slurm_status tool
`gco slurm status` — controller reachability, partitions, node and job counts.

    Args:
        region: Region whose Slurm cluster to read (one cluster per backend per region).
        backend: Which Slurm cluster: slinky (the cluster on the EKS cluster) or
            pcs (AWS PCS); optional when the region runs one, required when it
            runs both.
slurm_partitions tool
`gco slurm partitions` — partitions with state, time limit and node counts (sinfo).

    An autoscaled partition reads zero nodes while idle: the first pending job
    makes KEDA (Slinky) or PCS scale it up.

    Args:
        region: Region whose Slurm cluster to read.
        backend: Which Slurm cluster: slinky or pcs; optional when the region
            runs one, required when it runs both.
slurm_nodes tool
`gco slurm nodes` — Slurm nodes (slurmd worker pods or PCS instances) with state, resources and gres.

    Args:
        region: Region whose Slurm cluster to read.
        partition: Only nodes in this partition.
        backend: Which Slurm cluster: slinky or pcs; optional when the region
            runs one, required when it runs both.
slurm_queue tool
`gco slurm queue` — the live queue as slurmctld sees it (squeue).

    Args:
        region: Region whose Slurm cluster to read.
        state: Only jobs in this state (PENDING, RUNNING, COMPLETING, ...).
        partition: Only jobs in this partition.
        name: Only jobs with exactly this name.
        limit: Maximum jobs returned (default 200).
        backend: Which Slurm cluster: slinky or pcs; optional when the region
            runs one, required when it runs both.
slurm_job tool
`gco slurm job` — one job in full (state, TRES, times, exit code, output paths).

    Args:
        region: Region whose Slurm cluster to read.
        job_id: The Slurm job id.
        backend: Which Slurm cluster: slinky or pcs; optional when the region
            runs one, required when it runs both.
slurm_accounting tool
`gco slurm accounting` — job history from slurmdbd (sacct).

    Args:
        region: Region whose Slurm cluster to read.
        since: Relative window such as 30m, 24h, 7d or 2w (default 1d unless start is given).
        start: Window start as a Slurm time (2026-10-01, 2026-10-01T08:00, now-2days).
        end: Window end as a Slurm time (default now).
        user: Only this Slurm user (API submissions run as the backend's
            identity, ``slurm`` on Slinky and ``pcs.identity`` on PCS; the
            submitting caller is in each row's comment).
        partition: Only this partition.
        state: Only these states, comma-separated (COMPLETED,FAILED,TIMEOUT).
        name: Only jobs with exactly this name.
        limit: Maximum rows (default 200).
        backend: Which Slurm cluster: slinky or pcs; optional when the region
            runs one, required when it runs both.
slurm_submit tool
`gco slurm submit` — submit a local batch script to Slurm (sbatch).

    The script's leading ``#SBATCH`` directives are honoured; the arguments
    here override them. The job runs as the backend's Slurm identity with the
    caller identity in its comment, and allocates compute (an idle autoscaled
    partition scales up for it).

    Args:
        region: Region whose Slurm cluster runs the job.
        script_path: Local path of the batch script (an interpreter line
            first), relative to the project root (an absolute path must also
            be inside it).
        name: Job name (default: the script's #SBATCH --job-name, else gco-job).
        partition: Partition (default: the cluster's default partition).
        nodes: Node count.
        tasks: Task count (--ntasks).
        cpus_per_task: CPUs per task.
        gpus_per_node: GPUs per node.
        memory: Memory per node: MiB or a K/M/G/T suffix such as 64G. 0 (all of
            each node's memory) is refused; give an explicit size.
        time_limit: Wall time: minutes, HH:MM:SS or D-HH:MM:SS.
        working_directory: Working directory on the worker (default: the
            backend identity's home on the shared filesystem).
        environment: Extra environment variables as NAME=VALUE strings.
        comment: Free-text comment appended after the caller identity.
        exclusive: Whole-node allocation.
        backend: Which Slurm cluster: slinky or pcs; optional when the region
            runs one, required when it runs both.
slurm_cancel tool
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco slurm cancel` — cancel a Slurm job (scancel). A running job's
        work is lost; a pending job leaves the queue.

        Args:
            region: Region whose Slurm cluster runs the job.
            job_id: The Slurm job id.
            signal: Signal to send instead of the default (e.g. SIGUSR1).
            backend: Which Slurm cluster: slinky or pcs; optional when the
                region runs one, required when it runs both.
list_stacks tool
List all GCO CDK stacks.
stack_status tool
Get detailed status of a CloudFormation stack.

    Args:
        stack_name: Stack name (e.g. gco-us-east-1).
        region: AWS region.
setup_cluster_access tool
Configure kubectl access to a GCO EKS cluster.

    Updates kubeconfig, creates an EKS access entry for your IAM principal,
    and associates the cluster admin policy. Handles assumed roles automatically.

    Returns ``cluster``, ``region``, ``principal_arn``,
    ``api_server_reachable``, ``node_count``, ``kubectl_error`` and
    ``warning``. An API server this host cannot reach is not an error:
    ``api_server_reachable`` is false and ``warning`` says why, because the
    access still applies from inside the cluster's network.

    Args:
        cluster: Cluster name (default: <project_name>-{region}).
        region: AWS region (default: first deployment region from cdk.json).
fsx_status tool
Check FSx for Lustre configuration status.
stack_diff tool
`gco stacks diff` — show CloudFormation diff for a stack.

    Args:
        stack_name: Stack to diff. If omitted, diffs all stacks.
stack_outputs tool
`gco stacks outputs` — fetch CloudFormation outputs for a stack.

    Args:
        stack_name: Stack name (e.g. gco-us-east-1).
        region: AWS region.
stack_synth tool
`gco stacks synth` — synthesize CloudFormation templates from CDK.

    Args:
        stack_name: Stack to synthesize. If omitted, synthesizes all stacks.
        quiet: When True, pass ``--quiet`` to suppress verbose CDK output.
addons_status tool
`gco stacks addons status` — show per-chart Helm add-on status from SSM.

    Returns the ``{region, name, status, message}`` rows. When a Region
    cannot be read or any add-on is not healthy, the result is an error
    envelope (``error``, ``exit_code``) with the rows under ``output``.

    Args:
        region: Region to inspect. Omit for the first deployment region.
        all_regions: Inspect every configured deployment region.
valkey_status tool
`gco stacks valkey status` — show Valkey cache stack status.
aurora_status tool
`gco stacks aurora status` — show Aurora database stack status.
eks_capabilities_status tool
`gco stacks capabilities status` — configured vs. live EKS Capabilities.

    Reports, per AWS-managed capability type (ACK, kro), whether cdk.json
    ``eks_capabilities`` enables it for the region, whether it is attached to
    the cluster, its status/version, and any drift between configuration and
    the cluster. When a Region drifts or cannot be described, the result is
    an error envelope with the status document(s) under ``output``.

    Args:
        region: Region to inspect. Omit for the first deployment region.
        all_regions: Inspect every configured deployment region.
hyperpod_status tool
`gco stacks hyperpod status` — configured and deployed SageMaker HyperPod state.

    Reads the validated cdk.json ``hyperpod`` block (cluster name, node
    recovery, zone, instance groups, Kueue quotas, removal policy) and, when
    the regional stack is deployed with HyperPod on, the cluster SageMaker
    describes under the stack's published name: its status and every
    instance group's current and target counts. See docs/HYPERPOD.md. When
    the cluster is not healthy, the result is an error envelope with the
    status document(s) under ``output``.

    Args:
        region: Region to inspect. Omit for the first deployment region.
        all_regions: Inspect every configured deployment region.
hyperpod_preflight tool
`gco stacks hyperpod preflight` — check the account before a deploy with HyperPod on.

    Read-only AWS checks per region: HyperPod publishes a health-monitoring
    agent image there, the account's "<instance type> for cluster usage"
    Service Quotas cover every instance group, each training plan exists and
    fits its group, the configured zone exists, the EKS cluster (once
    deployed) is ACTIVE with access entries, and the cluster name is free or
    already this project's. An AWS error while checking is a warning; only a
    fact that would break the deploy fails. ``deploy_stack`` and
    ``deploy_all`` run the same checks unless told to skip them. When a
    check fails, the result is an error envelope with the summary under
    ``output``.

    Args:
        region: Region to check. Omit for the first deployment region.
        all_regions: Check every configured deployment region.
enable_fsx tool
`gco stacks fsx enable` — flip FSx Lustre on in cdk.json.

    Note: this only edits the cdk.json toggle. The change does not take effect
    until ``gco stacks deploy-all`` runs to provision the FSx file system.
disable_fsx tool
`gco stacks fsx disable` — flip FSx Lustre off in cdk.json.

    Note: this only edits the cdk.json toggle. The change does not take effect
    until ``gco stacks deploy-all`` runs to remove the FSx file system.
enable_valkey tool
`gco stacks valkey enable` — flip Valkey Serverless on in cdk.json.

    Note: this only edits the cdk.json toggle. The change does not take effect
    until ``gco stacks deploy-all`` runs to provision the Valkey cache.
disable_valkey tool
`gco stacks valkey disable` — flip Valkey Serverless off in cdk.json.

    Note: this only edits the cdk.json toggle. The change does not take effect
    until ``gco stacks deploy-all`` runs to remove the Valkey cache.
enable_aurora tool
`gco stacks aurora enable` — flip Aurora pgvector on in cdk.json.

    Note: this only edits the cdk.json toggle. The change does not take effect
    until ``gco stacks deploy-all`` runs to provision the Aurora cluster.
disable_aurora tool
`gco stacks aurora disable` — flip Aurora pgvector off in cdk.json.

    Note: this only edits the cdk.json toggle. The change does not take effect
    until ``gco stacks deploy-all`` runs to remove the Aurora cluster.
addons_install tool
[gated by GCO_ENABLE_INFRASTRUCTURE_DEPLOY] infrastructure mutation.

        `gco stacks addons install` — start an idempotent Helm add-on
        re-convergence from the deployment input persisted in SSM. The command
        starts each region's installer state machine and returns immediately;
        inspect progress with ``addons_status``.

        Args:
            region: Region to re-converge. Omit for the first deployment region.
            all_regions: Re-converge every configured deployment region.
deploy_stack tool
[gated by GCO_ENABLE_INFRASTRUCTURE_DEPLOY] long-running.

        `gco stacks deploy` — deploy a single CDK stack to AWS.

        Typical wall-clock: 15-30 minutes per regional stack. Clients that
        speak FastMCP's task protocol can receive a task ID immediately
        and poll `tasks://gco/{task_id}` for progress; clients that don't
        run the tool inline with progress streamed through the FastMCP
        Progress dependency. Cancellation sends SIGTERM to the running
        CDK process and partial CloudFormation state may remain — inspect
        via stack_status or the AWS console.

        A regional stack whose Region has AWS PCS or SageMaker HyperPod on
        is preflighted first (the same checks as ``hyperpod_preflight`` /
        `gco stacks pcs preflight`); a failed check stops the deploy before
        CloudFormation starts, with the findings in the output.

        Args:
            stack_name: Stack to deploy (e.g. ``gco-us-east-1``).
            yes: Skip approval prompts (passes ``-y``). Defaults to True.
            outputs_file: Optional path to write stack outputs JSON, relative
                to the project root (an absolute path must also be inside it).
            tags: Optional list of ``key=value`` tag strings applied to the stack.
            skip_pcs_preflight: Deploy without the AWS PCS preflight.
            skip_hyperpod_preflight: Deploy without the SageMaker HyperPod preflight.
deploy_all tool
[gated by GCO_ENABLE_INFRASTRUCTURE_DEPLOY] long-running.

        `gco stacks deploy-all` — deploy every CDK stack in dependency order.

        Typical wall-clock: 30-60 minutes for a fresh multi-region deploy.
        Clients that speak FastMCP's task protocol can receive a task ID
        immediately and poll `tasks://gco/{task_id}` for progress; clients
        that don't run the tool inline with progress streamed through the
        FastMCP Progress dependency. Cancellation sends SIGTERM to the
        running CDK process and partial CloudFormation state may remain —
        inspect via stack_status or the AWS console.

        Regions with AWS PCS or SageMaker HyperPod on are preflighted first
        (the same checks as ``hyperpod_preflight`` / `gco stacks pcs
        preflight`); a failed check stops the deploy before CloudFormation
        starts, with the findings in the output.

        Args:
            yes: Skip approval prompts (passes ``-y``). Defaults to True.
            outputs_file: Optional path to write stack outputs JSON, relative
                to the project root (an absolute path must also be inside it).
            tags: Optional list of ``key=value`` tag strings applied to every stack.
            parallel: Deploy regional stacks concurrently when True.
            max_workers: Cap on parallel deployments when ``parallel=True``.
            skip_pcs_preflight: Deploy without the AWS PCS preflight.
            skip_hyperpod_preflight: Deploy without the SageMaker HyperPod preflight.
bootstrap_cdk tool
[gated by GCO_ENABLE_INFRASTRUCTURE_DEPLOY] long-running.

        `gco stacks bootstrap` — bootstrap CDK in an AWS account/region.

        Typical wall-clock: 2-5 minutes. Required before any stack can be
        deployed to a new account/region. Clients that speak FastMCP's
        task protocol can receive a task ID immediately and poll
        `tasks://gco/{task_id}` for progress; clients that don't run the
        tool inline with progress streamed through the FastMCP Progress
        dependency. Cancellation sends SIGTERM to the running CDK process
        and partial CloudFormation state may remain — inspect via
        stack_status or the AWS console.

        Args:
            region: Target AWS region.
            account: Optional AWS account ID. Defaults to the caller's account.
destroy_stack tool
[gated by GCO_ENABLE_INFRASTRUCTURE_DESTROY] long-running.

        `gco stacks destroy` — destroy a single CDK stack.

        Typical wall-clock: 5-20 minutes per stack. Clients that speak
        FastMCP's task protocol can receive a task ID immediately and
        poll `tasks://gco/{task_id}` for progress; clients that don't
        run the tool inline with progress streamed through the FastMCP
        Progress dependency. Cancellation sends SIGTERM to the running
        CDK process and partial CloudFormation state may remain —
        inspect via stack_status or the AWS console before retrying.

        Args:
            stack_name: Stack to destroy (e.g. ``gco-us-east-1``).
            yes: Skip the confirmation prompt (passes ``-y``). Defaults to True.
                The MCP server gives ``gco`` no stdin, so with ``yes=False``
                the prompt reads end-of-file and the CLI aborts before
                destroying anything.
            retain_volumes: Report the cluster's orphaned EBS volumes instead
                of deleting them (passes ``--retain-volumes``). Defaults to
                False, matching the CLI: deleting an EKS cluster does not
                delete the volumes its CSI driver provisioned, so they bill
                indefinitely with nothing able to reattach them.
destroy_all tool
[gated by GCO_ENABLE_INFRASTRUCTURE_DESTROY] long-running.

        `gco stacks destroy-all` — destroy every CDK stack in reverse dependency order,
        or with keep_control_plane=True only the workload tier (scale to zero Regions).

        Typical wall-clock: 20-40 minutes for a multi-region teardown.
        Clients that speak FastMCP's task protocol can receive a task
        ID immediately and poll `tasks://gco/{task_id}` for progress;
        clients that don't run the tool inline with progress streamed
        through the FastMCP Progress dependency. Cancellation sends
        SIGTERM to the running CDK process and partial CloudFormation
        state may remain — inspect via stack_status or the AWS console
        before retrying.

        Args:
            yes: Skip the confirmation prompt (passes ``-y``). Defaults to True.
                The MCP server gives ``gco`` no stdin, so with ``yes=False``
                the prompt reads end-of-file and the CLI aborts before
                destroying anything.
            parallel: Destroy regional stacks concurrently when True.
            max_workers: Cap on parallel destructions when ``parallel=True``.
            retain_volumes: Report each cluster's orphaned EBS volumes instead
                of deleting them (passes ``--retain-volumes``). Defaults to
                False, matching the CLI.
            keep_control_plane: Destroy only the regional API bridges and
                regional stacks and leave the global, API Gateway and
                monitoring stacks standing (passes ``--keep-control-plane``).
                Regional data (EFS/FSx, Valkey, Aurora, in-cluster volumes) is
                still deleted. Defaults to False, matching the CLI.
list_deployment_regions tool
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Show the deployment-region topology configured in cdk.json.

        Reports the global/api_gateway/monitoring Regions, the workload
        (regional) Region list, the resolved AWS partition, and the cdk.json
        path backing the answer. Works on a broken configuration too — the
        partition_error field explains what CDK synth would reject.
add_deployment_region tool
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Add a workload Region to cdk.json deployment_regions.regional.

        Config-only and idempotent: the Region must be SDK-known and share
        the AWS partition of the already-configured Regions; re-adding a
        present Region is a reported no-op. No stack is deployed — follow
        up with deploy_all to apply the topology (a deploy_stack of
        only the new regional stack skips its API bridge and the monitoring
        update). Existing inference endpoints keep their Region lists; add
        the new Region to one with add_inference_region.

        Args:
            region: AWS Region name to add (e.g. us-west-2).
remove_deployment_region tool
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Remove a workload Region from cdk.json deployment_regions.regional.

        Config-only and idempotent: the resulting list must stay valid
        (SDK-known, unique Regions in one AWS partition). Removing the last
        Region is allowed and leaves a control-plane-only topology (global,
        API Gateway, and monitoring stacks with no workload cluster);
        removing an absent Region is a reported no-op.
        A deployed stack for the removed Region is NOT destroyed, and once
        the Region leaves cdk.json it is outside the CDK app, where
        destroy_stack cannot reach it. Retire a deployed Region first with the
        procedure in docs/CUSTOMIZATION.md (Removing a Region).

        Args:
            region: AWS Region name to remove (e.g. us-west-2).
set_deployment_region tool
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Set a control-plane Region scalar in cdk.json deployment_regions.

        Config-only and idempotent: the Region must be SDK-known and keep
        the whole topology (all three scalars plus the workload list) in one
        AWS partition. Already-deployed stacks are not moved or destroyed —
        the next deploy creates the stack in the new Region.

        Args:
            role: Which scalar to set: "global", "api_gateway", or "monitoring".
            region: AWS Region name (e.g. us-east-2).
set_eks_endpoint_access tool
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Set cdk.json eks_cluster.endpoint_access (the EKS API endpoint mode).

        Config-only and synth-time: no stack is deployed, and `gco stacks
        status` reports the configured-vs-live endpoint as drift until a
        deploy converges it. PUBLIC_AND_PRIVATE requires an explicit CIDR
        allowlist — the CLI refuses to widen control-plane access without
        one, and an internet-open endpoint must be spelled out as 0.0.0.0/0.
        PRIVATE needs no CIDRs (use cluster_tunnel_command / `gco cluster
        tunnel` for laptop access, plus an access entry via `gco stacks
        access`).

        Args:
            mode: "PRIVATE" or "PUBLIC_AND_PRIVATE".
            cidrs: CIDR allowlist entries for the public endpoint
                (e.g. ["203.0.113.7/32"]). Required for PUBLIC_AND_PRIVATE.
set_mission_default_model tool
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Set cdk.json bedrock.mission_default_model_id (Mission sampling).

        Config-only and idempotent. The capacity advisor and gco autopilot
        have their own keys (set_capacity_advisor_default_model and
        set_claude_code_default_model). Model and inference-profile IDs are
        free-form (custom profiles, marketplace models); validation mirrors
        the runtime reader (non-empty, no surrounding whitespace). Sibling
        settings (bedrock.generation_reasoning, the other model keys) are preserved;
        explicit --bedrock-model-id / env overrides still take precedence
        at run time.

        Args:
            model_id: Bedrock model or inference-profile ID
                (e.g. us.amazon.nova-2-lite-v1:0).
set_capacity_advisor_default_model tool
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Set cdk.json bedrock.capacity_advisor_default_model_id.

        The default model for gco capacity ai-recommend and gco capacity
        predict. Config-only and idempotent; Mission sampling and gco
        autopilot have their own keys (set_mission_default_model and
        set_claude_code_default_model). Validation mirrors the runtime
        reader (non-empty, no surrounding whitespace). Sibling settings
        (bedrock.generation_reasoning, the other model keys) are preserved; explicit
        --model overrides still take precedence at run time.

        Args:
            model_id: Bedrock model or inference-profile ID
                (e.g. us.amazon.nova-2-lite-v1:0).
set_claude_code_default_model tool
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Set cdk.json bedrock.claude_code_default_model_id (autopilot model).

        The session model gco autopilot hands to Claude Code, independent of
        the mission_default_model_id and capacity_advisor_default_model_id
        knobs consumed by Mission sampling and the capacity advisor.
        Config-only and idempotent; validation mirrors the runtime reader
        (non-empty, no surrounding whitespace). Sibling settings are
        preserved; explicit --model / GCO_AUTOPILOT_MODEL overrides still
        take precedence at launch time.

        Args:
            model_id: Bedrock model or inference-profile ID
                (e.g. us.anthropic.claude-sonnet-4-6).
set_codex_default_model tool
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Set cdk.json bedrock.codex_default_model_id.

        Config-only and idempotent. The reviewed
        bedrock.codex.reasoning_effort sibling is preserved; review the pair
        together when changing model families. Explicit --model,
        GCO_AUTOPILOT_CODEX_MODEL, and GCO_AUTOPILOT_MODEL overrides still
        take precedence at launch.

        Args:
            model_id: Bedrock model or inference-profile ID
                (e.g. global.openai.<model-id>).
set_codex_reasoning_effort tool
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Set cdk.json bedrock.codex.reasoning_effort.

        Allowed values are minimal, low, medium, high, and xhigh. The setting
        applies only to the canonical Codex model; explicit model overrides
        intentionally omit canonical reasoning.

        Args:
            reasoning_effort: Reviewed canonical Codex reasoning effort.
set_opencode_default_model tool
[gated by GCO_ENABLE_CONFIG_MANAGEMENT]

        Set cdk.json bedrock.opencode_default_model_id.

        Config-only and idempotent. OpenCode has no engine-owned reasoning
        sibling, so this single key is the whole default. Explicit --model,
        GCO_AUTOPILOT_OPENCODE_MODEL, and GCO_AUTOPILOT_MODEL overrides still
        take precedence at launch.

        Args:
            model_id: Bedrock model or inference-profile ID
                (e.g. global.moonshotai.<model-id>).
fleet_status tool
`gco status` — whole-fleet deployment status as one document.

    Aggregates stacks, queue depth, central job-queue counts, capacity
    telemetry, and inference endpoints across every configured region. The
    jobs section counts only `gco queue submit` records (its data says
    ``source: central job queue``); `list_jobs` lists jobs submitted any
    other way. Each section carries its own status
    (ok/empty/partial/unavailable/error/skipped) plus a findings list of
    what looks wrong, so one call answers what would otherwise take eight.

    Args:
        region: Restrict the gather to a single region (default: every
            configured deployment region).
        with_costs: Include the costs section. Cost Explorer bills per
            request, so this is off by default.
        with_nodepools: Include Karpenter NodePools. Requires a publicly
            reachable cluster API endpoint; private endpoints are reported
            as unavailable.
list_storage_contents tool
List contents of shared EFS storage.

    Args:
        region: AWS region.
        path: Directory path to list (default: root).
list_file_systems tool
List EFS and FSx file systems.

    Args:
        region: Specific region, or omit for all.
list_storage_buckets tool
List deployed GCO S3 buckets and their human-friendly aliases.

    Returns user-facing buckets such as ``cluster-shared``, ``model-weights``,
    ``regional-shared:<region>``, and the optional ``analytics-studio`` bucket.
    Physical names are resolved from the deployment's SSM and CloudFormation
    metadata rather than reconstructed.

    Args:
        region: Optionally limit regional-bucket discovery to one AWS region.
            Global and analytics buckets are still included.
s3_inventory tool
Describe every S3 bucket the deployment creates, with its contract.

    Broader than list_storage_buckets, which returns only the four buckets
    addressable by ``storage sync``. This covers the always-on central
    (``Cluster_Shared_Bucket``) and per-region (``Regional_Shared_Bucket``)
    buckets, model weights, cost reports, the optional analytics Studio bucket,
    and every server-access-log sink.

    Each entry carries the owning stack and region, the bucket's purpose,
    reserved object-key prefixes, whether job pods have read-write / read-only /
    no access and how they discover the name (ConfigMap key or SSM path), the
    teardown removal policy, and whether it is currently deployed. Buckets whose
    stack is not deployed are included with ``status="not-deployed"`` so the
    inventory is complete rather than silently partial.

    Use this to answer "where can a job write?" — ``summary.pod_writable`` lists
    exactly the buckets the job-pod role can write to.

    Inventories buckets and their deployment contract; unrelated to the AWS
    "S3 Inventory" feature, which reports the objects inside a bucket.

    Args:
        region: Limit regional entries to one AWS region. Global, monitoring,
            and analytics entries are always included.
files_get tool
`gco files get` — get file system details for a region.

    Returns the EFS (or FSx) file system's ID, lifecycle state, throughput mode,
    encryption flags, and mount targets. To browse or fetch file contents, use
    list_storage_contents (``gco files ls``) or ``gco files download``.

    Args:
        region: AWS region.
        fs_type: File system type — "efs" (default) or "fsx".
files_access_points tool
`gco files access-points` — list the access points of one EFS file system.

    ``files_get`` returns the file system ID for a region. A file system that
    does not exist has none (``[]``); any other read failure (access denied,
    throttling) is returned as an error.

    Args:
        file_system_id: EFS file system ID (e.g. ``fs-0123456789abcdef0``).
        region: AWS region the file system lives in.
upload_to_regional_bucket tool
[gated by GCO_ENABLE_MODEL_UPLOAD] Upload local data to a regional bucket.

        The source must resolve beneath ``GCO_STORAGE_LOCAL_ROOT``. Relative
        paths such as ``model.bin`` and ``./datasets`` are interpreted relative
        to that root, never relative to the MCP process working directory. The
        CLI receives a private hard-link snapshot built with descriptor-relative
        no-follow opens; descendant links, special files, hard links, and
        filesystem crossings fail closed. The upload may run for up to an hour.

        Args:
            local_path: Root-relative local file or directory to upload.
            region: Target region whose regional bucket receives the objects.
            prefix: S3 prefix for uploaded objects (default: ``uploads``).
sync_storage_bucket tool
Sync between a GCO S3 bucket and the MCP host in one direction.

        [gated by GCO_ENABLE_LOCAL_STORAGE_SYNC] The local path is confined
        beneath ``GCO_STORAGE_LOCAL_ROOT`` before the CLI is invoked. This
        confinement requires POSIX descriptor-relative filesystem APIs and
        fails closed on unsupported hosts. Download is the default; upload
        reads a local file or directory and writes S3. Neither direction
        deletes destination-only data.

        Args:
            bucket_alias: Human-friendly alias returned by
                ``list_storage_buckets``.
            local_dir: Local path relative to ``GCO_STORAGE_LOCAL_ROOT`` (or an
                absolute path contained by that root).
            direction: ``download`` for S3-to-local or ``upload`` for local-to-S3.
            region: Region for an unqualified ``regional-shared`` alias.
            prefix: Remote S3 key prefix to download from or upload into.
            dry_run: Return the transfer summary without writing files or S3 objects.
            force: Transfer all matching files even if the destination is current.
swarm_start tool
[gated by GCO_ENABLE_SWARM] Start a new swarm (orchestrator) session.

        Args:
            directive: The swarm-level goal, natural language.
            criteria: Orchestrator success criteria. These evaluate over
                the fleet snapshot — aggregate metrics like
                ``metrics.children_completed`` and predicates over
                ``obs['children']``.
            budget: Orchestrator loop caps (``max_iterations``,
                ``max_wall_clock_seconds``; Mission semantics, ``-1``
                sentinel allowed on one axis).
            swarm: The swarm rails: ``max_children`` and
                ``child_iteration_pool`` (required, strictly positive),
                ``max_concurrent_children`` (default 3),
                ``allow_overlapping_mutating_tools`` (default false).
            tool_allowlist: Optional extra tools for the orchestrator's
                own Execute phase. The three in-process supervisor tools
                are always present; ``children_status`` leads the list so
                the deterministic strategy polls the fleet.
            allow_all_tools: Resolve the extra allowlist to every
                registered tool (minus loop-management names). Mutually
                exclusive with ``tool_allowlist``.
            checkpoint_cadence: Optional cadence dict (default
                ``{"kind": "every_iteration"}``).
            stagnation_threshold: Evaluated iterations with no criterion
                transition before the cascade terminates (default 3) —
                also the swarm's pool-exhaustion exit.
            use_sampling: Three-state opt-in for the orchestrator's
                advisory sampler. ``None`` auto-detects.

        Returns a JSON string with the new ``session_id``, or a
        structured error envelope.
swarm_iterate tool
[gated by GCO_ENABLE_SWARM] Drive a swarm's fleet forward.

        Long-running: builds the child runner, schedules every live
        child, and iterates the orchestrator — to its terminal verdict
        by default, or detaching after ``max_orchestrator_iterations``
        with the fleet left resumable. Exactly one live runner may
        drive a swarm at a time; a second call while one runs returns a
        ``swarm_runner_active`` envelope naming the holding process.
swarm_status tool
[gated by GCO_ENABLE_SWARM] One-call fleet rollup for a swarm.

        Returns the orchestrator summary, the swarm rails, the iteration
        pool balance, the slot-ordered child table, and a findings list
        (orphaned runner heartbeat, unreadable children, exhausted pool)
        in the ``fleet_status`` one-document style.
swarm_abort tool
[gated by GCO_ENABLE_SWARM] Terminate a swarm and its children.

        Transitions the orchestrator to ``terminated`` and aborts every
        non-terminal child through the standard abort transition,
        settling each slot's pool reservation. Works with no live
        runner; a live runner observes the terminal orchestrator at its
        next boundary and stands down.
swarm_list tool
[gated by GCO_ENABLE_SWARM] List swarm (orchestrator) sessions.

        Optionally filtered by lifecycle ``status``. Child and standalone
        sessions never appear here — use ``mission_list`` for those.
swarm_plan tool
[gated by GCO_ENABLE_SWARM] Draft a validated swarm plan.

        Decomposes the directive into admission-validated spawn requests
        — the sampled path with retry-and-feedback when a sampling
        backend resolves, always falling back to the deterministic
        single-worker plan. The returned plan feeds ``mission_spawn``
        requests (or ``gco swarm run``) verbatim; review before running.
task_status tool
Return live status of long-running tools.

    Each long-running tool (deploy_all, destroy_all, bootstrap_cdk,
    deploy_stack, destroy_stack, images_build, images_push) records
    progress to ``~/.gco/tasks/{task_id}.json`` on every output line.
    This tool reads that disk-backed channel — independent of whatever
    the calling MCP client decides to do with progress notifications —
    so operators (and other agents) can observe what's happening.

    PIDs are re-checked on every read; a status file claiming
    ``state=running`` whose recorded PID is no longer alive is rewritten
    to ``state=orphaned`` in the response so callers see honest data
    even when the original MCP wrapper exited unexpectedly while the
    underlying CLI was still running.

    Args:
        task_id: Specific task to inspect (e.g. ``deploy_all-1747683123``).
            Omit to list every known task, newest first.
        limit: When listing, maximum number of records to return.
            Ignored when ``task_id`` is set.

    Returns:
        JSON string. When ``task_id`` is set, an object with the task
        record. When omitted, ``{"tasks": [...]}`` newest-first.
task_tail tool
Return the last N lines of a long-running task's raw output log.

    The log captures the full interleaved stdout+stderr of the
    underlying subprocess (CDK deploy, finch image push, etc.) as the
    tool wrote it to disk. Each line is prefixed with ``[stdout]`` or
    ``[stderr]`` so observers can tell which stream produced it.

    Args:
        task_id: Task to read (from ``task_status``).
        lines: Maximum lines to return. ``100`` is enough to see the
            most recent stack milestone plus surrounding context;
            ``500`` typically covers a full single-stack deploy.

    Returns:
        JSON string ``{"task_id": ..., "lines": [...]}`` containing the
        tail. Empty list when the task hasn't emitted any output yet
        or its log file has been pruned.
task_prune tool
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive local cleanup.

        Delete old ``~/.gco/tasks`` status/log pairs while retaining the newest
        ``keep`` records. This never changes AWS or Kubernetes state, but removed
        local task history cannot be recovered.

        Args:
            keep: Number of newest task records to retain; must be non-negative.
templates_list tool
`gco templates list` — list job templates.

    Args:
        region: Region to query (any region works).
templates_get tool
`gco templates get` — fetch a single job template by name.

    Args:
        name: Template name.
        region: Region to query (any region works).
templates_create tool
`gco templates create` — register a new job template from a manifest.

    Args:
        name: Template name.
        manifest_path: Path to the source manifest YAML, relative to the
            project root (an absolute path must also be inside it).
        region: Region to use (any region works).
        description: Optional human-readable description.
templates_run tool
`gco templates run` — instantiate and run a job from a stored template.

    Args:
        template_name: Name of the stored template to instantiate.
        job_name: Name for the resulting job.
        region: Region in which to run the job.
        namespace: Override the Kubernetes namespace (default: gco-jobs).
        params: Parameter overrides as ``key=value`` strings (one ``-p`` each).
delete_template tool
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco templates delete` — delete a job template.
        Cannot be undone — the template definition is permanently removed.

        Args:
            name: Template name.
            region: Region to use (any region works).
webhooks_list tool
`gco webhooks list` — list configured webhooks.

    Args:
        region: Region to query (any region works).
webhooks_get tool
`gco webhooks get` — fetch a single webhook by name.

    Args:
        name: Webhook name.
        region: Region to query (any region works).
webhooks_create tool
`gco webhooks create` — register a new webhook subscription.

    The URL (which often embeds a token) and the secret reach the CLI through
    ``$GCO_WEBHOOK_URL`` and ``$GCO_WEBHOOK_SECRET`` in the child's
    environment, never on its command line; the audit log records the URL's
    scheme and host only.

    Args:
        url: Destination URL for webhook deliveries.
        events: Event names to subscribe to — one ``--event`` per entry
            (job.started / job.completed / job.failed).
        region: Region to use (any region works).
        namespace: Only deliver events for jobs in this namespace.
        secret: Optional secret for HMAC signature verification.
delete_webhook tool
[gated by GCO_ENABLE_DESTRUCTIVE_OPERATIONS] destructive.

        `gco webhooks delete` — delete a webhook subscription.
        Cannot be undone — the webhook record is permanently removed.

        Args:
            name: Webhook identifier.
            region: Region to use (any region works).
ci_index resource
List CI/CD artefacts under .github/.
ci_workflow_resource resource
Read a GitHub Actions workflow YAML file.
ci_action_resource resource
Read the action.yml for a composite action under .github/actions/.
ci_script_resource resource
Read a helper script from .github/scripts/.
ci_template_resource resource
Read an issue or pull-request template.
ci_codeql_resource resource
Read a CodeQL configuration file.
ci_kind_resource resource
Read a kind (Kubernetes-in-Docker) config file.
ci_config_resource resource
Read a repo-level CI config file (CI.md, CODEOWNERS, etc.).
clients_index resource
List API client examples for interacting with the GCO API Gateway.
client_example_resource resource
Read an API client example file.
_topology_resource resource
Return a structured snapshot of nodepools plus pending pods for ``region``.
config_index resource
List authoritative CDK and MCP configuration resources.
cdk_json_resource resource
Read the authoritative CDK deployment configuration without projection.
env_vars_resource resource
List the MCP feature flags and the environment variables the code reads.

    Every variable here is read by the MCP server, the ``gco`` CLI or the
    in-cluster services; keep the table in step with the code when adding or
    removing one.
_summary_resource resource
Return the cost summary for a positive-integer day window.
demos_index resource
List demo walkthroughs and live demo scripts.
demo_resource resource
Read a demo walkthrough or script.
docs_index resource
List all available GCO documentation, examples, and configuration resources.
readme_resource resource
The main project README with overview and quickstart information.
quickstart_resource resource
Quick start guide — get running in under 60 minutes.
tenets_resource resource
Prioritized project tenets and north-star decision guidance.
contributing_resource resource
Contributing guide — how to contribute to the project.
doc_resource resource
Read a documentation file by name (e.g. ARCHITECTURE, CLI, INFERENCE).

    Prepends an HTML-comment header with ``Topics:`` and ``Related:`` lines
    pulled from ``DOC_METADATA`` so an LLM consuming the rendered markdown
    sees the doc's classification without it bleeding into the rendered
    output. HTML comments are used rather than ``#`` because docs are
    markdown — Python-style comments would render as text.
package_doc_resource resource
Read a package-level README by slug (e.g. mcp-mission, mcp-metric-readers).

    Serves the developer-facing internals guides catalogued in
    ``PACKAGE_DOC_METADATA`` — the README files that live next to the code
    under ``gco_mcp/`` rather than in ``docs/``. Prepends an HTML-comment header
    with ``Topics:`` and ``Related:`` lines (mirroring :func:`doc_resource`)
    so a consuming LLM sees the classification without it bleeding into the
    rendered markdown. An unknown slug returns the literal ``Package doc 'X'
    not found. Available: ...`` string so callers can recover.
examples_readme_resource resource
Examples README — overview of all example manifests with usage instructions.
examples_guide_resource resource
How to create new job manifests — patterns, metadata, and best practices.

    Use this resource when you need to write a new Kubernetes manifest for GCO.
    It provides the metadata for every existing example so you can pick the
    closest one as a starting point and adapt it.
example_resource resource
Read an example manifest by name, with metadata context for creating similar jobs.

    Returns the raw YAML manifest preceded by a metadata header that describes
    what the example does, its requirements, and how to submit it.
examples_by_category_resource resource
List examples grouped by category.

    Returns a markdown listing of every example in the given category. Match
    is case-insensitive against the entry's ``category`` field. When the
    category is not recognised, returns the literal "Category 'X' not found.
    Available: ..." string so callers can recover.
examples_by_use_case_resource resource
List examples whose use_cases include the given phrase (case-insensitive).

    Substring match against every entry in each example's ``use_cases`` list.
    When nothing matches, returns the literal "No examples match use case
    'X'." string with a pointer to ``find_examples`` for broader search.
docs_by_topic_resource resource
List docs whose topics include the given phrase (case-insensitive).

    Substring match against every entry in each doc's ``topics`` list. When
    nothing matches, returns the literal ``Topic 'X' not found. Available:
    ...`` string with the union of every known topic so callers can recover.
docs_by_related_resource resource
List docs related to ``doc_name``.

    Combines two views of the bidirectional relation: every doc that lists
    ``doc_name`` in its own ``related`` field (referenced by) and every doc
    ``doc_name`` itself lists (references). Unknown names return the literal
    ``Doc 'X' not found. Available: ...`` string.
adr_index_resource resource
List every Architecture Decision Record with its id, title, and status.

    Directory-driven: scans ``docs/adr/`` for numbered ``NNNN-title.md`` records
    at read time, so a newly added ADR appears here with no code change. The
    process guide and the blank template are available at
    ``docs://gco/adr/README`` and ``docs://gco/adr/template``.
adr_resource resource
Read a single ADR by id, filename stem, or guide name.

    Accepts a four-digit id (``0001``), a full stem
    (``0001-record-architecture-decisions``), or the ``README`` / ``template``
    guides. An unknown id returns the literal ``ADR 'X' not found. Available:
    ...`` string listing the numeric ids so callers can recover.
iam_policies_index resource
List available IAM policy templates for GCO access control.
iam_policy_resource resource
Read an IAM policy template.
images_index resource
List every repository under the deployment's ECR prefix (``<project_name>/``).

    The ``gco`` in the resource URIs is the scheme's namespace; the
    repositories themselves live under the project name from cdk.json.
images_tags_resource resource
List every tag on a single repository.

    Args:
        name: Repository name without the project prefix (``trainer`` for
            ``<project_name>/trainer``).
images_describe_resource resource
Full ECR describe payload for a single tag, as JSON.

    Args:
        name: Repository name without the project prefix.
        tag: Image tag.
images_replication_status_resource resource
Registry-wide replication state across regions.
_inference_resource resource
Return the stored spec for ``endpoint_name`` as JSON.
infra_index resource
List infrastructure configuration files — Dockerfiles, Helm charts, CI/CD.
dockerfile_resource resource
Read a Dockerfile, requirements file, or README for a GCO service.
helm_charts_resource resource
Read the Helm charts configuration (chart names, versions, values).
_job_resource resource
Fail closed for the legacy URI that did not identify a cluster.
_job_resource_for_region resource
Return live YAML for ``job_name`` from one explicit regional cluster.
k8s_manifests_index resource
List all Kubernetes manifests deployed to the EKS cluster.
k8s_manifest_resource resource
Read a Kubernetes manifest that gets applied to the EKS cluster.
_k8s_live_resource resource
Fail closed for the legacy URI that did not identify a cluster.
_k8s_live_resource_for_region resource
Return live YAML from an explicitly selected regional EKS cluster.
_session_resource resource
Return the live JSON for the Mission session ``session_id``.

    Returns a JSON error envelope (``{"error": "session_not_found",
    "session_id": ...}``) when no record exists rather than raising,
    because the synthetic ``read_resource`` tool from the Resources As
    Tools transform expects a string body.
_session_report_resource resource
Return the persisted Final_Report JSON for a terminal session.

    Raises a not-found error (mapped by the FastMCP error-handling
    middleware to MCP code ``-32002``) when the session is missing,
    when it is not yet in a terminal state, or when the matching
    report payload has not been written. The :class:`FilesystemBackend`
    stores reports as sibling ``<session_id>.report.json`` files; other
    backends embed the report under ``session["final_report"]``.
_session_audit_replay_resource resource
Return the iteration history reconstructed from in-process audit entries.

    Reads from the :class:`mission.audit.MissionAuditCollectorHandler`
    ring buffer attached at server start, projects through
    :func:`mission.audit.replay_audit_entries`, and returns
    ``{"session_id": session_id, "iterations": [...], "note":
    "Reconstructed from in-process audit handler"}`` as JSON.

    Returns ``iterations: []`` when the session is unknown to the
    handler — does NOT 404. The motivation: a Mission session that
    finished before the resource was first read still has a valid
    entry in the persistent session backend, but its audit entries
    may have aged out of the bounded ring buffer. An empty
    reconstruction is the honest answer; a 404 would imply the
    session never existed.
scripts_index resource
List utility scripts for cluster access, versioning, testing, and operations.
script_resource resource
Read a utility script.
_tools_index resource
Return the full tool index as a JSON string.
_tool_detail resource
Return one tool's detail dict as JSON, or raise not-found.
_resources_index resource
Return the full resource + template index as a JSON string.
_feature_flags resource
Return the feature-flag table as a JSON string.

    Each entry carries the flag's name, its always-False default
    (gates default off until the operator opts in), and the list of
    tool names the flag gates. The umbrella flag ``GCO_ENABLE_ALL_TOOLS``
    appears with an empty ``gated_tools`` list because it overrides
    every per-tool flag.
source_index resource
List all source code files available for reading, grouped by package.
config_file_resource resource
Read a top-level project config file (pyproject.toml, cdk.json, etc.).
source_file_resource resource
Read a source file confined beneath the project root.
_task_resource resource
Return the current status of ``task_id`` as JSON.
tests_index resource
List test suite documentation, configuration, and test files.
test_file_resource resource
Read a test file, helper, or configuration file.

    Args:
        filepath: Path relative to tests/ (e.g. test_mcp_server.py, conftest.py, BATS/README.md).
(name computed at run time) resource
dynamodb resource

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure4.7
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 282 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 282 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Reads or writes any file path HIGH
    11 findings in models_upload, upload_to_regional_bucket
  • Requests any address
    No tool sends a request to an address the caller supplies — 282 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 282 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Tools that start processes
    3 of 282 capabilities start processes; 277 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    44 of 282 capabilities touch files; 236 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    Not seen in the traced code of 282 capabilities; 280 more call code the scanner could not follow, where it may happen
Where the code is: 282 handlers in 50 files at commit 612d499a8199
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chain7.0
  • Dependency manifests
    12 manifests: lambda/analytics-presigned-url/requirements.txt, lambda/api-gateway-proxy/requirements.txt, lambda/cross-region-aggregator/requirements.txt, lambda/helm-installer/requirements.txt, lambda/inference-streaming-proxy/package.json
  • Lockfiles checked against OSV
    11 files resolved and checked against the OSV database; 2 not resolved: Gemfile.lock: lockfile format is not supported by this analyzer, dependencies were not checked; pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
  • Known vulnerabilities in production dependencies
    No production dependency with a known advisory
  • Known vulnerabilities in other dependencies
    2 packages with advisories used only for development, tests or examples; an install of the server leaves them out
  • MCP SDK version
    No MCP SDK declared in a manifest
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    1 of 282 capabilities read credentials; 279 more call code the scanner could not follow, where it may happen
  • Environment variables
    21 capabilities read environment variables (often API keys)
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (0 in production)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

No known vulnerabilities in the production dependencies that could be checked.

2 vulnerable packages outside the server itself (used only for development, tests or examples, not shipped)
PackageInstalledWorstAdvisoriesFixed in
minimatchnpm 10.2.6 MEDIUM 1 advisory 11.0.1
  • MEDIUMGHSA-g3hv-75wg-m249 CVE-2026-118764minimatch has potential denial of service via globparts amplification
katexnpm 0.16.47 LOW 1 advisory 0.18.2
  • LOWGHSA-238p-pmpm-9mq7 CVE-2026-103923KaTeX: Existing prototype pollution can bypass trust restrictions

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
Transportnot stated in the code the scanner read; most local servers talk over stdio
Sign-innot checked needs the live server
Servers in the code6 (GCO, audit-test-warning, audit-test-error, audit-test-elicit, audit-test-resource, transforms-roundtrip-test)

The project's own security

Security policyyes .github/SECURITY.md
Private reportingthe policy does not name a private channel
Past advisoriesnone in the GitHub Advisory Database
Last push2026-11-14
Signed releasesnot checked yet

Where it is published

Listed in1 catalog (github_search)
LicenseMIT-0
Created2026-04-23
Topicsamazon-bedrock aws aws-cdk aws-solutions distributed-training eks eks-auto-mode generative-ai gpu hpc

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.