GnistAI GnistAI
Log in

Getting Started with Cat Breeds

Curated cat breed database — 50+ breeds with temperament, coat type, size, origin, and care characteristics.

All Tutorials   |   Overview   |   Playground   |   MCP   |   REST API   |   Home
Reference

Data source: In-memory curated collection

Overview

Cat Breeds wraps In-memory curated collection, handling authentication, pagination, and rate limits for you. This tutorial covers all 5 tools with working code examples you can copy and run.

Prerequisites

  1. Sign up at https://context.gnist.ai/signup for a free API key (100 calls/day).
  2. Choose your integration method: MCP protocol or REST API.

Connect via MCP

Add to your MCP client config (Claude Desktop, Cursor, etc.):

MCP Config
{
  "mcpServers": {
    "gnist-cat-breeds": {
      "url": "https://context.gnist.ai/mcp/cat-breeds/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Tools (5)

get_cat_breed

Get detailed information about a specific cat breed by its ID. Returns breed characteristics including size, weight, temperament, coat type, and compatibility info.

ParameterTypeRequiredDescription
breed_idstringrequiredBreed ID slug (e.g. 'persian', 'maine-coon', 'russian-blue').
curl -X POST "https://context.gnist.ai/mcp/cat-breeds/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_cat_breed", "arguments": {"breed_id": "'persian'"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/cat-breeds/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'breed_id': "'persian'"}, 'name': 'get_cat_breed'}},
)
print(resp.json())

list_cat_breeds

List cat breeds with optional filters. Filters can be combined (AND logic). Returns all breeds if no filters are specified.

ParameterTypeRequiredDescription
originanyoptionalFilter by country of origin (e.g. 'United States', 'Thailand'). Omit for all origins.
sizeanyoptionalFilter by size: Small, Medium, or Large. Omit for all sizes.
coat_lengthanyoptionalFilter by coat length: Short, Medium, Long, or Hairless. Omit for all types.
curl -X POST "https://context.gnist.ai/mcp/cat-breeds/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "list_cat_breeds", "arguments": {"origin": "'United"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/cat-breeds/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'origin': "'United"}, 'name': 'list_cat_breeds'}},
)
print(resp.json())

search_cat_breeds

Search for cat breeds by keyword. Searches across breed name, origin, temperament traits, coat length, and description. Case-insensitive.

ParameterTypeRequiredDescription
querystringrequiredSearch keyword — matches breed name, origin, temperament, coat type, or description.
max_resultsanyoptionalMaximum number of results (default: 20, max: 100).
curl -X POST "https://context.gnist.ai/mcp/cat-breeds/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_cat_breeds", "arguments": {"query": "renewable energy"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/cat-breeds/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'query': 'renewable energy'},
            'name': 'search_cat_breeds'}},
)
print(resp.json())

get_random_cat_breed

Get a random cat breed. Returns full details for a randomly selected breed from the database.

curl -X POST "https://context.gnist.ai/mcp/cat-breeds/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_random_cat_breed", "arguments": {}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/cat-breeds/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {}, 'name': 'get_random_cat_breed'}},
)
print(resp.json())

report_feedback

Report a bug, feature request, or general feedback for this data source. Use this when something doesn't work as expected, when you'd like a new feature, or when you have suggestions for improvement. Args: feedback: Describe the issue or suggestion. feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: general)
curl -X POST "https://context.gnist.ai/mcp/cat-breeds/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "report_feedback", "arguments": {"feedback": "example"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/cat-breeds/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'feedback': 'example'}, 'name': 'report_feedback'}},
)
print(resp.json())

Common Patterns

Search then retrieve
Use list_cat_breeds to find items, then get_cat_breed to get full details. This two-step pattern is common for exploring data before drilling down.
Pagination
Several tools support limit, offset, or page parameters. Start with small limits during development, then increase for production queries.

FAQ

What data does Cat Breeds provide?

Curated cat breed database — 50+ breeds with temperament, coat type, size, origin, and care characteristics. It exposes 5 tools: get_cat_breed, list_cat_breeds, search_cat_breeds, get_random_cat_breed, report_feedback.

What do I need to get started?

A Gnist API key (free tier: 100 calls/day). Sign up at https://context.gnist.ai/signup.

What format does the Cat Breeds API return?

JSON, via either MCP protocol (JSON-RPC 2.0) or REST API.

Next Steps

Related Tutorials