

Global Governance & Institutional Quality Data
Data
Available ActionsEach successful request consumes credits as outlined below.
query_governance_data10cr
Details
Explore governance and institutional quality data for any country in the world. Look up corruption control scores, rule of law rankings, government effectiveness, political stability, regulatory quality, and civic voice indicators. Compare how countries rank on governance, track institutional improvement over time, and benchmark against regional peers — all from a comprehensive global data set.
Use Cases
Research corruption control scores by country, Compare rule of law rankings across regions, Track government effectiveness over time, Analyze political stability indicators, Study regulatory quality benchmarks, Monitor voice and accountability metrics, Assess governance improvement or decline trends, Compare institutional quality with regional peers, Support risk profiling for investment decisions, Research progress on good governance targets
Connect Your Agent In 5 Min
Watch the setup guide for your platform
Or Install Locally
STDIO connector for Claude Code, Codex, Cursor, Zed, and other LLMs that require STDIO or custom connections. This lightweight connector routes requests to https://api.agentpmt.com/mcp. All tool execution happens in the cloud and the server cannot edit any files on your computer.
npm install -g @agentpmt/mcp-routeragentpmt-setupActions(1)
query_governance_data10cr6 params(1 required)Fetch governance and institutional quality data for a country or region from the World Bank Worldwide Governance Indicators (WGI). Returns six governance dimensions with WGI scores, percentile rankings, historical trends, peer comparisons, and SDG 16 alignment.
query_governance_data10cr6 params(1 required)Fetch governance and institutional quality data for a country or region from the World Bank Worldwide Governance Indicators (WGI). Returns six governance dimensions with WGI scores, percentile rankings, historical trends, peer comparisons, and SDG 16 alignment.
country_or_regionrequiredstringCountry or region name in plain language (e.g., 'United States', 'India', 'Sub-Saharan Africa'). Accepts partial matches and 3-letter ISO codes.
governance_aspectstringGovernance dimension to query. Options: corruption, rule_of_law, effectiveness, stability, regulatory, voice, or all.
Values:
corruptionrule_of_laweffectivenessstabilityregulatoryvoiceall
Default:
allinclude_percentile_ranksbooleanInclude percentile rankings (0-100 scale) for international comparison.
Default:
trueinclude_historical_trendsbooleanInclude historical trends showing improvement or deterioration over time.
Default:
truetime_periodstringTime period: 'latest' (most recent), 'last_5_years', 'last_10_years', a single year 'YYYY', or a range 'YYYY:YYYY'.
Default:
latestinclude_peer_comparisonbooleanInclude comparison with regional and income group peers (World, High Income, Upper Middle Income, Lower Middle Income, Low Income).
Default:
truecurl -X POST "https://api.agentpmt.com/products/purchase" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ********" \
-d '{
"product_id": "6980db7d71cad8f61bf5b1d7",
"parameters": {
"action": "query_governance_data",
"country_or_region": "example_country_or_region",
"governance_aspect": "all",
"include_percentile_ranks": true,
"include_historical_trends": true,
"time_period": "latest",
"include_peer_comparison": true
}
}'import requests
import json
url = "https://api.agentpmt.com/products/purchase"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer ********"
}
data = {
"product_id": "6980db7d71cad8f61bf5b1d7",
"parameters": {
"action": "query_governance_data",
"country_or_region": "example_country_or_region",
"governance_aspect": "all",
"include_percentile_ranks": true,
"include_historical_trends": true,
"time_period": "latest",
"include_peer_comparison": true
}
}
response = requests.post(url, headers=headers, json=data)
print(response.status_code)
print(response.json())const url = "https://api.agentpmt.com/products/purchase";
const headers = {
"Content-Type": "application/json",
"Authorization": "Bearer ********"
};
const data = {
product_id: "6980db7d71cad8f61bf5b1d7",
parameters: {
"action": "query_governance_data",
"country_or_region": "example_country_or_region",
"governance_aspect": "all",
"include_percentile_ranks": true,
"include_historical_trends": true,
"time_period": "latest",
"include_peer_comparison": true
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));const axios = require('axios');
const url = "https://api.agentpmt.com/products/purchase";
const headers = {
"Content-Type": "application/json",
"Authorization": "Bearer ********"
};
const data = {
product_id: "6980db7d71cad8f61bf5b1d7",
parameters: {
"action": "query_governance_data",
"country_or_region": "example_country_or_region",
"governance_aspect": "all",
"include_percentile_ranks": true,
"include_historical_trends": true,
"time_period": "latest",
"include_peer_comparison": true
}
};
axios.post(url, data, { headers })
.then(response => {
console.log(response.status);
console.log(response.data);
})
.catch(error => {
console.error("Error:", error.message);
});Login to view your API and budget keys. The example above uses placeholder values. Sign in to see personalized code with your bearer token.
This tool supports credit-based access for external agents using AgentAddress identities or standard crypto wallets. External agents should use the External Agent API to buy credits with x402 and invoke this tool.
1. Buy Credits
Purchase credits via x402 payment (500 credit minimum, 100 credits = $1).
# Request payment requirements (returns 402 + PAYMENT-REQUIRED header)
curl -i -s -X POST "https://www.agentpmt.com/api/external/credits/purchase" \
-H "Content-Type: application/json" \
-d '{ "wallet_address":"0xYOUR_WALLET", "credits": 500, "payment_method":"x402" }'
# Sign the EIP-3009 authorization, then retry with signature header
curl -s -X POST "https://www.agentpmt.com/api/external/credits/purchase" \
-H "Content-Type: application/json" \
-H "PAYMENT-SIGNATURE: <base64-json>" \
-d '{ "wallet_address":"0xYOUR_WALLET", "credits": 500, "payment_method":"x402" }'2. Create a Session Nonce (nonce used in signed balance/invoke)
curl -s -X POST "https://www.agentpmt.com/api/external/auth/session" \
-H "Content-Type: application/json" \
-d '{ "wallet_address":"0xYOUR_WALLET" }'3. Invoke This Tool
Sign the message with your wallet (EIP-191 personal-sign), then POST to the invoke endpoint.
# Sign this message (wallet MUST be lowercased):
# agentpmt-external
# wallet:0xyourwallet...
# session:<session_nonce>
# request:<request_id>
# method:POST
# path:/external/tools/governance-institutional-quality/actions/<actionSlug>/invoke
# payload:<sha256(canonical_json(parameters))>
curl -s -X POST "https://www.agentpmt.com/api/external/tools/governance-institutional-quality/actions/<actionSlug>/invoke" \
-H "Content-Type: application/json" \
-d '{
"wallet_address": "0xYOUR_WALLET",
"session_nonce": "<session_nonce>",
"request_id": "invoke-uuid",
"signature": "0x<signature>",
"parameters": {
"your_param": "value"
}
}'Usage Instructions
Usage guidance provided directly by the developer for this product.
Governance & Institutional Quality Data
Access comprehensive governance data from the World Bank's Worldwide Governance Indicators (WGI) database covering 200+ countries. Query six core governance dimensions with WGI scores, percentile rankings, historical trends, and peer comparisons using natural language country names.
Actions
query_governance_data
Fetch governance indicator data for a country or region.
Required Parameters:
action(string): Must be"query_governance_data"country_or_region(string): Country or region name in plain language (e.g.,"United States","India","Sub-Saharan Africa")
Optional Parameters:
governance_aspect(string, default:"all"): Governance dimension to query. One of:"corruption"- Control of corruption indicators"rule_of_law"- Rule of law and legal institutions"effectiveness"- Government effectiveness and service delivery"stability"- Political stability and absence of violence"regulatory"- Regulatory quality and business environment"voice"- Voice and accountability, democratic participation"all"- All 6 WGI dimensions
include_percentile_ranks(boolean, default:true): Include percentile rankings (0-100 scale) for international comparisoninclude_historical_trends(boolean, default:true): Include historical trends showing improvement or deterioration over timetime_period(string, default:"latest"): Time period for data. Options:"latest"- Most recent available data"last_5_years"- Last 5 years of data"last_10_years"- Last 10 years of data"YYYY:YYYY"- Specific year range (e.g.,"2015:2020"). Years must be between 1960 and current year."YYYY"- A single year (e.g.,"2020")
include_peer_comparison(boolean, default:true): Include comparison with regional and income group peers (World, High Income, Upper Middle Income, Lower Middle Income, Low Income)
Example - Latest governance for a country:
{
"action": "query_governance_data",
"country_or_region": "United States",
"governance_aspect": "all",
"time_period": "latest"
}
Example - Corruption trends over time:
{
"action": "query_governance_data",
"country_or_region": "India",
"governance_aspect": "corruption",
"time_period": "last_10_years",
"include_historical_trends": true
}
Example - Rule of law with peer comparison:
{
"action": "query_governance_data",
"country_or_region": "Kenya",
"governance_aspect": "rule_of_law",
"time_period": "latest",
"include_peer_comparison": true
}
Example - Political stability for a specific range:
{
"action": "query_governance_data",
"country_or_region": "Brazil",
"governance_aspect": "stability",
"time_period": "2015:2020",
"include_percentile_ranks": true
}
Example - Regional aggregate data:
{
"action": "query_governance_data",
"country_or_region": "Sub-Saharan Africa",
"governance_aspect": "effectiveness",
"time_period": "latest"
}
Supported Countries and Regions
Accepts plain-language names. Examples of supported inputs:
- Countries:
"United States","USA","India","Germany","Nigeria","Brazil","Japan","Kenya","Singapore","South Africa", etc. (200+ countries) - Regions:
"Sub-Saharan Africa","Latin America","Middle East","South Asia","East Asia","Europe" - Income groups:
"Low Income","Lower Middle Income","Upper Middle Income","High Income","OECD" - Global:
"World"or"Global" - ISO3 codes: 3-letter codes like
"USA","IND","GBR"are also accepted
Country names support partial matching, so "UK" maps to United Kingdom and "America" maps to USA.
Six Governance Dimensions (WGI)
- Voice and Accountability (
"voice"): Citizen participation, freedom of expression, media independence - Political Stability (
"stability"): Likelihood of political instability and violence/terrorism - Government Effectiveness (
"effectiveness"): Quality of public services, civil service, policy formulation and implementation - Regulatory Quality (
"regulatory"): Government ability to formulate and implement sound policies promoting private sector development - Rule of Law (
"rule_of_law"): Confidence in rules of society, contract enforcement, property rights, courts, likelihood of crime/violence - Control of Corruption (
"corruption"): Extent to which public power is exercised for private gain
Response Structure
Responses include:
- WGI scores on a -2.5 (weak) to +2.5 (strong) scale with score category and interpretation
- Percentile ranks from 0 (lowest) to 100 (highest) for global positioning
- Overall governance score (average of the 6 dimensions)
- Historical trends with direction (improving/deteriorating/stable), magnitude, and absolute change
- Peer comparisons against World, High Income, Upper Middle Income, Lower Middle Income, and Low Income group averages
- Insights including strongest/weakest dimensions, corruption analysis, political stability assessment, trajectory assessment
- SDG 16 alignment (Peace, Justice and Strong Institutions)
WGI Score Interpretation
| Score Range | Category | Meaning |
|---|---|---|
| +1.5 to +2.5 | Very Strong | Excellent governance performance |
| +0.5 to +1.5 | Strong | Good governance performance |
| -0.5 to +0.5 | Moderate | Average governance performance |
| -1.5 to -0.5 | Weak | Below-average governance performance |
| -2.5 to -1.5 | Very Weak | Poor governance performance |
Percentile Rank Interpretation
| Rank Range | Meaning |
|---|---|
| 90-100 | Top 10% globally |
| 75-89 | Top quartile globally |
| 50-74 | Above median globally |
| 25-49 | Below median globally |
| 10-24 | Bottom quartile globally |
| 0-9 | Bottom 10% globally |
Workflows
- Country Risk Assessment: Query all governance indicators for a country, review overall score and weakest dimensions, compare against peer income group
- Anti-Corruption Analysis: Use
governance_aspect: "corruption"withtime_period: "last_10_years"to track corruption control trends - Regional Comparison: Query the same aspect for multiple countries or regions to compare governance performance
- Democratic Governance Monitoring: Focus on
"voice"aspect with historical trends to track democratic participation over time - Investment Due Diligence: Query
"all"aspects with peer comparison enabled to benchmark a country against its income group
Notes
- Data sourced from the World Bank Worldwide Governance Indicators (WGI), based on 30+ underlying data sources from diverse institutions
- Indicators reflect perceptions from citizen surveys, businesses, and experts -- they are not objective measurements
- Data updated annually with approximately a 1-year lag
- Standard error indicators are available internally for confidence intervals
- When
include_percentile_ranksis set tofalse, rank indicators are filtered out from the response - If an unrecognized country name is provided, the tool returns an error with guidance on valid inputs
- Data coverage varies by country; some may have limited historical data
- When querying with
time_period: "latest", only the single most recent data point is returned per indicator - Trend analysis requires at least 2 valid data points; trends are classified by magnitude (Significant >= 1.0, Moderate >= 0.5, Slight < 0.5)
- Peer comparison fetches data for World, High Income, Upper Middle Income, Lower Middle Income, and Low Income groups for the core (non-rank, non-standard-error) indicators





