Skip to main content
Glama

search_models

Read-onlyIdempotent

Search AI models on Civitai with text queries and filters for types, base models, and sorting options to find checkpoints, LoRAs, and other generative AI assets.

Instructions

Search for AI models on Civitai with flexible filters.

Uses Meilisearch for text queries (fast, accurate results). Falls back to REST API for filter-only queries, batch IDs, favorites, etc.

Find checkpoints, LoRAs, ControlNets and more. Types: Checkpoint, LORA, LoCon, DoRA, TextualInversion, Hypernetwork, Controlnet, Poses, VAE, Upscaler, Wildcards, MotionModule, Workflows, Detection, Other. Base models: SD 1.5, SDXL 1.0, Flux.1 D, Flux.2 D, Pony, Illustrious, NoobAI, Hunyuan 1, Kolors, Chroma, ZImageBase, etc. Sort: Highest Rated, Most Downloaded, Most Collected, Most Comments, Most Tipped, Newest. Period: AllTime, Year, Month, Week, Day (REST API only). Commercial use filter: None, Image, Rent, RentCivit, Sell (REST API only). cursor: pagination cursor from previous response (REST API).

Tips: text search works best via Meilisearch. Use get_model if you know the ID. Set favorites=true or hidden=true to filter your own models (requires API key, REST API). Set ids to fetch specific models by ID in batch (REST API).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNo
typesNo
base_modelNo
tagNo
usernameNo
sortNoMost Downloaded
periodNoAllTime
nsfwNo
limitNo
pageNo
idsNo
favoritesNo
hiddenNo
primary_file_onlyNo
allow_commercial_useNo
supports_generationNo
allow_no_creditNo
allow_derivativesNo
allow_different_licensesNo
cursorNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=true, covering safety and idempotency. The description adds valuable behavioral context: it explains the dual backend implementation (Meilisearch vs REST API), pagination behavior via 'cursor', and authentication requirements for certain filters ('requires API key'). No contradictions with annotations.

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 well-structured with clear sections: purpose, backend details, filter options, and tips. Most sentences add value (e.g., explaining backend differences, listing enums, providing usage tips). It could be slightly more concise by avoiding repetition (e.g., 'REST API only' appears multiple times).

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

Completeness4/5

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

Given the complexity (20 parameters, 0% schema coverage) and presence of annotations and output schema, the description is mostly complete. It covers purpose, usage, key parameters, and behavioral details. The output schema handles return values, so the description doesn't need to explain them. Minor gaps remain in parameter documentation.

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

Parameters4/5

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

With 0% schema description coverage for 20 parameters, the description compensates well by explaining key parameters: it lists allowed values for 'types', 'base_model', 'sort', 'period', and 'allow_commercial_use', and clarifies usage of 'cursor', 'ids', 'favorites', and 'hidden'. However, it doesn't cover all 20 parameters (e.g., 'nsfw', 'limit', 'page'), leaving some gaps.

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 clearly states the tool's purpose: 'Search for AI models on Civitai with flexible filters.' It specifies the resource (AI models on Civitai) and the action (search with filters), distinguishing it from siblings like 'get_model' (for known IDs) and 'get_top_checkpoints' (specific type without search).

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?

The description provides explicit usage guidance: 'Use get_model if you know the ID' (alternative tool), 'text search works best via Meilisearch' (optimization tip), and 'Set favorites=true or hidden=true to filter your own models (requires API key, REST API)' (prerequisites). It also distinguishes between Meilisearch and REST API use cases.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/timoncool/civitai-mcp-ultimate'

If you have feedback or need assistance with the MCP directory API, please join our Discord server