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
- Sign up at https://context.gnist.ai/signup for a free API key (100 calls/day).
- Choose your integration method: MCP protocol or REST API.
Connect via MCP
Add to your MCP client config (Claude Desktop, Cursor, etc.):
{
"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.
| Parameter | Type | Required | Description |
|---|---|---|---|
breed_id | string | required | Breed 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
origin | any | optional | Filter by country of origin (e.g. 'United States', 'Thailand'). Omit for all origins. |
size | any | optional | Filter by size: Small, Medium, or Large. Omit for all sizes. |
coat_length | any | optional | Filter 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search keyword — matches breed name, origin, temperament, coat type, or description. |
max_results | any | optional | Maximum 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'.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (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
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.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.