Skip to main content
Glama
geoagent-lebanon

geoagent-lebanon

human_query_blocks

Count human-reviewed change blocks by governorate, label, OSM-zero status, or flagged-cadastral membership; optionally group and rank by spectral score, DINOv2 score, or 2022 building count.

Instructions

Count human-reviewed blocks by governorate, label (change/no_change), label_class, OSM-zero flag and flagged-cadastral-unit membership, with optional group_by, and optional ranking (rank_by spectral score, DINOv2 score or 2022 OSM building count; top_n). Unweighted; read-only.

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": "human_query_blocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNo
labelNo
top_nNo1-20, default 5
rank_byNoreturn the top_n matching blocks ranked descending by this field
group_byNo
osm_zeroNo
governorateNo
label_classNo
in_flagged_unitsNotrue/false: block lies / does not lie in one of the 35 flagged cadastral units (context flag, not damage); lists matching block_ids

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden, and it does disclose two useful traits: 'Unweighted' (counts are not population/weight-adjusted) and 'read-only'. It does not say what the response looks like (grouped counts? block_ids for in_flagged_units? ordering when no rank_by is given), which is a real gap for a tool with no output schema.

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 dense sentence followed by the 'Unweighted; read-only' qualifier — front-loaded and free of filler. The nested parentheticals make it slightly harder to parse but every clause carries information about a filter or option.

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 9-parameter, zero-required, un-annotated tool with no output schema, the description covers the counting dimensions and ranking semantics well but omits the return shape and the role of 'lang'. An agent can form a correct call but not fully predict the response.

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 only 33%, so the description must compensate, and it largely does: it explains the label values (change/no_change), the OSM-zero flag, flagged-cadastral-unit membership (repeated from schema), group_by, and the three rank_by options with top_n. It leaves 'lang' and the exact accepted form of 'label_class' and 'governorate' unexplained.

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 and resource ('Count human-reviewed blocks') and enumerates the dimensions being counted (governorate, label, label_class, OSM-zero, flagged-unit membership). The 'human-reviewed' qualifier implicitly separates it from the generic query_blocks sibling, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the enumeration of filters plus 'optional group_by' and 'optional ranking' signals this is an aggregation tool. There is no explicit statement of when to prefer it over query_blocks, human_block_lookup, or human_regional_performance, and no exclusions or prerequisites.

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