Skip to main content
Glama
il-opendata-mcp

il-opendata-mcp

by Shtibel1

List distinct values of a field

list_field_values

Retrieve distinct, sorted values for a data.gov.il datastore field to discover valid filter options before searching or counting records.

Instructions

Distinct values of one field in a data.gov.il datastore resource (datastore_search with distinct=true), sorted, optionally under q/filters. Use it to discover valid filter values (statuses, cities, manufacturers) before search_records or count_records. limit caps the rows CKAN scans (default 100, max 1000); complete=false means the list is partial.

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": {
      "resource_id": "<resource_id>",
      "field": "<field>"
    },
    "name": "list_field_values"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoFull-text search across the datastore
fieldYesField name from describe_resource
limitNoMaximum values to return (default 100, max 1000)
filtersNoExact-match field filters. A list means "any of these", e.g. { "tozeret_nm": ["טויוטה יפן", "מאזדה יפן"], "shnat_yitzur": 2026 }
resource_idYesCKAN resource UUID with datastore_active=true

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose real behavior: results are sorted, limit caps rows scanned rather than values returned, default 100 with a 1000 ceiling, and complete=false signals a truncated list. It omits permissions/auth requirements and error behavior, but the completeness caveat is exactly the kind of thing an agent cannot infer elsewhere.

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?

Three dense sentences, front-loaded with what the tool returns and how, then usage, then the limit/completeness caveat. No filler, no restatement of the title, and each clause adds information.

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

Completeness4/5

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

There is no output schema, so the description must explain returns, and it does cover sorting and the partial-results flag. It could be slightly more explicit about the response shape (e.g. a flat list of distinct values plus completeness metadata), but for a five-parameter read tool this is close to sufficient.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline would be 3, but the description adds genuine semantics the schema lacks: that limit bounds scanned rows instead of returned values, and that the response carries a completeness flag. This also flags a subtle tension with the schema's wording of limit as 'Maximum values to return', which the description usefully reframes.

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?

States a specific verb and resource ('Distinct values of one field in a data.gov.il datastore resource'), names the underlying API call (datastore_search with distinct=true), and distinguishes itself from search_records and count_records by name. An agent can tell what it returns and how it differs from siblings without opening any schema.

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 an explicit use case: 'Use it to discover valid filter values (statuses, cities, manufacturers) before search_records or count_records', which routes the agent to a workflow rather than a bare call. It stops short of stating when not to use it (e.g. when full records are needed), so it is clear context without full exclusion rules.

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