get_location
Pack: rickmorty · Endpoint: https://gateway.pipeworx.io/rickmorty/mcp
Get location details by ID. Returns name, type, dimension, and list of characters found there.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | number | yes | Location ID (e.g. 1 for Earth (C-137)). |
Example call
Arguments
{
"id": 1
}
curl
curl -X POST https://gateway.pipeworx.io/rickmorty/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
Always returns: id, name, type, dimension, resident_count
| Field | Type | Description |
|---|---|---|
id | number | Location ID |
name | string | Location name |
type | string | Location type (planet, cluster, etc.) |
dimension | string | Location dimension |
resident_count | number | Number of characters living at this location |
Full JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Location ID"
},
"name": {
"type": "string",
"description": "Location name"
},
"type": {
"type": "string",
"description": "Location type (planet, cluster, etc.)"
},
"dimension": {
"type": "string",
"description": "Location dimension"
},
"resident_count": {
"type": "number",
"description": "Number of characters living at this location"
}
},
"required": [
"id",
"name",
"type",
"dimension",
"resident_count"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"rickmorty": {
"url": "https://gateway.pipeworx.io/rickmorty/mcp"
}
}
}
See Getting Started for client-specific install steps.