Find NPC service
find_serviceLocate the nearest friendly NPCs offering a chosen service—vendor, repair, flight master, trainer, innkeeper, banker, auctioneer, or stable master—in a WoW zone, sorted by distance.
Instructions
Nearest NPCs offering a service (QuestieDB): vendor, repair, flight_master, trainer, innkeeper, banker, auctioneer, stable_master. In a zone (default: the current map, else zone, from the combat log), friendly to the player's faction (basics snapshot of the character in the combat log; unfriendly counts the others), nearest first from near {x, y, source: log (map_pos, approx) or snapshot (zone x/y at the last /reload), age_s}, else by name. Each: id, name, subname, services, friendly (Alliance, Horde, both), coords of its nearest spawn (coords are map percent 0-100 like /way; absent inside dungeons) and dist in map percent (same zone only; the map is wider than tall). subname narrows by title: 'Warrior' for a class trainer, 'Gryphon' for a flight master. total: matches in the zone. None here: elsewhere lists other zones with one {zone, count} by name, elsewhere_total counts them all; pick the nearest yourself. Offline knowledge base: no network; links are for the user and are never fetched. Name: fuzzy (word prefixes, exact name first); digits: exact id.
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": {
"service": "<service>"
},
"name": "find_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | No | Zone name; default: the current one from the log. | |
| limit | No | ||
| service | Yes | The service wanted. | |
| subname | No | Text in the NPC's title, e.g. Warrior, Gryphon. |