Skip to main content
Glama

diogenes-neural-search-engine-mcp

High-Entropy Boolean & Semantic Search Query Expander

expand_search_queries
Read-onlyIdempotent

Generates targeted Boolean queries, semantic synonym variations, and sub-question expansions from an ambiguous prompt. Use when overcoming query vocabulary mismatches and expanding search recall across academic, code, or patent databases; for scoping queries to domain categories, use filter_domain_intelligence instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'base_query' ('expansion_strategy' defaults to 'boolean_operators'), supports '?demo=true' or L402 (10 sats), and returns HTTP 400 if invalid.

Input Schema

NameRequiredDescriptionDefault
base_queryYesInitial search prompt or ambiguous question requiring semantic query expansion.
target_countNoTarget count of query variations to synthesize.
expansion_strategyNoQuery expansion method: Boolean operators, semantic synonyms, or cross-domain questions.

Output Schema

NameRequiredDescriptionDefault
original_queryYesOriginal user input query before expansion.
expanded_queriesYesArray of synthesized search strings optimized for search engine indexing.
intent_classificationYesIdentified query intent (e.g., informational, transactional, technical_navigational).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations with operational constraints: stateless edge call, 32 KB cap, 60 RPM rate limit, '?demo=true' or L402 payment (10 sats), and HTTP 400 on invalid input. The 32 KB/RPM/L402 details in particular are critical for an agent to avoid failures and are not derivable from 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?

Front-loaded with the core purpose and the sibling routing in the first two sentences; the remaining technical limits are packed densely but each clause is a distinct, useful fact. The second sentence is a long run-on that could be split, but no sentence is wasted.

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?

With an output schema present, return values need not be explained, and the description still covers limits, auth, error behavior, and the key parameter default. An agent has everything needed to call this correctly and interpret success/failure.

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 baseline is 3; the description adds value by disclosing the 'expansion_strategy' default of 'boolean_operators', which is not in the schema. It does not elaborate on 'target_count', so it doesn't fully elevate above the schema.

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 output type — 'Generates targeted Boolean queries, semantic synonym variations, and sub-question expansions' — from an 'ambiguous prompt'. It also explicitly contrasts itself with the sibling filter_domain_intelligence, so an agent can distinguish the two without inspecting schemas.

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?

Names the triggering condition ('overcoming query vocabulary mismatches and expanding search recall across academic, code, or patent databases') and explicitly routes the alternative case ('for scoping queries to domain categories, use filter_domain_intelligence instead'). Both when-to-use and when-not are covered.

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