Skip to main content
Glama

semantic_search

Read-only

Find research papers by asking a plain-English question and rank candidates by how well their titles and abstracts answer it.

Instructions

Find papers for a natural-language question, e.g. "the paper that proposed warped extra dimensions".

    Retrieves up to `pool` candidates from INSPIRE with a relaxed query and reranks them by how well
    each title and abstract answers the question (cross-encoder when installed, else embeddings or BM25).

    Args:
        question: the question in plain English.
        size: number of results to return (1-25).
        pool: candidates to rerank (10-100). Larger finds more, but is slower the first time.
        prefer_influential: true when the user asks for a foundational, seminal or well-known paper:
            half of the candidates then come from papers with 250+ citations. Leave false for recent
            or niche work, which this would push out.
        compact: drop abstracts and author lists to save context.
    

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": {
      "question": "<question>"
    },
    "name": "semantic_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
poolNo
sizeNo
compactNo
questionYes
prefer_influentialNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds real behavioral context beyond that: a two-stage retrieve-then-rerank pipeline, the fallback hierarchy of rerankers (cross-encoder when installed, else embeddings or BM25), and the fact that a large pool is slower specifically on the first call. It does not mention result ordering guarantees or deduplication, but for a read-only search this is substantial added transparency.

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 purpose and example are front-loaded, followed by mechanism and then an Args block, which is the right ordering for an agent deciding whether to call. Every section earns its place, and the Args block is justified because the schema carries no parameter descriptions. It is slightly verbose in places (the reranker parenthetical), but nothing is genuinely wasteful.

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?

An output schema exists, so the description need not explain return values and correctly does not. Given five parameters with zero schema coverage and a nontrivial retrieval pipeline, the definition covers the decisions an agent must make: query phrasing, result count, candidate pool cost, and the influential-paper heuristic. Minor gaps remain around ranking/scoring semantics and whether results overlap with keyword search, but nothing essential to correct invocation is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden and does so for all five parameters. It supplies meaning and bounds the schema omits: size is 1-25, pool is 10-100, compact drops abstracts and author lists specifically to save context, and prefer_influential has a concrete semantic effect (half the candidates come from papers with 250+ citations). This is meaningfully more than the bare property names and defaults in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening line gives a concrete verb and resource ("Find papers for a natural-language question") plus a worked example that pins down the interaction style. The two-stage mechanism (relaxed INSPIRE retrieval followed by cross-encoder/embedding/BM25 reranking on title and abstract) makes clear this is relevance-ranked retrieval rather than exact lookup, implicitly separating it from keyword-style siblings. It stops short of naming an alternative tool outright, so a 4 rather than a 5.

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?

Strong conditional guidance is supplied for the highest-stakes switch: prefer_influential should be true when the user wants a foundational or seminal paper, and false for recent or niche work that would be pushed out by the 250+ citation filter. The pool guidance ("Larger finds more, but is slower the first time") gives a cost tradeoff an agent can reason about. There is no explicit statement of when to prefer this tool over a sibling search tool, which keeps it below 5.

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