Compare firearms by name
Workflow. Compares two to five firearms, named as the user wrote them ("G19", "P320 Compact"), in a single call. Each name is resolved to a record, and only the figures that differ are returned. The lightest, shortest and highest-capacity firearms are identified. Names that do not match a single record are listed under `unresolved` with their candidates and are never guessed. Replaces one resolve call per name plus one compare call.
Anwendungsbeispiel
- 1
Eine Person fragt
- Compare the Glock 17 and the Beretta 92FS.
- 2
Der Assistent ruft das Tool auf
tools/calljson{ "name": "gunspec_compare_by_name", "arguments": { "names": [ "Glock 17", "Beretta 92FS" ] }} - 3
Der Server antwortet
Ergebnisjson{ "compared": true, "firearms": [ { "id": "glock-g17", "name": "Glock 17", "version": "1dc0085f469a3786f9cd4fce92845f4beffcb0494239e4419a17c3adf09b4749", "manufacturer": "Glock Ges.m.b.H.", "primaryCaliber": "9x19mm Parabellum" }, { "id": "beretta-92fs", "name": "Beretta 92FS", "version": "37fc8cf70018f3668accdc9e458e617dd2f6b7271eb8c7f0d06e473f6c8892e9", "manufacturer": "Beretta", "primaryCaliber": "9x19mm Parabellum" } ], "differences": [ { "field": "weightEmptyG", "values": [ 625, 945 ], "min": 625, "max": 945, "percentDiff": 51.2 }, { "field": "weightLoadedG", "values": [ 905, 1100 ], "min": 905, "max": 1100, "percentDiff": 21.55 }, { "field": "barrelLengthMm", "values": [ 114, 125 ], "min": 114, "max": 125, "percentDiff": 9.65 } ], "leaders": { "lightest": { "id": "glock-g17", "name": "Glock 17", "value": 625 }, "shortest": { "id": "glock-g17", "name": "Glock 17", "value": 204 }, "highestCapacity": { "id": "glock-g17", "name": "Glock 17", "value": 17 } }, "unresolved": []}Am 17. Sept. 2026 von der Live-API erfasst. Listen und lange Texte sind für die Anzeige gekürzt.
Schritte
Die Anfragen dieses Workflows in ihrer Reihenfolge. Umfasst dein Plan einen optionalen Schritt nicht, wird dieser ausgelassen und in der Antwort unter gaps zusammen mit dem erforderlichen Plan aufgeführt.
- 1
Resolve a name to one firearm
- 2
Compare firearms
Eine Antwort
Der Workflow fasst bis zu 6 Anfragen zu einer einzigen Antwort für den Assistenten zusammen.
Argumente
| Name | Typ | Beschreibung |
|---|---|---|
names (erforderlich) | string[] | Two to five firearm names or slug ids. Names beyond the fifth are ignored. |