Skip to main content
Glama

Hybrid search RedM docs (semantic + lexical)

semantic_search
Read-only

Search RedM/RDR3 docs by behavior, concept, or token: 'teleport player', 'spawn vehicle', 'inventory add item'. Hybrid mode (default) fuses document vectors, PostgreSQL full-text results and structured discoveries records, then reranks. For a specific native use lookup_native; for ped/weapon/object/door/vehicle models use asset_lookup; for animation/audio/IMAP/clothing/wearable/particle/flag/texture records use discovery_lookup. Use grep_docs for raw references or unsupported source formats. Returns ranked snippets (path, breadcrumb, heading, snippet, score); get_document opens returned paths, including discovery: records. mode=semantic searches document vectors only; mode=lexical uses lexical retrieval including structured discoveries. Filter via category=vorp|rsgcore|oxmysql|natives|discoveries|jo_libs|cfx|learnings or namespace. category=cfx covers the Cfx runtime/scripting API (RegisterCommand, exports, events, statebags, fxmanifest, convars, OneSync, NUI). Community findings are merged by default; category=learnings returns only findings. If retrying after an unhelpful result, populate prior_attempt with the previous query and why it missed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoRetrieval mode. Default hybrid (recommended).
limitNoHow many ranked snippets to return. Default 20 (Anthropic contextual-retrieval research: top-20 outperforms top-5/10 before reranking).
queryYesNatural language or token query
categoryNoLimit to one doc category
namespaceNoLimit to a native namespace, e.g. PLAYER, ENTITY
prior_attemptNoPopulate ONLY when retrying after a previous semantic_search call returned no useful results. Skip on first attempts.
responseFormatNo`concise` (default): 400-char snippet per hit — cheap, browse-style. `detailed`: full chunk content — use when you need an answer in one round-trip and want to skip the `get_document` follow-up.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / category / enum
      Previous value: -[
      -  "natives",
      -  "vorp",
      -  "rsgcore",
      -  "oxmysql",
      -  "discoveries",
      -  "jo_libs",
      -  "guides",
      -  "learnings"
      -]New value: +[
      +  "natives",
      +  "vorp",
      +  "rsgcore",
      +  "oxmysql",
      +  "discoveries",
      +  "jo_libs",
      +  "cfx",
      +  "guides",
      +  "learnings"
      +]
  2. Changed3 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / prior_attempt / additionalProperties
      Removed value: -false
  3. Changed1 schema field changed
    • addedInput schema / properties / prior_attempt
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Populate ONLY when retrying after a previous semantic_search call returned no useful results. Skip on first attempts.",
      +  "properties": {
      +    "query": {
      +      "description": "The previous query you tried.",
      +      "type": "string"
      +    },
      +    "why_unhelpful": {
      +      "description": "Why it didn't return what you needed (1 sentence).",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "query",
      +    "why_unhelpful"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.