Skip to main content
Glama

search.facets

Read-onlyIdempotent

Categorize search results by section type, industry, audience, and tags to calculate filter counts. Use this data to build faceted search interfaces that enable dynamic result refinement and filter selection.

Instructions

[DEPRECATED: Use search.unified with include_facets: true instead] ファセット検索(絞り込みカウント表示)。検索結果をsectionType・industry・audience・tagsで分類し、各値の件数を返却します。検索結果の絞り込みUIやフィルタ選択に使用します。代替: search.unified({ query: '...', include_facets: true, facet_fields: ['sectionType'], enable_reranking: false, limit: 50 }) / Faceted search with filter counts. Classifies search results by sectionType, industry, audience, and tags, returning counts per value. Used for search result refinement UI and filter selection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes検索クエリ(自然言語、1-500文字) / Search query (natural language, 1-500 chars)
facet_fieldsNoファセットフィールド(デフォルト: 全フィールド) / Facet fields (default: all). sectionType: セクション/パーツタイプ, industry: 業種, audience: ターゲット, tags: タグ
limitNoファセット算出のベース結果数(1-50、デフォルト: 50) / Base result limit for facet computation (1-50, default: 50)
webPageIdNoWebページIDでフィルター / Filter by web page ID
industryNo業種フィルター / Industry filter (e.g., 'SaaS', 'E-commerce')
audienceNoターゲットオーディエンスフィルター / Target audience filter (e.g., 'Developer')
tagsNoタグフィルター / Tags filter
Behavior4/5

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

Annotations indicate read-only/idempotent operations, which the description supports by emphasizing 'counts' and 'classification' rather than mutation. The description adds valuable behavioral context about the return format (counts per value) and intended UX pattern (refinement UI) not present in annotations.

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

Conciseness5/5

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

Exceptionally well-structured: deprecation warning front-loaded, followed by concise bilingual explanation of functionality, use case, and exact replacement syntax. Despite supporting two languages, there is no redundant information—every clause serves a distinct purpose (status, function, migration).

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?

Without an output schema, the description adequately explains the return values conceptually ('counts per value'). Given the tool's deprecated status, the detailed migration path provided is more valuable than exhaustive return value documentation, though explicit return structure details would have warranted a 5.

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?

With 100% schema description coverage, the schema fully documents all 7 parameters including field descriptions and enums. The description references the facet fields conceptually but does not add syntax details or validation rules beyond what the schema already provides, meeting the baseline for high-coverage schemas.

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 defines the tool's purpose using specific verbs ('classifies', 'returning counts') and resources (search results by sectionType, industry, audience, tags). It effectively distinguishes itself from sibling search tools by explicitly identifying search.unified as the replacement.

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?

Excellent guidance provided: explicitly marked as DEPRECATED with a clear 'when-not-to-use' directive, and provides exact parameter mappings for the alternative (search.unified with include_facets: true, enable_reranking: false, etc.). Also specifies the UI use case ('refinement UI and filter selection').

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/TKMD/reftrix-mcp'

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