Skip to main content
Glama

query_claims

Search claim statements and excerpts.

A domain keeps claims whose primary domain is that value or one of its
aliases, such as cs.LG for ai-ml. An exact multi-token phrase matches whole
tokens. A single ordinary token also matches its singular or plural.
When no stored claim holds every token, statement hits for each token come
before excerpt-only hits, a row with no content-term overlap is dropped,
and match_reason starts with no stored co-occurrence. An empty remainder stays empty.
K17, PDAC, NCC, IIT, and LLM match the full names in the alias map.
Hits are ordered by keyword overlap, then a domain match, then evidence
strength. That retrieval order stays ahead of the stored score.
match_reason records that the stored score is evidence_strength.
cross_domain also keeps
claims from other domains that carry the domain as a secondary tag.
When the query is one domain keyword and domain is omitted, claims in
that domain come first.

Use this when you have keywords or a domain and want the strongest matching claims.
Returns claim id, status, evidence strength, a shortened excerpt, 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.
Example: query_claims(query="transformer", domain="ai-ml", limit=5).
Example: query_claims(query="United States", domain="data-protection", 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": {
      "query": "<query>"
    },
    "name": "query_claims"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size. Example: 5.
queryYesText matched against the claim statement and its excerpt. Example: transformer.
domainNoPrimary domain or an alias of it. Example: ai-ml.
offsetNoNumber of hits to skip. Example: 0.
filtersNoOptional status, minimum evidence strength, and assertion type. Example: {"status": "consensus", "min_strength": 0.6}.
cross_domainNoAlso return claims from other primary domains that carry this domain as a secondary tag. Default false.

Output Schema

NameRequiredDescriptionDefault
pageYes
claimsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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."
  2. 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."
  3. 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"
  4. 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."
  5. Changed14 schema fields changed
    • 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"
      +}
  6. Changed7 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"
      +}
  7. Changed17 schema fields changed
    • addedInput schema / $defs / ClaimFilters / description
      Added value: +"Optional status, strength, and assertion type for a claim search."
    • addedInput schema / $defs / ClaimFilters / properties / assertion_type / description
      Added value: +"Keep one assertion type: asserted, hedged, or conditional. Example: asserted."
    • addedInput schema / $defs / ClaimFilters / properties / assertion_type / examples
      Added value: +[
      +  "asserted"
      +]
    • addedInput schema / $defs / ClaimFilters / properties / min_strength / description
      Added value: +"Drop claims below this evidence strength, from 0 to 1. Example: 0.6."
    • addedInput schema / $defs / ClaimFilters / properties / min_strength / examples
      Added value: +[
      +  0.6
      +]
    • addedInput schema / $defs / ClaimFilters / properties / status / description
      Added value: +"Keep one status: consensus, contested, or outdated. Example: consensus."
    • addedInput schema / $defs / ClaimFilters / properties / status / examples
      Added value: +[
      +  "consensus"
      +]
    • 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 / filters / description
      Added value: +"Optional status, minimum evidence strength, and assertion type. Example: {\"status\": \"consensus\", \"min_strength\": 0.6}."
    • addedInput schema / properties / filters / examples
      Added value: +[
      +  {
      +    "min_strength": 0.6,
      +    "status": "consensus"
      +  }
      +]
    • changedInput schema / properties / limit / description
      Previous value: -"Page size."New value: +"Page size. Example: 5."
    • addedInput schema / properties / limit / examples
      Added value: +[
      +  5
      +]
    • changedInput schema / properties / offset / description
      Previous value: -"Number of hits to skip."New value: +"Number of hits to skip. Example: 0."
    • addedInput schema / properties / offset / examples
      Added value: +[
      +  0
      +]
    • changedInput schema / properties / query / description
      Previous value: -"Text matched against the claim statement and its excerpt."New value: +"Text matched against the claim statement and its excerpt. Example: transformer."
    • addedInput schema / properties / query / examples
      Added value: +[
      +  "transformer"
      +]
  8. First observed

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden and does so extensively. It discloses domain alias handling, phrase and singular/plural matching, fallback ordering, cross-domain behavior, match_reason semantics, returned claim fields, status_note and evidence_note behavior, and integrity_warning conditions.

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

Conciseness3/5

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

The purpose is front-loaded, but the body is dense and hard to scan, with several cryptic sentences about fallback matching and ordering. Most details are relevant, but the structure could be much cleaner and some wording does not earn its place.

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?

For a complex claim-search tool with six parameters and an output schema, the description is complete enough to explain matching behavior, ranking, domain semantics, and special output notes. The output schema further supports return-value understanding, so the remaining omissions are minor.

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 meaningful semantics beyond the schema for query matching, domain aliases, and cross_domain secondary-tag behavior. It adds less for limit, offset, and filters, which remain largely schema-driven.

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 sentence gives a specific verb and resource: search claim statements and excerpts. It also distinguishes one sibling by saying full provenance stays on get_evidence, but it does not clearly position itself against other search-oriented siblings such as search_smart or get_contradictions.

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?

The description explicitly states when to use it: with keywords or a domain to find the strongest matching claims. It also points to get_evidence for full provenance, but it does not state when-not to use this tool or how it compares with all retrieval alternatives.

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