Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as amz-vault. If you published it, claim ownership there.

Data: Query warehouse

data_query
Read-only

Generic query over any warehouse dataset (see data_describe): column projection, filters (eq/neq/gt/gte/lt/lte/in/contains), date bounds, ordering, limit ≤1000 + offset — page with offset until a short page comes back to retrieve FULL datasets. Tenancy is enforced automatically; product_type_definitions is reference data and needs no seller_connection_id (its schema blobs are served by product_attribute_rules).

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": {
      "dataset_key": "<dataset_key>"
    },
    "name": "data_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
columnsNo
date_toNo
filtersNo
order_byNo
date_fromNo
order_dirNo
dataset_keyYes
seller_connection_idNoWhich seller connection (see account_sellers). Optional when the token has exactly one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: tenancy is enforced automatically, results are capped at 1000 per page, and full datasets require offset paging until a short page. It does not describe error or empty-result behavior, keeping it short of a 5.

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?

One dense, front-loaded paragraph where the core capability and paging rule lead. Parenthetical asides (see data_describe, the product_type_definitions carve-out) are informative rather than filler, though the sentence is long and packs several ideas together.

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 a 10-parameter tool with no output schema and sparse schema descriptions, the definition covers safety, tenancy, pagination, and parameter meaning well. Remaining gaps are the shape of returned rows and the filter object's key structure, which an agent must guess from the schema.

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?

With only 10% schema description coverage the description must carry the load, and it largely does: it enumerates filter operators (eq/neq/gt/gte/lt/lte/in/contains), defines limit cap and offset paging, and clarifies seller_connection_id is unnecessary for reference data. Gaps remain on the structure of each filter object, date string format, and order_dir enum, but the added meaning is substantial.

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?

States a specific verb (query) and resource (any warehouse dataset) with scope spelled out: projection, filters, dates, ordering, limit/offset. It also routes schema discovery to data_describe, so the agent can distinguish it from that sibling without opening either schema.

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

Usage Guidelines4/5

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

Gives real usage context: consult data_describe for dataset shape, page with offset until a short page returns, and the product_type_definitions exception pointing to product_attribute_rules for schema blobs. It does not explicitly say when to prefer ppc_query or other report siblings, but the 'generic query over any warehouse dataset' framing implies the alternative.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources