[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [NGA maritime records](https://spiral.ai/integrations/muse-code/nga-maritime-records)

# How to Use NGA maritime records in Muse Code

Returns paginated collections of ports, navigational warnings, or archived anti-shipping incidents. Use it to build a reference dataset or collect warnings still in force.

|  |  |
| --- | --- |
| Model | NGA maritime records |
| Available through | Alexandria |
| Category | Maps & Reviews |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with NGA maritime records in Muse Code

- Use NGA maritime records to collect the in-force NAVAREA IV warnings and add a review table showing each warning's number and original text.
- Use NGA maritime records to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from NGA maritime records and tell me what changed since last week.
- Check NGA maritime records and summarize what you find in three bullet points.
- Pull the newest data from NGA maritime records and give me the result as a table.

## How to set up NGA maritime records in Muse Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run NGA maritime records**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "msi-nga-mil/maritime-safety/records_list",
    "input": {
      "family": "ports"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds NGA maritime records on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## NGA maritime records tools and prices

- [NGA Maritime Safety Information · Records list](https://spiral.ai/tools/alexandria/msi-nga-mil/maritime-safety/records_list) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| year | 2000 to 2100 | — | year |
| scope | inforce, year | — | warnings only: inforce (default) or year. |
| nav_area |  | — | 4 (NAVAREA IV), 12 (NAVAREA XII), A (HYDROLANT), P (HYDROPAC) or C (HYDROARC); the names are accepted too. |
| page_size | 1 to 2000 | — | page_size |
| continuation |  | — | Opaque cursor from the previous page (meta.page.next_cursor). It pins the publication; when the source moved on the call fails with invalid_input issue code publication_changed: restart without continuation. |

## What can you do with NGA maritime records in Muse Code?

Build a port comparison table or a navigational warning review screen from NGA records. A coding agent can connect published port particulars, warning text, and publication checks to the project's existing data views.

### Add port reference data to a shipping directory

Find Rotterdam, Antwerp, and Hamburg, inspect their port records, and populate a directory with published locations and harbor characteristics. Check publication status before refreshing the underlying collection.

### Compare published vessel limits

Identify Mombasa and Dar es Salaam, retrieve their records, and compare the maximum vessel dimensions and depths reported in the World Port Index. Refresh the comparison when its source publication changes.

### Research alternative commercial ports

Compare Singapore and Port Klang using their published facilities, services, harbor characteristics, and vessel limits. Resolve the port names first, inspect the relevant records, and maintain the comparison against the published collection.

### Maintain port profiles for a logistics team

Match a port directory to World Port Index entries, collect the published records, and revisit selected entries after a publication change. Show the differences in port particulars for editorial review.

### Prepare a navigation warning desk brief

Collect in-force NAVAREA IV warnings, review creation and cancellation records, and open selected messages for their full text. Use publication status to determine when the briefing's source collection needs another review.

### Remove withdrawn notices from a warning board

Review NAVAREA XII cancellations against a saved warning collection and inspect each affected record before updating the board. Check the latest publication and reconcile the result with the in-force list.

### Document warning publication history

Build a HYDROARC research log from available annual warning records and creation or cancellation results. Inspect selected messages and associate each collected batch with its source publication.

### Review maritime radio service notices

Collect HYDROARC warnings and select messages about radio service interruptions from their text. Compare creation and cancellation records, inspect the notices, and refresh the review when the publication changes.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## NGA maritime records in other agents

- [Amp](https://spiral.ai/integrations/amp/nga-maritime-records)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/nga-maritime-records)
- [Claude](https://spiral.ai/integrations/claude-desktop/nga-maritime-records)
- [Claude Code](https://spiral.ai/integrations/claude-code/nga-maritime-records)
- [Cline](https://spiral.ai/integrations/cline/nga-maritime-records)
- [Codex](https://spiral.ai/integrations/codex/nga-maritime-records)
- [Cursor](https://spiral.ai/integrations/cursor/nga-maritime-records)
- [Devin](https://spiral.ai/integrations/devin/nga-maritime-records)
- [dots](https://spiral.ai/integrations/dots/nga-maritime-records)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/nga-maritime-records)
- [Gemini](https://spiral.ai/integrations/gemini/nga-maritime-records)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/nga-maritime-records)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/nga-maritime-records)
- [goose](https://spiral.ai/integrations/goose/nga-maritime-records)
- [Grok](https://spiral.ai/integrations/grok/nga-maritime-records)
- [Grok Build](https://spiral.ai/integrations/grok-build/nga-maritime-records)
- [Hermes](https://spiral.ai/integrations/hermes/nga-maritime-records)
- [Instinct](https://spiral.ai/integrations/instinct/nga-maritime-records)
- [Manus](https://spiral.ai/integrations/manus/nga-maritime-records)
- [Muse](https://spiral.ai/integrations/muse/nga-maritime-records)
- [n8n](https://spiral.ai/integrations/n8n/nga-maritime-records)
- [Notion](https://spiral.ai/integrations/notion/nga-maritime-records)
- [OpenClaw](https://spiral.ai/integrations/openclaw/nga-maritime-records)
- [opencode](https://spiral.ai/integrations/opencode/nga-maritime-records)
- [Perplexity](https://spiral.ai/integrations/perplexity/nga-maritime-records)
- [Raycast](https://spiral.ai/integrations/raycast/nga-maritime-records)
- [VS Code](https://spiral.ai/integrations/vscode/nga-maritime-records)
- [Windsurf](https://spiral.ai/integrations/windsurf/nga-maritime-records)
- [Zapier](https://spiral.ai/integrations/zapier/nga-maritime-records)

## More Muse Code guides

- [NGA maritime record details](https://spiral.ai/integrations/muse-code/nga-maritime-record-details)
- [NGA navigational warning changes](https://spiral.ai/integrations/muse-code/nga-navigational-warning-changes)
- [NGA maritime publication status](https://spiral.ai/integrations/muse-code/nga-maritime-publication-status)
- [NHC active storms](https://spiral.ai/integrations/muse-code/nhc-active-storms)
- [NGA World Port Index search](https://spiral.ai/integrations/muse-code/nga-world-port-index-search)
- [NHC hurricane best track](https://spiral.ai/integrations/muse-code/nhc-hurricane-best-track)

## Questions about NGA maritime records in Muse Code

**Can Muse Code use NGA maritime records?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run NGA maritime records like any built-in tool.

**How much does NGA maritime records cost in Muse Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.

**Do I need an Alexandria account to use NGA maritime records in Muse Code?**

No. Spiral runs NGA maritime records on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up NGA maritime records in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while NGA maritime records runs?**

NGA maritime records runs in the background. Muse Code starts the run, checks on it and gives you the json when it's ready.

**Does the World Port Index cover ports outside the United States?**

Yes. It describes major ports and terminals worldwide, including locations, physical characteristics, facilities, and services. Its stated coverage is major ports and terminals, so it should not be read as a directory of every landing place.

**How often does the World Port Index change?**

NGA distinguishes monthly publication of the official CSV from weekly updates to its ArcGIS web application. The collector uses the CSV, so a weekly web edit does not establish that the downloadable publication has changed.

**Which navigational warning series are included?**

The collector includes five series: NAVAREA IV, NAVAREA XII, HYDROLANT, HYDROPAC, and HYDROARC. It does not list every national or coastal warning service as a separate source.

**How often are NGA's in-force warning lists published?**

NGA's published self-assessment describes daily in-force warning links for NAVAREA IV and XII, including weekends and holidays. That schedule describes publication of those lists, rather than a guaranteed delivery time for an individual API result.

**Can ASAM show recent piracy incidents?**

ASAM stopped updating after June 30, 2024. Use it for historical research; NGA also states that it is not a complete listing of hostile actions worldwide.

