Skip to main content
Glama

search_natives

Search RedM/RDR3 natives by keyword, name, or hash, including Cfx namespaces; filter by namespace to find functions for scripting.

Instructions

Cherche des natives par mots-clés (nom ou description, en anglais), par défaut pour RedM (RDR3), natives Cfx comprises (namespace CFX : RegisterCommand, TriggerEvent, statebags…). Ex : 'horse stamina', 'set ped config flag', 'GetEntityCoords', ou un hash 0x...

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": "search_natives"
  }
}

Input Schema

NameRequiredDescriptionDefault
gameNoJeu : rdr3 (RedM) ou gta5 (FiveM). Par défaut rdr3 (RedM (RDR3)). Utile pour un portage entre les deux jeux.
limitNoNombre max de résultats (défaut 15, max 50)
queryYesMots-clés en anglais, nom de native ou hash
namespaceNoFiltre optionnel : PED, ENTITY, PLAYER, HUD, CFX, ...

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden: it does disclose the default game, that CFX natives are included, and that matching is against English names/descriptions. It omits anything about result shape, ranking/relevance ordering, or what happens on an empty match, which matters for an agent deciding whether one query is enough.

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?

Three sentences, front-loaded with the core action, then scope/defaults, then examples. The parenthetical CFX example list is slightly bulky but earns its place by showing what 'natives Cfx comprises' means.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a search tool with no output schema and no annotations, the definition should say something about what a result contains (name, hash, namespace, signature) and about relevance or ordering. Everything about inputs is covered, but the return-value side is entirely absent, leaving a real gap.

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

Parameters3/5

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

Schema coverage is 100%, so all four parameters are already documented; the description only reinforces the query semantics (English keywords, native name, or 0x hash) and the rdr3 default, and adds the porting rationale for the game switch. That is marginal added meaning, so the baseline 3 fits.

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?

States a specific verb and resource ('Cherche des natives par mots-clés') plus the searchable fields (nom ou description), the default target (RedM/RDR3) and the inclusion of Cfx natives with concrete namespace examples. An agent can distinguish this keyword search from a fetch-by-name tool like get_native, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied through worked examples ('horse stamina', 'set ped config flag', 'GetEntityCoords', a 0x hash) and a stated purpose for cross-game porting between rdr3 and gta5. It never says when to prefer this over get_native or list_namespaces, and gives no exclusions or failure conditions.

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