Skip to main content
Glama

get_native

Retrieves a native's signature, description, and Lua call examples by name or hash, with optional game selection to support RDR3/GTA5 porting.

Instructions

Détail complet d'une native : signature, description, et exemple d'appel en Lua (nom PascalCase et Citizen.InvokeNative). Accepte le nom (GET_ENTITY_COORDS ou GetEntityCoords) ou le hash.

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": {
      "name_or_hash": "<name_or_hash>"
    },
    "name": "get_native"
  }
}

Input Schema

NameRequiredDescriptionDefault
gameNoJeu : rdr3 (RedM) ou gta5 (FiveM). Par défaut rdr3 (RedM (RDR3)). Utile pour un portage entre les deux jeux.
name_or_hashYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

A3.9/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 burden and does well: it discloses the response contents (signature, description, Lua example), that names are normalized across both GET_ENTITY_COORDS and GetEntityCoords, and that the example uses PascalCase plus Citizen.InvokeNative. It stops short of describing not-found behavior or hash format expectations, which keeps it from a 5.

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

Conciseness5/5

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

A single front-loaded sentence that leads with what is returned, then enumerates the accepted input forms. No redundant wording and nothing that could be cut without losing information.

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?

No output schema exists, so the description usefully enumerates the return payload, and it documents the otherwise-bare name_or_hash parameter. Only the failure case (unknown native) and cross-game fallback behavior are unaddressed, which is minor for a read-only lookup.

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 only 50%, with name_or_hash completely undocumented in the schema. The description compensates by explaining the accepted forms (either casing of the name, or a hash), which is the key semantic an agent needs; the game parameter's porting purpose is already covered by 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 description states a specific resource and the exact payload returned: 'Détail complet d'une native : signature, description, et exemple d'appel en Lua'. The word 'Détail' implicitly separates it from the discovery-oriented sibling search_natives, but no sibling is named, so differentiation is left to inference.

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 only implied: an agent can infer this is the tool to call once it already knows a native name or hash. There is no explicit when-to-use versus search_natives for lookup-by-query, and no mention of what happens when the name/hash is unknown.

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