Skip to main content
Glama

Get Filter Options

get_filter_options

Retrieves distinct values for a filter column to populate dropdowns and enable dynamic filtering in dashboards.

Instructions

Get distinct values for a filter 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_filter_options"
  }
}

Input Schema

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

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 disclosure burden and does almost none of it. It does not confirm this is a read-only operation, say whether values come from a live query (and may be slow or fail on bad filter_json), or describe any error behavior for malformed config.

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 zero filler. It is efficient, though its brevity shades into under-specification rather than ideal 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?

The tool is simple (one parameter, output schema present so return values need not be described), which lowers the bar. Still, for a tool whose only input is an opaque JSON blob, the description leaves the relationship to the other filter tools and the config format unexplained.

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 100% and the schema already provides a concrete example filter_json with nombre/columna/tabla/tipo keys. The description adds no meaning beyond that, so the baseline of 3 applies; it never explains how 'tipo' or 'nombre' affect the returned values.

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 states a specific verb and resource: 'Get distinct values' for 'a filter column'. An agent can tell this returns the value list backing a filter selector, but nothing distinguishes it from nearby tools like get_table_columns or build_filter_config.

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 statement of when to call this versus build_filter_config, get_table_columns, or run_query_with_filters, and no prerequisites or exclusions. The agent must infer the position of this tool in the filter-construction workflow entirely from the name.

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