get_location
Pack: rick-and-morty · Endpoint: https://gateway.pipeworx.io/rick-and-morty/mcp
Get a single Rick and Morty location/planet/dimension by ID. Returns name, type, dimension, and residents.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | number | yes | Location ID. Example: 1 = Earth (C-137). |
Example call
Arguments
{
"id": 1
}
curl
curl -X POST https://gateway.pipeworx.io/rick-and-morty/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_location","arguments":{"id":1}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_location', {
"id": 1
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | Whether location was found |
id | number | Location ID |
name | string | Location name |
type | string | Location type |
dimension | string | Dimension name |
resident_count | number | Number of residents |
resident_ids | array | Resident character IDs |
url | string | API URL |
hint | string | Hint message when location not found |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean",
"description": "Whether location was found"
},
"id": {
"type": "number",
"description": "Location ID"
},
"name": {
"type": "string",
"description": "Location name"
},
"type": {
"type": "string",
"description": "Location type"
},
"dimension": {
"type": "string",
"description": "Dimension name"
},
"resident_count": {
"type": "number",
"description": "Number of residents"
},
"resident_ids": {
"type": "array",
"items": {
"type": "number"
},
"description": "Resident character IDs"
},
"url": {
"type": "string",
"description": "API URL"
},
"hint": {
"type": "string",
"description": "Hint message when location not found"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"rick-and-morty": {
"url": "https://gateway.pipeworx.io/rick-and-morty/mcp"
}
}
}
See Getting Started for client-specific install steps.