Skip to main content
Glama

Get Date Range

get_date_range

Calculates the earliest and latest dates in a chosen date column so dashboards can set accurate date filters and ranges.

Instructions

Get the min/max date range for a date column.

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": {
      "filter_json": "<filter_json>"
    },
    "name": "get_date_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
filter_jsonYesJSON string with filter config, e.g.: {"nombre": "date_range", "columna": "date", "tabla": "sales", "tipo": "date_range"}

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 behavioral burden. 'Get' implies a read, but the description does not state what happens for a non-date or empty column, whether it errors or returns null, or any permission requirements.

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?

A single front-loaded sentence with no filler. It is efficient, though the terseness borders on under-specification rather than genuine conciseness.

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?

An output schema exists, so return values need not be described. However, the filter_json config is a loosely typed JSON blob and the description gives no guidance on valid keys or failure modes, leaving a gap relative to the tool's actual complexity.

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 coverage is 100% and the single filter_json parameter is documented with a worked JSON example, so the baseline is 3. The description adds only the qualifier 'for a date column,' which is already implicit in the tool name.

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 gives a specific verb ('Get') and resource ('min/max date range for a date column'), so an agent knows exactly what the tool returns. It does not distinguish itself from adjacent tools such as get_filter_options or get_table_columns, which is the only thing keeping it from a 5.

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 when-to-use guidance, no prerequisites, and no mention of alternative tools for column metadata. The agent must infer that this is the right call when it needs bounds on a date column.

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