# `nasa__jpl_cad`

Asteroid and comet close approaches to the planets in the past and future

- Server: [NASA Open APIs](https://gateway.mcpharbor.dev/docs/servers/nasa) (`dev.mcpharbor.gateway/nasa`)
- Price per call: $0.0001 (100 micro-USD); only tools/call is charged
- Endpoint: `https://gateway.mcpharbor.dev/mcp` or `https://gateway.mcpharbor.dev/mcp/nasa`
- Upstream tool: exposed by the provider; called through this gateway as `nasa__jpl_cad`
- Provider terms: <https://api.nasa.gov/> (verified 2026-09-19)
- Upstream API documentation: <https://api.nasa.gov/>
- Rate limit: 900 requests per hour
- Attribution required: NASA should be acknowledged as the source of the material

## Parameters

- `body` (string, optional): Body to find close approaches to (e.g., Earth, Mars, ALL). Default: Earth
- `date_max` (string, optional): End date for search (YYYY-MM-DD). Default: +60 days
- `date_min` (string, optional): Start date for search (YYYY-MM-DD). Default: now
- `des` (string, optional): Object designation (e.g., '2000 SG344' or '433')
- `dist_max` (string, optional): Maximum approach distance (e.g., 0.05, 10LD). Default: 0.05 au
- `dist_min` (string, optional): Minimum approach distance. Default: none
- `fullname` (boolean, optional): Include full object name in result. Default: false
- `neo` (boolean, optional): Limit to NEOs. Default: true
- `sort` (string, optional): Sort field: date, dist, dist-min, v-inf, v-rel, h, object. Default: date
- `spk` (string, optional): Object SPK-ID (e.g., '2000433')

## Example call

Request headers and body:

```http
POST /mcp HTTP/1.1
Host: gateway.mcpharbor.dev
Authorization: Bearer <your gateway API key>
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2026-07-28
Mcp-Method: tools/call
Mcp-Name: nasa__jpl_cad
```

```json
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "_meta": {
      "io.modelcontextprotocol/clientCapabilities": {},
      "io.modelcontextprotocol/clientInfo": {
        "name": "example-agent",
        "version": "1.0.0"
      },
      "io.modelcontextprotocol/protocolVersion": "2026-07-28"
    },
    "arguments": {
      "body": "example"
    },
    "name": "nasa__jpl_cad"
  }
}
```

A successful response:

```json
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "_meta": {
      "dev.mcpharbor.gateway/call": {
        "chargedMicroUsd": 100,
        "id": "<the id of this charge>"
      }
    },
    "content": [
      {
        "text": "<whatever the upstream tool returned>",
        "type": "text"
      }
    ],
    "resultType": "complete"
  }
}
```

This call costs $0.0001 (100 micro-USD). Reading this page and listing the tool cost nothing.
The `dev.mcpharbor.gateway/call` record in the result is the receipt for that charge. Each
POST is metered separately, so sending the same call again buys another one: see
[agent.txt](https://gateway.mcpharbor.dev/agent.txt), section 7, before retrying.

## Attribution

This provider requires the attribution below wherever you use results from its tools.
Reproduce it verbatim:

> NASA should be acknowledged as the source of the material

## Tool definition

Exactly as `tools/list` returns it (free):

```json
{
  "_meta": {
    "dev.mcpharbor.gateway/pricing": {
      "currency": "USD",
      "pricePerCallMicroUsd": 100
    }
  },
  "description": "Asteroid and comet close approaches to the planets in the past and future",
  "inputSchema": {
    "properties": {
      "body": {
        "description": "Body to find close approaches to (e.g., Earth, Mars, ALL). Default: Earth",
        "type": "string"
      },
      "date_max": {
        "description": "End date for search (YYYY-MM-DD). Default: +60 days",
        "type": "string"
      },
      "date_min": {
        "description": "Start date for search (YYYY-MM-DD). Default: now",
        "type": "string"
      },
      "des": {
        "description": "Object designation (e.g., '2000 SG344' or '433')",
        "type": "string"
      },
      "dist_max": {
        "description": "Maximum approach distance (e.g., 0.05, 10LD). Default: 0.05 au",
        "type": "string"
      },
      "dist_min": {
        "description": "Minimum approach distance. Default: none",
        "type": "string"
      },
      "fullname": {
        "description": "Include full object name in result. Default: false",
        "type": "boolean"
      },
      "neo": {
        "description": "Limit to NEOs. Default: true",
        "type": "boolean"
      },
      "sort": {
        "description": "Sort field: date, dist, dist-min, v-inf, v-rel, h, object. Default: date",
        "type": "string"
      },
      "spk": {
        "description": "Object SPK-ID (e.g., '2000433')",
        "type": "string"
      }
    },
    "type": "object"
  },
  "name": "nasa__jpl_cad"
}
```
