team_search

Pack: api-football · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/team_search for the schema, then POST the same URL with its arguments for the data.

Look up a team by name + country to get its team_id for use in other tools.

Parameters

NameTypeRequiredDescription
namestringyesTeam name (e.g. “France”, “Real Madrid”)
countrystringnoCountry name to disambiguate
_apiKeystringno

Example call

Arguments

{
  "name": "Real Madrid"
}

curl

curl -X POST https://gateway.pipeworx.io/api-football/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"team_search","arguments":{"name":"Real Madrid"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('team_search', {
  "name": "Real Madrid"
});

More examples

{
  "name": "Manchester",
  "country": "England"
}

Response shape

Full JSON Schema
{
  "type": "object",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "count": {
          "type": "number",
          "description": "Number of teams found"
        },
        "teams": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "number",
                "description": "Team identifier"
              },
              "name": {
                "type": "string",
                "description": "Team name"
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Country of team"
              },
              "founded": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Year founded"
              },
              "venue": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Home stadium name"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "City location"
              }
            }
          },
          "description": "Array of team objects (max 20)"
        },
        "found": {
          "type": "boolean",
          "enum": [
            true
          ],
          "description": "Present and true on an answer; a miss is the found:false branch."
        }
      },
      "required": [
        "count",
        "teams"
      ]
    },
    {
      "type": "object",
      "description": "A miss or an unavailable upstream: found:false with a reason and a hint (the shape check-found-false-schemas.mjs expects).",
      "properties": {
        "found": {
          "type": "boolean",
          "enum": [
            false
          ]
        }
      },
      "required": [
        "found"
      ]
    }
  ]
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the api-football pack
{
  "mcpServers": {
    "api-football": {
      "url": "https://gateway.pipeworx.io/api-football/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 15, 2026