MCP server providing tools to query climate emissions data for countries, including emissions by year, asset emissions, and population data for per-capita calculations
ClimateTrace MCP Server has significant structural issues that undermine agent usability. The server defines 8 tools with mixed naming conventions, incomplete descriptions, and partially-specified schemas. Most critically, three tools (GetEmissionsTool, GetAssetEmissionsTool, GetPopulationTool) appear to be defined in a separate codebase (composeApp) using a custom agent framework (ai.koog.agents) rather than the standard MCP SDK visible in mcp-server/src/main/kotlin/McpServer.kt. This creates ambiguity about which tools are actually exposed via MCP. The four tools registered in McpServer.kt (get-countries, get-country-asset-emissions, get-emissions, get-population) have inconsistent naming (kebab-case vs PascalCase in separate modules), lack output schema documentation, and have descriptions that are too generic to guide tool selection. Error handling is minimal, most tools return empty strings or bare exceptions without recovery guidance. Parameters accept arrays and strings without enum constraints or validation hints.
Exit the agent session with the specified result. Call this tool to finish the conversation with the user.
Get the asset emission data for a country.
Get the emission data for a country for a particular year.
Get population data for a country by its country code
List of countries
Get total emission information for the given countries (use 3 letter ISO codes)
Get total emission information for the given countries (use 3 letter ISO codes)
Critical: Tool naming inconsistency across codebase. McpServer.kt uses kebab-case (get-countries, get-emissions) while composeApp uses PascalCase (GetEmissionsTool, GetPopulationTool). This inconsistency confuses agents and makes it unclear which tools are canonical. The 54 patterns require consistent verb_noun naming across all tool definitions.
Critical: Duplicate tools with nearly identical functionality. 'get-emissions' and 'GetEmissionsTool' perform the same operation (fetch country emissions for a year). 'get-country-asset-emissions' and 'GetAssetEmissionsTool' are also duplicates. 'get-population' and 'GetPopulationTool' are duplicates. LLMs cannot disambiguate between tools with overlapping functionality and waste reasoning tokens deciding which to call. Consolidate all tools into a single consistent set.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 51 | 2026-07-28+ | v2 |
| 2026-03-09 | D | 51 | - | v1 |
Get the total population for a country (use a 3 letter ISO code). Useful for computing per-capita emissions.
High: Output schemas are completely undocumented. Tools return strings (ClimateTraceTool) or TextContent lists (McpServer) without any schema specification. Agents cannot infer the structure of returned data, making it impossible to chain tools together or extract specific fields. All 8 tools lack return type documentation.
High: Ambiguous tool descriptions. 'get-countries' has description 'List of countries', too generic. Does it return country names, codes, or full metadata? 'get-emissions' and 'get-country-asset-emissions' both say 'Get total emission information for the given countries' with no distinction. Descriptions must answer: What exactly does it return? When should I use this vs a similar tool? The rubric baseline for A+ tools is 100% have non-generic docstrings; this server falls far short.
High: Parameters accept free-form strings without constraints. 'countryCodeList' accepts any array of strings, no enum, no pattern validation, no guidance on format. The description says '3-letter ISO codes' but LLMs frequently hallucinate invalid codes. 'year' is a bare string, no format constraint (ISO 8601? YYYY? Range bounds?). The rubric requires enums for known-set values and format constraints for numeric/date parameters.
High: Minimal error handling. GetPopulationTool catches exceptions and returns empty string, providing no recovery guidance: 'catch (e: Exception) { println("Error: $e"); return "" }'. McpServer.kt tools validate parameters minimally. When 'countryCodeList' is null, they return a terse error message. Agents cannot determine whether to retry, ask the user, or abandon the task. The rubric pattern 'recovery-guide' requires actionable error messages.
Medium: Input schemas incomplete. McpServer.kt tools define properties but do not include 'required' array for all parameters consistently, nor do they specify minLength, pattern, or other validation constraints. GetEmissionsTool, GetAssetEmissionsTool, and GetPopulationTool use Kotlin serialization annotations (@Serializable, @LLMDescription) that are part of a proprietary framework (ai.koog.agents), not standard MCP SDK. These schemas are not visible in the MCP protocol layer and may not be properly exposed.
Medium: Tool composition broken. 'get-countries' returns country name and ID but does not return a standardized 'country_code' field. Downstream tools expect 'countryCodeList', a mismatch. If an agent calls get-countries to discover available codes, it cannot directly feed the response into get-emissions. The rubric pattern 'tool-chain' requires output fields to match downstream tool parameter names.
Medium: ExitTool should not be a standard MCP tool. It has side effects (terminating agent session) but is exposed as a callable tool. This breaks the pattern of tools being idempotent, composable utilities. If an LLM accidentally calls ExitTool, the session ends prematurely. Consider moving this to an agent control mechanism outside the tool set.