geoagent-lebanon
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GEOAGENT_AUDIT_LOG | No | Path to the optional, append-only JSONL audit log file that records every tool call made through the CLI, MCP server, or QGIS panel. Setting this to an empty string disables audit logging. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_placesA | List named places (Arabic or English) that have reference blocks, with counts of blocks by label. Optional name filter and governorate. |
| change_summaryA | Summarise the reference-block evidence of change between 2018 and 2025 for a place name (Arabic/English) or a block id. Returns raw counts, change types and caveats; never extrapolates to the whole place. |
| block_evidenceB | Full evidence for one reference block id (E001..E200): location, annotators, adjudication, change type, human check, image sheet. |
| uncertaintyC | Deferral assessment: which blocks of a place / block id should be deferred to a human reviewer, and why; plus model-level conformal deferral rates. |
| compare_placesB | Compare the change evidence of two places side by side; refuses to rank when there are fewer than 5 blocks per place. |
| query_blocksA | 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). |
| blocks_nearB | Reference blocks whose centre lies within radius_km (default 1, max 50) of a WGS84 point, nearest first, with distances and label counts; optional label filter (English or Arabic). Sample blocks only. |
| area_estimateB | Design-weighted share of blocks with change in an AOI (beirut / mount_lebanon) and/or governorate with a stratified-bootstrap 95% interval. |
| audit_statusB | Report the completed Appendix G two-reviewer human audit (protocol specified blinding): sample size, agreement, which blocks' final label differs from the AI-consensus label, the correlated-error test result, and the resulting audited re-analysis (headline AUC comparison and the recalibrated changed-area estimate). All values are read from the audit's own result files; nothing is recomputed. |
| map_catalogA | List the 5 static executive defense maps (PDF/PNG): title, local path, what each shows, its report section, when to open it in a defense, its talking point, and its caveat. Map files live in the full local project GIS bundle, not the packaged GitHub repo; |
| block_demoB | Defense-ready summary for one block id: AI-consensus label, human-audit label and agreement status if audited, why the block matters (e.g. E137/E199 as the two Rule 1 pivotal flips, or a still-contested block), which map(s) show it, its evidence-book image reference, a plain-language explanation, and caveats. |
| human_block_lookupA | Look up one HUMAN-reviewed block (of 300): human reference label, label class, reviewer agreement, model scores. Read-only. Not AI-consensus. |
| human_label_provenanceB | State who/what produced a human label and what is NOT documented (names, dates, blindness). Read-only. |
| human_reviewer_agreementB | Counts by label class (concordant / adjudicated / unresolved) and reported kappa, optionally per governorate. |
| human_unresolvedB | List the 13 blocks the two-reviewer process could not resolve and their later single-rater labels, flagged as the weakest human class. |
| model_vs_humanC | Compare spectral and DINOv2 score decisions with the human label for one block (percentile and prevalence-matched display rule). |
| human_regional_performanceA | AUROC of spectral and DINOv2 scores against human labels, nationwide or per governorate, with post hoc warnings; refuses when a class has fewer than 5 blocks. include_single_rater=false excludes the 13 single-rater labels. |
| building_footprint_evidenceB | OSM 2022 building count for a human-reviewed block with completeness warning; zero is not proof of absence. |
| damage_claim_checkC | Checks whether a damage claim can be supported by the project data (it cannot) and says what is needed. |
| human_query_blocksA | 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. |
| human_blocks_nearB | Human-reviewed blocks within radius_km of a WGS84 point (validates Lebanon bounds), nearest first, with labels and classes. |
| human_dataset_scopeB | Scope, counts and limitations of the 300-block human reference set; states that no write tool exists. |
| osm_block_historyB | Mapped OSM building history of one reviewed block (2018-09-15, 2025-09-15, 2022): counts, covered area, transition categories, with the mapping-vs-physical caveat. Read-only. |
| osm_mapping_vs_physicalA | Explains why an OSM mapping change is not a physical building change and what evidence would be needed. Read-only. |
| osm_building_free_statusB | Status of a block with zero mapped footprints: never 'building-free' without imagery review. Read-only. |
| osm_vs_scoresC | Blocks where the OSM change and the spectral score disagree. kind: osm_increase_low_spectral | high_spectral_no_osm_change. |
| osm_region_coverageB | Mapped-footprint counts and growth by governorate, 2018 vs 2025 (mapping imbalance, not construction). Read-only. |
| osm_contradictionsB | Blocks where OSM evidence and the human label or model scores contradict each other. Read-only. |
| osm_physical_verificationA | Physical verification status of OSM building changes: always 'pending' (no dated imagery review exists). Read-only. |
| osm_zero_footprint_summaryA | Counts of the 300 reviewed blocks with zero MAPPED OSM footprints in 2018, 2022, 2025 and in all three (optionally by governorate). Never 'building-free'. Read-only. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 30 tools
Several near-parallel pairs exist that an agent must disambiguate by fine print: query_blocks vs human_query_blocks, blocks_near vs human_blocks_near, block_evidence vs human_block_lookup vs block_demo, and a cluster of OSM tools (osm_building_free_status, osm_zero_footprint_summary, building_footprint_evidence, osm_physical_verification) that all restate the same 'zero/pending is not proof' caveat. Descriptions do distinguish them (reference blocks vs human-reviewed 300, evidence dump vs defense summary), but the boundaries are subtle enough that misselection is likely.
All snake_case, but prefixing is inconsistent: domain-prefixed tools (human_*, osm_*, map_*, block_*) sit alongside unprefixed ones (query_blocks, blocks_near, uncertainty, change_summary, compare_places, area_estimate, audit_status) that belong to the same families. The result is readable but unpredictable — e.g. query_blocks has a human_ counterpart while blocks_near does not follow the same scheme for its human twin.
30 tools for a read-only block-evidence dataset is heavy, and the count is inflated by pedantic explainer/caveat tools (osm_mapping_vs_physical, osm_physical_verification, damage_claim_check, human_label_provenance) that are documentation rather than operations. Much of this could collapse into a few parameterized query/evidence tools.
Coverage of the stated domain is strong: place listing, block evidence, filtered counting, proximity, area estimation, uncertainty/deferral, human audit, model comparison, OSM evidence, and map catalog all exist, and the absence of write tools is documented as intentional. Minor gaps remain (no explicit annotator/stratum or imagery-catalog listing, no export/serialization path), but agents can work around them.