{"openapi":"3.1.0","info":{"title":"RookTrack Lost & Found AI Assistant & Action API","version":"1.2.0","description":"OpenAPI 3.1 specification for connecting ChatGPT Actions (Custom GPTs), Gemini Extensions, and enterprise AI agents to the RookTrack Lost & Found Network."},"servers":[{"url":"http://localhost:3000","description":"Local RookTrack Development Server"},{"url":"https://rooktrack.app","description":"Production RookTrack Network"}],"paths":{"/api/mcp":{"post":{"operationId":"invokeRookTrackMcpTool","summary":"Invoke any RookTrack MCP tool via JSON-RPC 2.0 (Search, Report Lost/Found, Pet Sighting, Ownership Claim, B2B Intake)","description":"Unified endpoint supporting all 6 RookTrack AI Assistant tools with automatic anti-fraud PII redaction.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params"],"properties":{"jsonrpc":{"type":"string","default":"2.0"},"id":{"type":"integer","default":1},"method":{"type":"string","enum":["tools/call","tools/list","resources/list","resources/read"]},"params":{"type":"object","properties":{"name":{"type":"string","enum":["search_lost_and_found","report_lost_item","report_found_item","report_pet_sighting","initiate_ownership_claim","b2b_intake_item"]},"arguments":{"type":"object","additionalProperties":true}}}}}}}},"responses":{"200":{"description":"Sanitized tool execution result with hybrid match scores"}}}},"/api/v1/items":{"get":{"operationId":"searchItemsRest","summary":"Search lost & found items and pets","parameters":[{"name":"search","in":"query","schema":{"type":"string"}},{"name":"type","in":"query","schema":{"type":"string","enum":["ITEM","PET"]}},{"name":"category","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"List of matching items"}}},"post":{"operationId":"reportItemRest","summary":"Create a lost or found item or pet report","responses":{"201":{"description":"Created item listing"}}}},"/api/v1/claims":{"post":{"operationId":"submitOwnershipClaimRest","summary":"Submit proof-of-ownership challenge answers and receive a 6-digit pickup PIN","responses":{"201":{"description":"Created claim verification"}}}}},"x-rooktrack-mcp-tools":[{"name":"search_lost_and_found","description":"Search the RookTrack Lost & Found network across citizen reports and B2B venues (transit authorities, stadiums, malls). Returns anti-fraud sanitized listings and optional hybrid match scores.","accessLevel":"PUBLIC_REDACTED","inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"Keywords describing the item or pet (e.g., \"iPhone 15 Pro\", \"Golden Retriever\", \"Fossil wallet\")."},"type":{"type":"string","enum":["ITEM","PET","ALL"],"description":"Filter by physical ITEM or lost/found PET."},"status":{"type":"string","enum":["FOUND_UNCLAIMED","REPORTED_LOST","ALL"],"description":"Filter by items found in custody vs reported lost."},"category":{"type":"string","description":"Optional category filter (e.g., \"Electronics\", \"Bags & Wallets\", \"Keys\", \"Pets\")."},"primaryColor":{"type":"string","description":"Optional primary color filter (e.g., \"Natural Titanium\", \"Dark Brown\", \"Golden\")."},"venueSlug":{"type":"string","description":"Optional B2B organization slug (e.g., \"transit-mta\", \"grand-stadium\", \"city-mall\")."},"latitude":{"type":"number","description":"Optional latitude for Haversine geospatial proximity ranking."},"longitude":{"type":"number","description":"Optional longitude for Haversine geospatial proximity ranking."}},"required":["query"]}},{"name":"report_lost_item","description":"Report a lost item or pet on behalf of a user. Stores secret ownership markers privately for anti-fraud verification and immediately runs RookTrack hybrid matching against found inventory.","accessLevel":"CITIZEN_AUTH","inputSchema":{"type":"object","properties":{"type":{"type":"string","enum":["ITEM","PET"],"description":"Whether the user lost an ITEM or a PET."},"title":{"type":"string","description":"Concise title of the lost item or pet (e.g., \"Lost Sony WH-1000XM5 Headphones\")."},"category":{"type":"string","description":"Category such as \"Electronics\", \"Bags & Wallets\", \"Keys\", or \"Pets\"."},"brand":{"type":"string","description":"Brand name (for items) or breed (for pets)."},"primaryColor":{"type":"string","description":"Primary color of the item or pet."},"description":{"type":"string","description":"Public description of the item/pet and how it was lost."},"secretVerificationDetails":{"type":"string","description":"Private ownership proof (e.g., lockscreen photo, serial number, interior contents) NEVER shown publicly."},"locationName":{"type":"string","description":"Human-readable location where it was lost (e.g., \"Metro 4 Train near Central Station\")."},"latitude":{"type":"number","description":"Approximate latitude where the item/pet was lost."},"longitude":{"type":"number","description":"Approximate longitude where the item/pet was lost."},"rewardAmount":{"type":"number","description":"Optional reward offered in USD."}},"required":["title","category","primaryColor","description","locationName"]}},{"name":"report_found_item","description":"Report a found item or stray pet discovered by a citizen. Automatically masks PII from public notes and checks against existing lost reports.","accessLevel":"CITIZEN_AUTH","inputSchema":{"type":"object","properties":{"type":{"type":"string","enum":["ITEM","PET"],"description":"Whether the user found an ITEM or a PET."},"title":{"type":"string","description":"Short summary of what was found."},"category":{"type":"string","description":"Category (e.g., \"Electronics\", \"Bags & Wallets\", \"Keys\", \"Pets\")."},"brand":{"type":"string","description":"Brand or breed if visible."},"primaryColor":{"type":"string","description":"Dominant color."},"description":{"type":"string","description":"General description of where and how it was found (PII is automatically redacted)."},"locationName":{"type":"string","description":"Location where the item/pet was found."},"latitude":{"type":"number","description":"Latitude where found."},"longitude":{"type":"number","description":"Longitude where found."}},"required":["title","category","primaryColor","description","locationName"]}},{"name":"report_pet_sighting","description":"Log a live crowdsourced sighting for a lost pet on RookTrack Pet Radar so the owner receives an instant movement alert.","accessLevel":"PUBLIC_REDACTED","inputSchema":{"type":"object","properties":{"petItemId":{"type":"string","description":"The RookTrack Pet ID (e.g., \"pet-lost-dog-1\")."},"locationName":{"type":"string","description":"Where the pet was spotted (e.g., \"Prospect Park Southwest Entrance\")."},"notes":{"type":"string","description":"Behavior, direction of travel, collar condition, etc."},"latitude":{"type":"number","description":"Sighting latitude."},"longitude":{"type":"number","description":"Sighting longitude."}},"required":["petItemId","locationName","notes"]}},{"name":"initiate_ownership_claim","description":"Fetch anti-fraud ownership challenge questions for a found item, or submit the user answers for venue review (a 6-digit pickup PIN is issued only after staff approval).","accessLevel":"CITIZEN_AUTH","inputSchema":{"type":"object","properties":{"itemId":{"type":"string","description":"ID of the found item to claim (e.g., \"item-found-phone-1\")."},"claimantName":{"type":"string","description":"Full name of the claimant (optional if only fetching questions)."},"answers":{"type":"array","description":"Optional list of { question, answer } pairs. Omit to retrieve the challenge questions first.","items":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"}}}}},"required":["itemId"]}},{"name":"b2b_intake_item","description":"B2B Venue Staff tool: Rapidly intake a found item at a station/stadium desk, assign a physical storage bin/locker, generate a thermal QR tag code, and check for citizen matches.","accessLevel":"B2B_API_KEY","inputSchema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"B2B organization slug (e.g., \"transit-mta\", \"grand-stadium\")."},"storageCode":{"type":"string","description":"Physical storage bin or locker code (e.g., \"BIN-TECH-12\", \"LOCKER-A04\", \"SHELF-3-BOX-B\")."},"title":{"type":"string","description":"Item title for intake inventory."},"category":{"type":"string","description":"Item category (e.g., \"Electronics\", \"Bags & Wallets\", \"Keys\")."},"brand":{"type":"string","description":"Brand name if visible."},"primaryColor":{"type":"string","description":"Primary color of the item."},"description":{"type":"string","description":"Front-desk intake notes."},"locationName":{"type":"string","description":"Specific zone/platform/gate where the item was turned in."}},"required":["orgSlug","storageCode","title","category","primaryColor","locationName"]}}]}