GunSpec

All 39 single-call 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. Needs the Builder plan.

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": "resolved",  "firearmId": "glock-19-gen5",  "match": "alternate",  "score": 0.95,  "matchedTokens": [    "g",    "19",    "gen"  ],  "unresolvedTokens": [],  "alternatives": [    {      "firearmId": "glock-g19",      "name": "Glock G19",      "manufacturerName": "Glock Ges.m.b.H.",      "match": "alternate",      "matchedAlias": "G19",      "score": 0.41    },    {      "firearmId": "glock-g19-gen-4-mos",      "name": "Glock G19 Gen4 MOS",      "manufacturerName": "Glock Ges.m.b.H.",      "match": "shorthand",      "matchedAlias": "G19",      "score": 0.36    },    {      "firearmId": "glock-g19-gen-5-mos",      "name": "Glock G19 Gen5 MOS",      "manufacturerName": "Glock Ges.m.b.H.",      "match": "shorthand",      "matchedAlias": "G19",      "score": 0.36    }  ]}

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

Related references

Arguments

  • stringrequired

    The firearm name exactly as the user wrote it.

json