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

NameTypeRequiredDescription
idnumberyesLocation 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

FieldTypeDescription
foundbooleanWhether location was found
idnumberLocation ID
namestringLocation name
typestringLocation type
dimensionstringDimension name
resident_countnumberNumber of residents
resident_idsarrayResident character IDs
urlstringAPI URL
hintstringHint 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.

Regenerated from source · build June 26, 2026