get_film
Pack: swapi · Endpoint: https://gateway.pipeworx.io/swapi/mcp
Get a Star Wars film by its numeric ID. Returns title, episode number, director, producer, release date, and opening crawl.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | number | yes | Film ID (e.g., 1 for A New Hope) |
Example call
Arguments
{
"id": 1
}
curl
curl -X POST https://gateway.pipeworx.io/swapi/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_film","arguments":{"id":1}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_film', {
"id": 1
});
More examples
{
"id": 5
}
Response shape
Always returns: title, episode_id, director, producer, release_date, opening_crawl, url
| Field | Type | Description |
|---|---|---|
title | string | Film title |
episode_id | number | Episode ID |
director | string | Director |
producer | string | Producer |
release_date | string | Release date |
opening_crawl | string | Opening crawl text |
url | string | Film URL |
Full JSON Schema
{
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Film title"
},
"episode_id": {
"type": "number",
"description": "Episode ID"
},
"director": {
"type": "string",
"description": "Director"
},
"producer": {
"type": "string",
"description": "Producer"
},
"release_date": {
"type": "string",
"description": "Release date"
},
"opening_crawl": {
"type": "string",
"description": "Opening crawl text"
},
"url": {
"type": "string",
"description": "Film URL"
}
},
"required": [
"title",
"episode_id",
"director",
"producer",
"release_date",
"opening_crawl",
"url"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"swapi": {
"url": "https://gateway.pipeworx.io/swapi/mcp"
}
}
}
See Getting Started for client-specific install steps.