Skip to main content
Glama
geoagent-lebanon

geoagent-lebanon

query_blocks

Count or list reference blocks matching combined filters and return counts, design-weighted change share, and optional grouped counts for land-cover change analysis.

Instructions

Count/list reference blocks matching ALL filters (aoi, governorate, label, change_type, stratum, place, label_source agreed|adjudicated, annotator_a, annotator_b, annotators_disagree, min/max_lat, min/max_lon of block centres); returns count, unweighted and design-weighted change share (uncertain excluded) and optional counts by group_by (label|change_type|stratum|aoi|governorate|place_en|label_source).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "query_blocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
aoiNo
langNo
labelNo
placeNo
max_latNo
max_lonNo
min_latNo
min_lonNo
stratumNo
group_byNo
annotator_aNo
annotator_bNo
change_typeNo
governorateNo
label_sourceNo
annotators_disagreeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose non-obvious traits: filters are combined with AND semantics, uncertain blocks are excluded from the change-share computation, and both unweighted and design-weighted shares are produced. It omits operational facts such as permissions, result limits, and whether a block listing (as opposed to counts) can be returned, which the "Count/list" phrasing leaves ambiguous.

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?

It is a single dense sentence, but the key information (verb, resource, AND-filter semantics) is front-loaded and the parentheticals pack the filter and group_by inventories without filler. Readability suffers from nested parentheses, though no sentence is expendable.

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 16-parameter tool with no annotations and no output schema, the description does reasonably well by spelling out filters and the shape of the result set. It still leaves the lang parameter undocumented and says nothing about pagination/limits or when a listing versus a count is returned, which is thin given the tool's complexity and empty structured metadata.

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 0%, so the description must compensate, and it names most of the 16 parameters with meaning added for several: min/max_lat/lon are stated to refer to block centres, and label_source is restricted to "agreed|adjudicated" plus group_by to a concrete value list, neither of which the schema enforces. Gaps remain for lang (auto|en|ar), which is never mentioned, and for the distinction between annotator_a/annotator_b and annotators_disagree.

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 opens with a specific verb+resource pair ("Count/list reference blocks") and enumerates the filter dimensions plus the returned metrics (count, weighted change share, group_by breakdowns), so an agent knows exactly what the tool does. It stops short of distinguishing itself from the sibling human_query_blocks despite the telling "reference" qualifier.

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 use this tool versus blocks_near, human_query_blocks, or area_estimate, and no prerequisites or exclusions are given. The only usage-adjacent signal is the phrase "matching ALL filters", which implies conjunctive filtering but is stated as behavior, not guidance.

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