list_leagues
Pack: thesportsdb · Endpoint: https://gateway.pipeworx.io/thesportsdb/mcp
List leagues, optionally filtered by sport name and/or country.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
sport | string | no | Sport name (e.g. “Soccer”, “Ice Hockey”) |
country | string | no | Country name |
Example call
Arguments
{
"sport": "Soccer",
"country": "England"
}
curl
curl -X POST https://gateway.pipeworx.io/thesportsdb/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_leagues","arguments":{"sport":"Soccer","country":"England"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('list_leagues', {
"sport": "Soccer",
"country": "England"
});
More examples
{
"sport": "Ice Hockey"
}
Response shape
Full JSON Schema
{
"type": "object",
"description": "Response from TheSportsDB leagues endpoint"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"thesportsdb": {
"url": "https://gateway.pipeworx.io/thesportsdb/mcp"
}
}
}
See Getting Started for client-specific install steps.