Skip to main content
Glama

Rank rows by a numeric column

dataset_top

The highest (or lowest) rows of the Working Capital Quotes dataset by a numeric column — "which is the most/least X".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
columnYes
ascendingNotrue for the lowest first; default highest first

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden and mostly fails it. It never states that this is a read-only operation, what a tie in the ranked column yields, whether results are truncated silently, or what the response looks like.

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 compact sentence with the ranking concept front-loaded and no filler. The em-dash quote is stylistic rather than wasteful, though it delays the concrete parameter behavior.

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?

With no output schema, no annotations, and an undocumented `limit`, the description should supply the missing operational detail (default row count, result shape, tie handling, read-only nature) but does not. It is only adequate for understanding the concept, not for calling the tool confidently.

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 only 33% (just `ascending`), and the description adds little: 'by a numeric column' restates `column` and 'highest (or lowest)' roughly duplicates the documented `ascending` semantics. The `limit` parameter is entirely undocumented in both schema and description, including its default and its cap of 50.

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 a concrete verb+resource+scope: the highest/lowest rows of a specific dataset ranked by a numeric column, with an intuitive restatement ("which is the most/least X"). It is clearly distinguishable from dataset_stats (aggregation) and dataset_row (single row), though it never names a sibling explicitly.

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?

The 'which is the most/least X' framing implies the analytical question this tool answers, so usage is inferable. However there is no explicit when-to-use versus dataset_stats, dataset_search, or dataset_compare, and no stated prerequisite that the column must be numeric-typed.

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