Skip to main content
Glama

Find Pokémon

pokeapi_find_pokemon
Read-onlyIdempotent

Filter Pokémon by generation, type, regional pokédex, or egg group. Returns names and PokéAPI IDs; every returned name works as a pokeapi_get_pokemon identifier, where a species name resolves to its default variety. Pokédex searches include regional entry numbers and sort by those numbers before pagination. At least one of generation, type, pokedex, or egg_group is required; the ones provided are combined with AND logic, and query adds strict token matching on name within them. A call with no category filter, with or without query, returns an empty result and a notice naming the requirement.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pokeapi_find_pokemon"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoType name (e.g. "fire", "psychic"). Filters to Pokémon of this type.
limitNoMaximum results to return. Positive integer; defaults to 50.
queryNoStrict token match on name. "chu" matches "pikachu" and "raichu". Case-insensitive. At most 100 characters; whitespace separates tokens, and every token must match.
offsetNoOffset into the filtered result set for pagination. Non-negative integer; defaults to 0.
pokedexNoPokéAPI pokédex name (e.g. "kanto", "hoenn", "original-sinnoh"). Use the specific dex for a region with multiple dexes.
egg_groupNoEgg group name (e.g. "monster", "fairy", "field", "water 1"). Accepts PokéAPI names and in-game names.
generationNoGeneration name (e.g. "generation-i", "generation-iii"). Filters to Pokémon introduced in this generation.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
shownNoNumber of results in this response.
noticeNoGuidance for missing category filters, zero matches, or an offset beyond the results.
pokemonNoMatching Pokémon entries.
totalCountNoTotal matching Pokémon before limit/offset.
appliedFiltersNoEffective nonblank filters and pagination controls for this response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / egg_group / description
      Previous value: -"Egg group name (e.g. \"monster\", \"fairy\", \"dragon\"). Filters to Pokémon in this egg group."New value: +"Egg group name (e.g. \"monster\", \"fairy\", \"field\", \"water 1\"). Accepts PokéAPI names and in-game names."
    • changedInput schema / properties / pokedex / description
      Previous value: -"Regional pokédex name (e.g. \"kanto\", \"hoenn\", \"galar\"). Filters to entries in that dex."New value: +"PokéAPI pokédex name (e.g. \"kanto\", \"hoenn\", \"original-sinnoh\"). Use the specific dex for a region with multiple dexes."
    • changedOutput schema / properties / appliedFilters / properties / egg_group / description
      Previous value: -"Normalized egg-group filter, when applied."New value: +"Canonical PokéAPI egg-group name or ID, when applied."
    • addedOutput schema / properties / pokemon / items / properties / entryNumber
      Added value: +{
      +  "description": "Number in the selected Pokédex. Present when pokedex is supplied.",
      +  "type": "number"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / properties / pokemon / items / properties / id / description
      Previous value: -"PokéAPI ID: Pokémon record for type filters, species record for generation, pokedex, or egg_group filters. Form IDs are not National Pokédex numbers."New value: +"PokéAPI ID: Pokémon record for type-only searches, species record whenever generation, pokedex, or egg_group is present. Form IDs are not National Pokédex numbers."
  3. Changed7 schema fields changed
    • changedInput schema / properties / query / description
      Previous value: -"Strict token match on name. \"chu\" matches \"pikachu\" and \"raichu\". Case-insensitive."New value: +"Strict token match on name. \"chu\" matches \"pikachu\" and \"raichu\". Case-insensitive. At most 100 characters; whitespace separates tokens, and every token must match."
    • addedInput schema / properties / query / maxLength
      Added value: +100
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "pokemon",
      -      "totalCount",
      -      "shown"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "pokemon",
      +      "totalCount",
      +      "shown",
      +      "appliedFilters"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / appliedFilters
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Effective nonblank filters and pagination controls for this response.",
      +  "properties": {
      +    "egg_group": {
      +      "description": "Normalized egg-group filter, when applied.",
      +      "type": "string"
      +    },
      +    "generation": {
      +      "description": "Normalized generation filter, when applied.",
      +      "type": "string"
      +    },
      +    "limit": {
      +      "description": "Accepted page size, including the default of 50.",
      +      "exclusiveMinimum": 0,
      +      "maximum": 9007199254740991,
      +      "type": "integer"
      +    },
      +    "offset": {
      +      "description": "Accepted page offset, including the default of 0.",
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "pokedex": {
      +      "description": "Normalized pokédex filter, when applied.",
      +      "type": "string"
      +    },
      +    "query": {
      +      "description": "Applied lowercase query tokens joined with single spaces. Omitted without a category filter.",
      +      "type": "string"
      +    },
      +    "type": {
      +      "description": "Normalized type filter, when applied.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "limit",
      +    "offset"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance when no Pokémon matched the filters."New value: +"Guidance for missing category filters, zero matches, or an offset beyond the results."
    • changedOutput schema / properties / pokemon / items / description
      Previous value: -"Pokémon entry with dex number and name."New value: +"Pokémon entry with PokéAPI ID and name."
    • changedOutput schema / properties / pokemon / items / properties / id / description
      Previous value: -"National Pokédex number."New value: +"PokéAPI ID: Pokémon record for type filters, species record for generation, pokedex, or egg_group filters. Form IDs are not National Pokédex numbers."
  4. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "pokemon",
      +      "totalCount",
      +      "shown"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `invalid_filter`: An unrecognized generation, type, pokédex, or egg-group name was provided. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "invalid_filter"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "pokemon",
      -  "totalCount",
      -  "shown"
      -]
  5. Changed8 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum results to return. Defaults to 50."New value: +"Maximum results to return. Positive integer; defaults to 50."
    • addedInput schema / properties / limit / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / limit / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / offset / description
      Previous value: -"Offset into the filtered result set for pagination. Defaults to 0."New value: +"Offset into the filtered result set for pagination. Non-negative integer; defaults to 0."
    • addedInput schema / properties / offset / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / offset / minimum
      Added value: +0
    • changedInput schema / properties / offset / type
      Previous value: -"number"New value: +"integer"
  6. First observed

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, and closed-world behavior, but the description adds substantive context beyond them: species names resolving to default varieties, pokédex searches carrying regional entry numbers and being sorted by them before pagination, and the empty-result-with-notice failure mode. The only omission is anything about result-size limits or truncation beyond the schema's default of 50.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with purpose and the cross-tool identifier contract, then moves to ordering, filter logic, and failure mode. It is dense and mostly waste-free, though the final sentence partly repeats the earlier 'at least one filter required' statement.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter, fully documented tool with an output schema and read-only annotations, the description supplies everything an agent still needs: the required-filter precondition, filter composition, result ordering, and the cross-tool name contract. Nothing material is left for the caller to guess.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so each parameter is already documented individually, and the description largely restates the category list. It does add meaning the schema cannot express — the AND composition across filters and that query token matching applies within the chosen category — but that is a modest increment over a fully documented schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Filter Pokémon by generation, type, regional pokédex, or egg group') and states what it returns ('names and PokéAPI IDs'). It also distinguishes itself from the sibling retrieval tool by declaring that every returned name is a valid pokeapi_get_pokemon identifier.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit precondition ('At least one of generation, type, pokedex, or egg_group is required'), explains how filters compose (AND), and how query narrows within them. It also names the consequence of violating the precondition, so an agent knows exactly when this tool will and will not produce results.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.