query
Run read-only SQLite SELECT statements against your local tadpod people, notes, messages, and LinkedIn import data to answer contact and relationship questions.
Instructions
Run one read-only SQLite SELECT over the user's tadpod data.
Tables and views: people(id, slug, url, name, source, added_at) -- everyone tadpod knows; source: linkedin | scan | manual context(id, person_id, date, text, noted_at) -- dated free-form notes about a person scans(id, person_id, scanned_at, ingested_at, via) -- queue entries; via: shortcut | manual unprocessed(scan_id, person_id, slug, url, name, scanned_at) -- view: scans with no context written since connections(person_id, slug, name, first_name, last_name, company, position, connected_on, email, url) -- view: 1st-degree connections in the latest import snapshot_connections(import_id, slug, name, first_name, last_name, company, position, connected_on, email, url) imports(id, imported_at, export_date, source_file, connections, messages, invitations) messages(id, conversation_id, conversation_title, date, sender_name, sender_slug, from_me, content) message_participants(message_id, slug) -- everyone in each message except the user invitations(direction, sent_at, other_name, other_slug, message)
Notes:
people.slug is the linkedin.com/in/ part of a profile URL; join everything on person_id or slug.
scanned_at, noted_at, added_at, imported_at are UTC 'YYYY-MM-DD HH:MM:SS' (show local time with datetime(x, 'localtime')). messages.date is UTC 'YYYY-MM-DD HH:MM'. Other dates are 'YYYY-MM-DD'.
company/position are as of the latest import; compare imports via snapshot_connections.import_id.
from_me = 1 for messages the user sent. LIKE is case-insensitive.
At most max_rows rows (default 200, max 1000); long text is truncated; queries stop after 5 seconds.
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": {
"sql": "<sql>"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| max_rows | No |