Skip to main content
Glama
Data Sniper MCP Server

Data Sniper MCP Server

Official

query_database

Filter, count, and summarize scraped leads across jobs using SQL or field filters to analyze lead datasets and isolate target contacts.

Instructions

Query and analyze scraped leads across jobs with SQL, counts, statistical summaries, and filters.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "query_database"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlNoOptional SQLite SQL query to filter or aggregate leads
cityNo
jobIdNoOptional job ID.
limitNo
queryNo
fieldsNo
offsetNo
allJobsNoQuery across all historical leads
keywordNo
categoryNo
hasEmailNo
hasPhoneNo
countOnlyNo
hasSocialNo
minRatingNo
hasWebsiteNo
minReviewsNo
summaryOnlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full disclosure burden but only says it queries and analyzes. It does not state that the operation is read-only, that the SQL is a restricted SQLite dialect (and against which tables/columns), whether there are row caps or timeouts, or what happens when an invalid SQL string is passed. The several behavioral-mode flags (countOnly, summaryOnly, allJobs) are named only obliquely, if at all.

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 a single front-loaded sentence with no filler or redundancy, which is structurally efficient. The terseness works against it only insofar as that space was the natural place to explain the mode flags, but as a conciseness judgement the sentence is clean.

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

Completeness2/5

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

For an 18-parameter tool with zero annotations, no output schema, and 17% schema coverage, this one-line description is far too thin — an agent cannot tell how sql and the structured filters combine, what the default job scope is, or what a count/summary response looks like. Nothing else in the structured data fills those gaps.

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

Parameters2/5

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

Schema description coverage is 17% — only sql, jobId and allJobs are annotated — so 15 of 18 parameters (city, category, keyword, hasEmail, hasPhone, hasWebsite, hasSocial, minRating, minReviews, limit, offset, fields, query, countOnly, summaryOnly) are undocumented in both places. The description's phrase 'counts, statistical summaries, and filters' gestures at countOnly/summaryOnly and the filter family but never maps those words to specific parameters or explains how sql interacts with the structured filters.

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

Purpose4/5

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

The description states a specific verb pair (query, analyze) and resource (scraped leads across jobs), plus the supported modes (SQL, counts, statistical summaries, filters). It is clear enough to distinguish from a plain lead-listing call, but it never names or contrasts with siblings like get_job_leads or export_query_results, so the boundary is left to inference.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance and no exclusions: nothing says when to use the SQL path versus the filter params, when to use countOnly/summaryOnly, or when a sibling such as get_job_leads or list_jobs is the better choice. The phrase 'across jobs' hints at the allJobs parameter but does not state the default scope.

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