GunSpec

All 30 tools

Resolve a firearm name

  • gunspec_resolve_firearm
  • Builder
  • Read-only

Resolves one free-text name ("G19 gen 5", "M4A1") to a single firearm id, with a confidence score and alternatives. Use this tool instead of search when exactly one record is required.

Example usage

  1. 1

    A person asks

    • Which firearm is a "G19 gen 5"?
  2. 2

    The assistant calls the tool

    tools/call
    json
    {  "name": "gunspec_resolve_firearm",  "arguments": {    "name": "G19 gen 5"  }}
  3. 3

    The server answers

    Result
    json
    {  "query": "G19 gen 5",  "status": "ambiguous",  "firearmId": null,  "match": null,  "score": 0.95,  "matchedTokens": [    "g",    "19",    "gen"  ],  "unresolvedTokens": [],  "alternatives": [    {      "firearmId": "glock-19-gen5",      "name": "Glock 19 Gen5",      "manufacturerName": "Glock Ges.m.b.H.",      "match": "alternate",      "matchedAlias": "G19 Gen5",      "score": 0.95    },    {      "firearmId": "glock-g19-gen5",      "name": "Glock G19 Gen5",      "manufacturerName": "Glock Ges.m.b.H.",      "match": "alternate",      "matchedAlias": "G19 Gen5",      "score": 0.95    }  ]}

    Captured from the live API on Sep 17, 2026. Lists and long text are shortened for display.

Related references

Arguments

NameTypeDescription
name (required)stringThe firearm name exactly as the user wrote it.