Skip to main content
Glama

search_smart

Find claims from a natural-language question.

The central research concept and its scientific synonyms outrank incidental context words. Generic overlap that does not address the question is penalized. A keyword with no function word stays on the lexical match.
A question tries its content phrases first. When that match is thin, extracted concepts, shorter phrases, and synonyms are combined and deduplicated before ranking. Exact keywords are not required.
Question hits stay on strategy question. fallback is null when the content-phrase match already addressed the concept, keyword when every hit came from a literal concept or shorter phrase, and expanded when a synonym supplied a hit. Rank puts the concept above context words. Retrieval relevance stays ahead of evidence_strength, and match_reason records that the stored score is evidence_strength. A lexical phrase matches whole tokens. K17, PDAC, NCC, IIT, and LLM match the full names in the alias map.
notice is no_matching_claims when nothing matches. notice is no_evidence when every returned hit has an empty excerpt. A hit with an empty excerpt says no evidence in match_reason.
exploratory true keeps matches under the default relevance threshold.
Each hit includes match_reason, source_url, doi, and paper_id when those are known, up to two supporting claims, and one contradicting claim when one is stored. Each related claim carries that same compact pointer. unpublished is true for a private unpublished paper. Full provenance stays on get_evidence.
status_note on a consensus claim with no stored contradiction is: No stored contradiction; not independent multi-source consensus. When no independent supporting claim is present, the note also says: Single-source claim; not multi-source consensus.
evidence_note is: Extractor confidence in the claim statement, not study quality. A previously read source role is appended when one is known. When that role is absent, one statement cue appends a single Role line. A clear finding is not labeled method or background, a hedge is a limitation, and a statement with no cue has no Role line.
integrity_warning is set when the statement unit looks truncated relative to the excerpt, or the magnitude looks extreme relative to the excerpt. The statement and the excerpt are not rewritten.

A domain keeps claims whose primary domain is that value or one of its
aliases. cross_domain also keeps claims from other domains that carry
the domain as a secondary tag.

Use this when the input is a question instead of keywords.
Example: search_smart(natural_language="How do transformers handle long context?", domain="ai-ml", limit=5).
Example: search_smart(natural_language="What causes LLM hallucinations in RAG systems?", limit=5).

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": {
      "natural_language": "<natural_language>"
    },
    "name": "search_smart"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size. Example: 5.
domainNoPrimary domain or an alias of it. Example: ai-ml.
offsetNoNumber of hits to skip. Example: 0.
exploratoryNoKeep weaker matches that miss the central concept. Default false applies a light relevance threshold.
cross_domainNoAlso return claims from other primary domains that carry this domain as a secondary tag. Default false.
natural_languageYesA question or description of the claims you want. Example: How do transformers handle long context?

Output Schema

NameRequiredDescriptionDefault
pageYes
claimsYes
noticeNono_matching_claims when the query matches nothing. no_evidence when every returned hit has an empty excerpt. partial_concepts when the returned claims do not cover every mandatory concept, or when a lexical phrase's hits do not fully hold every content token. A claim that contains every concept does not set it. Null when the query is not multi-concept, when a returned claim covers every concept, or when nothing was returned.
fallbackNokeyword when a literal concept or shorter phrase supplied every hit. expanded when a scientific synonym supplied one. Null when the query is lexical, or when the content-phrase match already addressed the concept.
strategyNoquestion for a natural-language question. lexical for a keyword or a phrase with no function word.lexical
missing_conceptsNoMandatory concepts, or lexical content tokens, that the returned claim text does not fully hold. Taken from those hits, not from expanded search phrases. Empty unless notice is partial_concepts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedOutput schema / description
      Previous value: -"question matches a research concept. lexical is a keyword query.\n\nfallback is keyword when a literal concept or shorter phrase supplied\nevery hit, and expanded when a scientific synonym supplied one. It is\nnull when the content-phrase match already addressed the concept.\nnotice is no_matching_claims when the query matches nothing, and\nno_evidence when every returned hit has an empty excerpt.\npartial_concepts means the returned claims do not cover every mandatory\nconcept. missing_concepts names what that returned text does not fully hold.\nA claim that contains every concept does not set the notice."New value: +"question matches a research concept. lexical is a keyword query.\n\nfallback is keyword when a literal concept or shorter phrase supplied\nevery hit, and expanded when a scientific synonym supplied one. It is\nnull when the content-phrase match already addressed the concept.\nnotice is no_matching_claims when the query matches nothing, and\nno_evidence when every returned hit has an empty excerpt.\npartial_concepts means the returned claims do not cover every mandatory\nconcept, or a lexical phrase's hits do not fully hold every content token.\nmissing_concepts names what that returned text does not fully hold.\nA claim that contains every concept does not set the notice."
    • changedOutput schema / properties / missing_concepts / description
      Previous value: -"Mandatory concepts the returned claim text does not fully hold. Taken from those hits, not from expanded search phrases. Empty unless notice is partial_concepts."New value: +"Mandatory concepts, or lexical content tokens, that the returned claim text does not fully hold. Taken from those hits, not from expanded search phrases. Empty unless notice is partial_concepts."
    • changedOutput schema / properties / notice / description
      Previous value: -"no_matching_claims when the query matches nothing. no_evidence when every returned hit has an empty excerpt. partial_concepts when the returned claims do not cover every mandatory concept. A claim that contains every concept does not set it. Null when the query is not multi-concept, when a returned claim covers every concept, or when nothing was returned."New value: +"no_matching_claims when the query matches nothing. no_evidence when every returned hit has an empty excerpt. partial_concepts when the returned claims do not cover every mandatory concept, or when a lexical phrase's hits do not fully hold every content token. A claim that contains every concept does not set it. Null when the query is not multi-concept, when a returned claim covers every concept, or when nothing was returned."
  2. Changed1 schema field changed
    • changedOutput schema / $defs / ClaimHit / properties / status_note / description
      Previous value: -"Set on a consensus claim with no stored contradiction: No stored contradiction; not independent multi-source consensus. Null for contested, outdated, or a claim that already has a contradiction."New value: +"Set on a consensus claim with no stored contradiction: No stored contradiction; not independent multi-source consensus. When no independent supporting claim is present, the note also says: Single-source claim; not multi-source consensus. Null for contested, outdated, or a claim that already has a contradiction."
  3. Changed1 schema field changed
    • changedOutput schema / $defs / ClaimHit / properties / evidence_note / description
      Previous value: -"Extractor confidence in the claim statement, not study quality. evidence_strength is that extractor confidence."New value: +"Extractor confidence in the claim statement, not study quality. A previously read source role is appended when one is known. evidence_strength is that extractor confidence."
  4. Changed3 schema fields changed
    • addedOutput schema / $defs / Page / properties / total / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / $defs / Page / properties / total / description
      Added value: +"Matching claims for this query when that count is known. Null when the page was read without a count. Null is the same on every page of that query. It is not the number of rows returned."
    • removedOutput schema / $defs / Page / properties / total / type
      Removed value: -"integer"
  5. Changed1 schema field changed
    • changedOutput schema / $defs / RelationshipBasis / description
      Previous value: -"Why two claims were linked. Older flags omit this and load as null.\n\nsame_source is the same paper and is not independent evidence.\nlexical is shared vocabulary. methodological is a bound technique.\ntransfer is a mechanism the claims state. contradiction is a stored disagreement."New value: +"Why two claims were linked.\n\nAn older stored row omits this field and still loads as null. Scoring\nnever returns null. ``reclassify_stored_flags`` writes a basis onto\nevery row it can score, and writes lexical onto a null row it cannot\nscore. That fallback is explicit: the enum has no conceptual value, so\noverlap that is not a bound technique, a stated transfer, a stored\ncontradiction, or the same paper is lexical. It is not upgraded.\n\nsame_source is the same paper and is not independent evidence.\nlexical is shared vocabulary, including a generic label.\nmethodological is a technique bound to a shared specific noun.\ntransfer is a mechanism the claims state. contradiction is a stored disagreement."
  6. Changed21 schema fields changed
    • addedInput schema / properties / exploratory
      Added value: +{
      +  "default": false,
      +  "description": "Keep weaker matches that miss the central concept. Default false applies a light relevance threshold.",
      +  "examples": [
      +    false
      +  ],
      +  "title": "Exploratory",
      +  "type": "boolean"
      +}
    • changedOutput schema / $defs / ClaimHit / properties / contradicting / description
      Previous value: -"One stored contradicting claim, when one is present. claim_id, statement, and strength."New value: +"One stored contradicting claim, when one is present, with the same compact source pointer."
    • addedOutput schema / $defs / ClaimHit / properties / doi
      Added value: +{
      +  "default": "",
      +  "description": "Stored DOI, the DataCite DOI of an arXiv id, or a bioRxiv paper id that is already a DOI. Empty when unknown. Full provenance stays on get_evidence.",
      +  "title": "Doi",
      +  "type": "string"
      +}
    • addedOutput schema / $defs / ClaimHit / properties / evidence_note
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Extractor confidence in the claim statement, not study quality. evidence_strength is that extractor confidence.",
      +  "title": "Evidence Note"
      +}
    • addedOutput schema / $defs / ClaimHit / properties / integrity_warning
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Set when the statement unit looks truncated relative to the excerpt, or the magnitude looks extreme relative to the excerpt. The statement and the excerpt are not rewritten.",
      +  "title": "Integrity Warning"
      +}
    • changedOutput schema / $defs / ClaimHit / properties / match_reason / description
      Previous value: -"Why this hit ranked here: keyword overlap, domain match, and evidence strength."New value: +"Why this hit ranked here: keyword overlap, domain match, and retrieval relevance. evidence_strength is the stored score and is named here. The number stays on evidence_strength."
    • addedOutput schema / $defs / ClaimHit / properties / paper_id
      Added value: +{
      +  "default": "",
      +  "description": "Stored paper id when one is known. A private paper is an opaque private-paper id. Empty when unknown. Full provenance stays on get_evidence.",
      +  "title": "Paper Id",
      +  "type": "string"
      +}
    • addedOutput schema / $defs / ClaimHit / properties / status_note
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Set on a consensus claim with no stored contradiction: No stored contradiction; not independent multi-source consensus. Null for contested, outdated, or a claim that already has a contradiction.",
      +  "title": "Status Note"
      +}
    • changedOutput schema / $defs / ClaimHit / properties / supporting / description
      Previous value: -"Up to two other claims from the same papers. Each has claim_id, statement, and strength."New value: +"Up to two other claims from the same papers. Each has claim_id, statement, strength, and the same compact source pointer."
    • addedOutput schema / $defs / ClaimHit / properties / unpublished
      Added value: +{
      +  "default": false,
      +  "description": "True when this claim is from a private unpublished paper. Public sources stay false.",
      +  "title": "Unpublished",
      +  "type": "boolean"
      +}
    • addedOutput schema / $defs / RelatedClaim / properties / doi
      Added value: +{
      +  "default": "",
      +  "description": "Stored DOI, the DataCite DOI of an arXiv id, or a bioRxiv paper id that is already a DOI. Empty when unknown.",
      +  "title": "Doi",
      +  "type": "string"
      +}
    • addedOutput schema / $defs / RelatedClaim / properties / paper_id
      Added value: +{
      +  "default": "",
      +  "description": "Stored paper id. A private paper is an opaque private-paper id. Empty when unknown.",
      +  "title": "Paper Id",
      +  "type": "string"
      +}
    • addedOutput schema / $defs / RelatedClaim / properties / relationship_basis
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/RelationshipBasis"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Why this related claim is shown. same_source means the same paper and is not independent evidence. lexical, methodological, transfer, and contradiction name the other stored signals. Null when unknown."
      +}
    • addedOutput schema / $defs / RelatedClaim / properties / unpublished
      Added value: +{
      +  "default": false,
      +  "description": "True when that claim is from a private unpublished paper.",
      +  "title": "Unpublished",
      +  "type": "boolean"
      +}
    • addedOutput schema / $defs / RelationshipBasis
      Added value: +{
      +  "description": "Why two claims were linked. Older flags omit this and load as null.\n\nsame_source is the same paper and is not independent evidence.\nlexical is shared vocabulary. methodological is a bound technique.\ntransfer is a mechanism the claims state. contradiction is a stored disagreement.",
      +  "enum": [
      +    "same_source",
      +    "lexical",
      +    "methodological",
      +    "transfer",
      +    "contradiction"
      +  ],
      +  "title": "RelationshipBasis",
      +  "type": "string"
      +}
    • changedOutput schema / description
      Previous value: -"question matches content phrases. lexical is a keyword query.\n\nfallback is keyword when the phrase match was empty and the claims come\nfrom a keyword search of the longest content terms."New value: +"question matches a research concept. lexical is a keyword query.\n\nfallback is keyword when a literal concept or shorter phrase supplied\nevery hit, and expanded when a scientific synonym supplied one. It is\nnull when the content-phrase match already addressed the concept.\nnotice is no_matching_claims when the query matches nothing, and\nno_evidence when every returned hit has an empty excerpt.\npartial_concepts means the returned claims do not cover every mandatory\nconcept. missing_concepts names what that returned text does not fully hold.\nA claim that contains every concept does not set the notice."
    • changedOutput schema / properties / fallback / anyOf
      Previous value: -[
      -  {
      -    "const": "keyword",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "keyword",
      +      "expanded"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / fallback / description
      Added value: +"keyword when a literal concept or shorter phrase supplied every hit. expanded when a scientific synonym supplied one. Null when the query is lexical, or when the content-phrase match already addressed the concept."
    • addedOutput schema / properties / missing_concepts
      Added value: +{
      +  "description": "Mandatory concepts the returned claim text does not fully hold. Taken from those hits, not from expanded search phrases. Empty unless notice is partial_concepts.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "title": "Missing Concepts",
      +  "type": "array"
      +}
    • addedOutput schema / properties / notice
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "no_matching_claims",
      +        "no_evidence",
      +        "partial_concepts"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "no_matching_claims when the query matches nothing. no_evidence when every returned hit has an empty excerpt. partial_concepts when the returned claims do not cover every mandatory concept. A claim that contains every concept does not set it. Null when the query is not multi-concept, when a returned claim covers every concept, or when nothing was returned.",
      +  "title": "Notice"
      +}
    • addedOutput schema / properties / strategy / description
      Added value: +"question for a natural-language question. lexical for a keyword or a phrase with no function word."
  7. Changed11 schema fields changed
    • addedInput schema / properties / cross_domain
      Added value: +{
      +  "default": false,
      +  "description": "Also return claims from other primary domains that carry this domain as a secondary tag. Default false.",
      +  "examples": [
      +    false
      +  ],
      +  "title": "Cross Domain",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / domain / description
      Previous value: -"Restrict results to one domain. Example: ai-ml."New value: +"Primary domain or an alias of it. Example: ai-ml."
    • addedOutput schema / $defs / ClaimHit / properties / contradicting
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/RelatedClaim"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "One stored contradicting claim, when one is present. claim_id, statement, and strength."
      +}
    • addedOutput schema / $defs / ClaimHit / properties / match_reason
      Added value: +{
      +  "default": "",
      +  "description": "Why this hit ranked here: keyword overlap, domain match, and evidence strength.",
      +  "title": "Match Reason",
      +  "type": "string"
      +}
    • addedOutput schema / $defs / ClaimHit / properties / source_url
      Added value: +{
      +  "default": "",
      +  "description": "Stable link to the paper when one is known. Empty when the claim has no pointer. Full provenance stays on get_evidence.",
      +  "title": "Source Url",
      +  "type": "string"
      +}
    • addedOutput schema / $defs / ClaimHit / properties / supporting
      Added value: +{
      +  "description": "Up to two other claims from the same papers. Each has claim_id, statement, and strength.",
      +  "items": {
      +    "$ref": "#/$defs/RelatedClaim"
      +  },
      +  "title": "Supporting",
      +  "type": "array"
      +}
    • addedOutput schema / $defs / RelatedClaim
      Added value: +{
      +  "description": "One claim shown beside a search hit.",
      +  "properties": {
      +    "claim_id": {
      +      "title": "Claim Id",
      +      "type": "string"
      +    },
      +    "source_url": {
      +      "default": "",
      +      "description": "Stable link to that claim's paper when one is known. Empty when it has no pointer.",
      +      "title": "Source Url",
      +      "type": "string"
      +    },
      +    "statement": {
      +      "title": "Statement",
      +      "type": "string"
      +    },
      +    "strength": {
      +      "title": "Strength",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "claim_id",
      +    "statement",
      +    "strength"
      +  ],
      +  "title": "RelatedClaim",
      +  "type": "object"
      +}
    • changedOutput schema / description
      Previous value: -"strategy stays 'lexical' until multi-hop traversal is implemented."New value: +"question matches content phrases. lexical is a keyword query.\n\nfallback is keyword when the phrase match was empty and the claims come\nfrom a keyword search of the longest content terms."
    • addedOutput schema / properties / fallback
      Added value: +{
      +  "anyOf": [
      +    {
      +      "const": "keyword",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Fallback"
      +}
    • removedOutput schema / properties / strategy / const
      Removed value: -"lexical"
    • addedOutput schema / properties / strategy / enum
      Added value: +[
      +  "lexical",
      +  "question"
      +]
  8. Changed8 schema fields changed
    • changedInput schema / properties / domain / description
      Previous value: -"Restrict results to one domain."New value: +"Restrict results to one domain. Example: ai-ml."
    • addedInput schema / properties / domain / examples
      Added value: +[
      +  "ai-ml"
      +]
    • addedInput schema / properties / limit / description
      Added value: +"Page size. Example: 5."
    • addedInput schema / properties / limit / examples
      Added value: +[
      +  5
      +]
    • changedInput schema / properties / natural_language / description
      Previous value: -"A question or description of the claims you want."New value: +"A question or description of the claims you want. Example: How do transformers handle long context?"
    • addedInput schema / properties / natural_language / examples
      Added value: +[
      +  "How do transformers handle long context?"
      +]
    • addedInput schema / properties / offset / description
      Added value: +"Number of hits to skip. Example: 0."
    • addedInput schema / properties / offset / examples
      Added value: +[
      +  0
      +]
  9. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and discloses substantial detail: ranking preferences, fallback values, relevance thresholds, notices, match reasons, evidence notes, and integrity warnings. It does not cover operational concerns like rate limits or authorization, but for a read-only search tool the delivered behavioral context is unusually rich.

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

Conciseness2/5

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

The purpose is front-loaded, but the description then becomes very long and dense, mixing ranking internals, output-field semantics, fallback values, and note behavior. Some sentences are fragmented or hard to parse, such as 'Question hits stay on strategy question,' and much detail could be moved to the output schema or trimmed.

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?

For a complex search tool with six parameters and an output schema, the description covers ranking behavior, notices, evidence notes, and parameter effects thoroughly. It does not need to repeat return-value structure because an output schema exists, but it still provides useful context beyond that schema.

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 meaning beyond the schema for key parameters. It explains that exploratory keeps weaker matches under the default threshold, cross_domain includes secondary-tag domains, and domain matches primary domains or aliases.

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 opens with a specific verb and resource: 'Find claims from a natural-language question.' It also distinguishes the input mode from keyword search by saying 'Use this when the input is a question instead of keywords,' making the tool’s purpose clear relative to keyword-oriented siblings.

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?

It gives a clear condition for use: natural-language questions rather than keywords, and provides two question examples. It does not explicitly name a sibling alternative such as query_claims, but the keyword-vs-question distinction gives sufficient guidance for selection.

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