Get Location
get_locationGet a single Rick and Morty location/planet/dimension by ID. Returns name, type, dimension, and residents.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": 1
},
"name": "get_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Location ID. Example: 1 = Earth (C-137). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Location ID | |
| url | No | API URL | |
| hint | No | Hint message when location not found | |
| name | No | Location name | |
| type | No | Location type | |
| found | No | Whether location was found | |
| dimension | No | Dimension name | |
| resident_ids | No | Resident character IDs | |
| resident_count | No | Number of residents |