GunsNPrices
v0.1.1Parse gun and ammo titles (model, caliber, cost per round); find GunsNPrices price comparison pages
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
parse_product_title Parse a gun or ammo product title
Parse a firearm or ammunition product title from any store into structured data: firearm or ammo, brand, model (50 brands, e.g. 'Glock 19 Gen 5 MOS'), calibers, magazine capacity, barrel length in inches, rounds per box and, with a price, cost per round. Also returns GunsNPrices pages to compare current prices.
| Parameter | Type | Description |
|---|---|---|
title * | string | Product title as a store shows it, e.g. 'Glock 19 Gen5 MOS 9mm 4.02in 15rd' |
brand | string | Manufacturer, if known (helps when the title doesn't name it) |
price | number | Listing price in USD; for ammo it gives cost per round |
identify_firearm_model Identify a firearm model
Identify the brand, model family and exact model of a firearm from a title or a short description (e.g. 'G19 Gen5 MOS', 'Sig P365 XL', 'S&W M&P Shield Plus'). Covers 50 brands including Glock, Sig Sauer, Smith & Wesson, Ruger, Springfield, Beretta, Taurus, Mossberg, Remington, Savage and Henry. Glock part numbers (e.g. PA195S203) are decoded too. Returns GunsNPrices pages for the model, its family and the brand.
| Parameter | Type | Description |
|---|---|---|
title * | string | Firearm title or description |
brand | string | Manufacturer, if known |
mpn | string | Manufacturer part number, if known |
lookup_caliber Look up a caliber
Normalize a caliber or cartridge name ('9mm Luger', '5.56 NATO', '300 BLK', '12ga', '6.5 CM') or find every caliber mentioned in a text. Returns the standard name, type (handgun, rifle, rimfire, shotgun, airgun, muzzleloader) and the GunsNPrices page comparing ammo prices for it.
| Parameter | Type | Description |
|---|---|---|
query * | string | Caliber name or any text that mentions calibers |
cost_per_round Ammo cost per round
Compute the cost per round of an ammo listing from its price and round count. If the round count is not given, it is read from the title ('50/Box', '1,000 Rounds', 'Box of 20', '20/25').
| Parameter | Type | Description |
|---|---|---|
price * | number | Price in USD |
rounds | integer | Rounds in the package |
title | string | Ammo title, used to read the round count and caliber |
find_price_comparison_pages Find GunsNPrices price comparison pages
Find GunsNPrices pages that compare current prices across 40+ US gun and ammo stores for a firearm model, brand or caliber, e.g. 'Glock 19', 'Sig Sauer P365', 'Ruger', '9mm ammo', '6.5 Creedmoor'. Use it when the user asks where to buy a gun or ammo, or where it is cheapest. Returns the most specific pages first.
| Parameter | Type | Description |
|---|---|---|
query * | string | Model, brand or caliber |
list_supported List supported brands or calibers
List the 50 firearm brands with model recognition, or the 293 known calibers (optionally of one type).
| Parameter | Type | Description |
|---|---|---|
what * | string | What to list |
caliber_type | string | Only calibers of this type |