Skip to main content
Glama

eokg_search_smells

eokg_search_smells
Read-onlyIdempotent

Full-text search of smell excerpts and source titles, ranked by relevance. Matching is on the extracted excerpt text (OCR, unnormalised spelling). Language, year and dataset filters are applied after ranking, to a window of the most relevant hits, so a filtered search reports how many hits it scanned and may miss rarer matches; the result says when. Year filters use the document date; undated sources are kept. One passage can contain several smells; each is its own result with its own id and concept, so the same excerpt can appear more than once. Follow up with eokg_get_smell for a full record.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "eokg_search_smells"
  }
}

Input Schema

NameRequiredDescriptionDefault
inNoSearch the smell excerpts (default), the source titles, or both.excerpt
textYesLucene query text without field prefixes. Words without an operator are OR-ed: write AND/OR/NOT in capitals, and quote phrases and hyphenated words ("eau de cologne"). Trailing * and ? wildcards and ~ fuzzy matching work. Accents and umlauts must match exactly (égouts ≠ egouts); search both forms when unsure. Search in the language of the texts you want.
limitNoResults per page.
offsetNoResults to skip. To continue, pass the previous page's next_offset: a page cut to fit the output budget holds fewer than limit results.
datasetNoOnly smells from this source corpus (see eokg_list_datasets).
year_toNoLatest document date, inclusive. A date range such as 1616/1678 counts by its first year. Undated sources are kept.
languageNoOnly smells from sources in this language.
year_fromNoEarliest document date, inclusive. A date range such as 1616/1678 counts by its first year. Undated sources are kept.

Output Schema

NameRequiredDescriptionDefault
limitYes
queryYes
offsetYes
resultsYes
scannedNo
filteredYes
has_moreYes
warningsNo
truncatedNo
exhaustiveNo
total_hitsYes
next_offsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: filters are applied after ranking to a window of top hits, so rare matches can be missed and the response reports how many hits were scanned; year filters use document date and keep undated sources; one passage may yield multiple results sharing an excerpt.

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?

Four tightly packed sentences, front-loaded with what is searched and ranked, then progressively disclosing the caveats; the only mild redundancy is restating that undated sources are kept, which the schema already says.

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?

An output schema exists so return shape need not be explained, and the description still covers the things an agent would otherwise get wrong: duplicate excerpts across hits, lossy post-ranking filters, and the follow-up call to fetch full records.

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?

Schema coverage is 100% so the baseline is 3, but the description adds real meaning the schema lacks: matching runs over OCR'd, unnormalised excerpt text, and the filtering-after-ranking behavior changes how limit/offset and the facet parameters behave in practice.

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?

States a specific verb and resource ('Full-text search of smell excerpts and source titles') plus the ranking model, and the closing pointer to eokg_get_smell makes clear this is the discovery step rather than a record fetch.

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

Usage Guidelines4/5

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

Explicitly routes the agent onward ('Follow up with eokg_get_smell for a full record') and warns when filtered searches are lossy, but offers no guidance on choosing this over sibling searches like eokg_find_visual_smells or eokg_find_concepts.

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.

Resources