Skip to main content
Glama

Rank rows by a numeric column

dataset_top

The highest (or lowest) rows of the Lobbyvo 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

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the burden of explaining behavior. It does disclose that rows are ordered by a numeric column and that ascending/descending selection is possible. However, it does not mention limit semantics, tie handling, behavior on non-numeric data, or the return shape, leaving some behavioral gaps.

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

Conciseness5/5

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

The description is a single tight sentence plus a clarifying phrase. It is front-loaded with the core action and contains no filler or redundant restatement of the schema.

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 simple three-parameter tool this is mostly adequate, but without an output schema and with sparse parameter documentation, the description could do more to explain what rows are returned, how limit behaves, and edge cases. It is functional but not fully complete.

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 33%, so the description must compensate. It adds meaningful semantic value by specifying that column must be numeric and by mapping ascending/descending to lowest/highest. Yet the limit parameter's purpose is left entirely to inference from its name and schema constraints.

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 title and description specify a clear verb and resource: rank rows of the dataset by a numeric column and return the highest or lowest records. The 'which is the most/least X' phrasing makes the purpose concrete and distinct from siblings like dataset_search or dataset_stats.

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?

The description gives a clear use case: answering 'which is the most/least X' questions by ranking a numeric column. It does not explicitly name alternatives or exclusions, but the provided context is enough for an agent to know when this tool fits.

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