Skip to main content
Glama
marsaplatform

Malja MCP

Official

Search country

search_country
Read-only

Resolve free-text country names, codes, or aliases to canonical names and ISO3 codes before querying humanitarian datasets. Handles English and Arabic spelling variants.

Instructions

Resolve a free-text country query ("egypt", "DRC", "syria") to canonical names and ISO3 codes. Use this first when unsure how a country is spelled in the data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax matches (default 5)
queryYesCountry name fragment, ISO2/ISO3 code or alias
localeNoLanguage of the human-readable text output: "en" (default) or "ar" (Modern Standard Arabic, right-to-left). Structured JSON fields, ISO3 codes and dataset ids stay in English either way.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
matchesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds that resolution yields canonical names plus ISO3 codes, but says nothing about matching behavior (fuzzy vs exact), multiple-match/disambiguation handling, or ranking — useful context that would lower ambiguity for a resolver tool.

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?

Two sentences, zero waste. The resolution behavior is front-loaded and the usage cue follows immediately.

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?

With an output schema present, return values need not be described, and all three parameters plus annotations are documented. The one gap is disambiguation behavior when a query matches several countries, which an agent calling a resolver would benefit from knowing.

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%, documenting query, limit (max 20, default 5), and locale (en/ar with RTL note), so the baseline is 3. The description's examples ("egypt", "DRC", "syria") loosely illustrate that query accepts fragments and abbreviations, but add no syntax or format detail beyond the schema.

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?

States a specific verb (resolve) and resource (free-text country query) and names the output form — canonical names and ISO3 codes — with three concrete query examples. It does not explicitly differentiate itself from country-consuming siblings like country_profile or compare_countries, so it falls short of a 5.

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?

"Use this first when unsure how a country is spelled in the data" gives a clear triggering condition and positions the tool as a pre-step. It names no alternatives or when-not conditions (e.g., when an ISO3 is already known), so it stops short of explicit routing.

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