Skip to main content
Glama
tadpod
by ShihanLi

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

NameRequiredDescriptionDefault
sqlYes
max_rowsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it discloses read-only enforcement, single-statement execution, default and maximum row counts, long-text truncation, and a 5-second cutoff. It stops short of describing error behavior or what the result set looks like (columns vs. rows).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is long but dense and front-loaded, and the table catalog is functional reference material an agent needs to write valid SQL rather than filler. The operational limits (truncation, timeout) are tucked at the very end where they are easiest to miss.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an open-ended SQL tool with no output schema, the description supplies the schema catalog, join keys, timestamp formats, boolean conventions, and row/time limits. The main remaining gap is the shape of the returned result and how errors surface.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, and it does for both parameters: max_rows is given a default (200) and ceiling (1000), and sql is bounded to a single read-only SELECT. The extensive table/column catalog effectively defines what the sql parameter can reference, which is the key semantic gap the schema leaves open.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence gives a specific verb, resource, and constraint: 'Run one read-only SQLite SELECT over the user's tadpod data.' That immediately separates it from the write-oriented siblings (add_context, add_person, import_linkedin) without needing to name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the read-only SELECT framing plus the limits (one statement, 5-second timeout, max_rows cap), but there is no explicit when-to-use or when-not-to-use guidance, and no routing to alternatives for common tasks like looking up a person.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools