Skip to main content
Glama

Sanctions lists: OFAC SDN, UK, EU and US screening by Dennery AgentNative

aggregate_imported_dataset

Read-onlyIdempotent

Count, sum, average, minimum or maximum over every row, optionally grouped and filtered. Free: an unfiltered top-10 grouping. Filtered aggregates or top above 10 are a query fee (payment_required result). Partial hosted copies say so in coverage.

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_id": "<dataset_id>"
    },
    "name": "aggregate_imported_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNo
fieldNoNumeric column for sum, avg, min, max.
whereNoAll must match. Each {field, op, value}: op is eq ne gt gte lt lte contains or in (value is an array).
metricNo
includeNo
group_byNo
dataset_idYes

Output Schema

NameRequiredDescriptionDefault
rowsNo
dataset_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this a read-only, idempotent, non-destructive operation, so the safety profile is covered. The description adds genuinely new behavior beyond that: a monetization boundary (payment_required result) and a data-quality caveat that partially hosted copies are disclosed via coverage. It does not explain the shape of the free-vs-paid cutoff enforcement or what a payment_required result contains, leaving a partial picture.

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?

Three tight sentences with the capability front-loaded, followed by the pricing rule and the coverage caveat. The final sentence about partial hosted copies is terse to the point of ambiguity, but there is no redundant filler.

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

Completeness3/5

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

For a seven-parameter paid-read tool, the description covers capabilities, cost boundary, and data-coverage caveats, and an output schema exists so return values need not be explained. It still leaves the include parameter and dataset_id unaddressed at 29% schema coverage, which is a meaningful omission for an agent deciding how to call it.

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

Parameters3/5

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

Schema description coverage is only 29%, so the description must carry weight; it does clarify that the metric family applies to a numeric field, that grouping and filtering are optional, and it attaches real semantics to the top parameter by tying the free tier to 10. However it never mentions dataset_id, include=insights is entirely unaddressed, and the where-clause structure is not expanded beyond the schema, so gaps remain.

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?

States concrete verbs (count, sum, average, min, max) over rows of a dataset with optional grouping and filtering, which is a precise aggregate-resource definition. It does not explicitly contrast itself with the row-level sibling query_imported_dataset, so differentiation is inferred only from the word 'aggregate'.

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 usable when-to-use context in the form of a cost rule: an unfiltered top-10 grouping is free, while filtered aggregates or top above 10 incur a query fee. It never names an alternative tool or says when to prefer querying rows instead of aggregating, so it stops short of full routing guidance.

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