Skip to main content
Glama

Power compatibility

check_power_compatibility
Read-onlyIdempotent

Does a traveller need a plug adapter or voltage converter? verdict {adapter: not_needed | needed | depends_on_plug, converter: not_needed | usually_not_needed | needed_for_single_voltage_devices | unknown, plug_fit[], frequency_note, guidance}, computed from cited plug, voltage and frequency facts (inputs[], with sources and confidence; top-level confidence is their lowest). Plug fit is conservative. For raw power facts use get_country_facts; for a whole trip get_trip_brief (includes this verdict per destination). Parameters: home_country is where the devices were bought (their plugs and rating), not nationality; destination is where they will be plugged in. Example: {"home_country":"GB","destination":"US"}. Read-only; keyless (free key or x402 lifts limits: https://citedtravel.com/pricing/); errors RFC 9457.

Input Schema

NameRequiredDescriptionDefault
langNoLanguage for localized names (BCP 47). Supported: en, ja, zh-Hans, zh-Hant; aliases such as zh, zh-CN, zh-TW and zh-HK are mapped, and anything else falls back to English. Only names are localized; verbatim official quotes stay in their original language.en
destinationYesDestination country as an ISO 3166-1 alpha-2 or alpha-3 code, case-insensitive (e.g. JP, jp or JPN). Names are not accepted: resolve them with resolve_country first.
home_countryYesCountry where the traveller's devices come from as an ISO 3166-1 alpha-2 or alpha-3 code, case-insensitive (e.g. JP, jp or JPN). Names are not accepted: resolve them with resolve_country first.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / destination / description
      Previous value: -"Country where the devices will be plugged in as an ISO 3166-1 alpha-2 or alpha-3 code, case-insensitive (e.g. JP, jp or JPN). Names are not accepted: resolve them with resolve_country first."New value: +"Destination country as an ISO 3166-1 alpha-2 or alpha-3 code, case-insensitive (e.g. JP, jp or JPN). Names are not accepted: resolve them with resolve_country first."
    • changedInput schema / properties / home_country / description
      Previous value: -"Country where the traveller's devices were bought (sets their plug type and voltage rating) as an ISO 3166-1 alpha-2 or alpha-3 code, case-insensitive (e.g. JP, jp or JPN). Names are not accepted: resolve them with resolve_country first."New value: +"Country where the traveller's devices come from as an ISO 3166-1 alpha-2 or alpha-3 code, case-insensitive (e.g. JP, jp or JPN). Names are not accepted: resolve them with resolve_country first."
  2. Changed2 schema fields changed
    • changedInput schema / properties / destination / description
      Previous value: -"Destination country as an ISO 3166-1 alpha-2 or alpha-3 code, case-insensitive (e.g. JP, jp or JPN). Names are not accepted: resolve them with resolve_country first."New value: +"Country where the devices will be plugged in as an ISO 3166-1 alpha-2 or alpha-3 code, case-insensitive (e.g. JP, jp or JPN). Names are not accepted: resolve them with resolve_country first."
    • changedInput schema / properties / home_country / description
      Previous value: -"Country where the traveller's devices come from as an ISO 3166-1 alpha-2 or alpha-3 code, case-insensitive (e.g. JP, jp or JPN). Names are not accepted: resolve them with resolve_country first."New value: +"Country where the traveller's devices were bought (sets their plug type and voltage rating) as an ISO 3166-1 alpha-2 or alpha-3 code, case-insensitive (e.g. JP, jp or JPN). Names are not accepted: resolve them with resolve_country first."
  3. Changed10 schema fields changed
    • changedInput schema / properties / destination / description
      Previous value: -"Country as ISO 3166-1 alpha-2 or alpha-3 code, e.g. JP or JPN. Use resolve_country for names."New value: +"Destination country as an ISO 3166-1 alpha-2 or alpha-3 code, case-insensitive (e.g. JP, jp or JPN). Names are not accepted: resolve them with resolve_country first."
    • addedInput schema / properties / destination / examples
      Added value: +[
      +  "JP",
      +  "GB",
      +  "USA"
      +]
    • addedInput schema / properties / destination / pattern
      Added value: +"^[A-Za-z]{2,3}$"
    • changedInput schema / properties / home_country / description
      Previous value: -"Country as ISO 3166-1 alpha-2 or alpha-3 code, e.g. JP or JPN. Use resolve_country for names."New value: +"Country where the traveller's devices come from as an ISO 3166-1 alpha-2 or alpha-3 code, case-insensitive (e.g. JP, jp or JPN). Names are not accepted: resolve them with resolve_country first."
    • addedInput schema / properties / home_country / examples
      Added value: +[
      +  "JP",
      +  "GB",
      +  "USA"
      +]
    • addedInput schema / properties / home_country / pattern
      Added value: +"^[A-Za-z]{2,3}$"
    • addedInput schema / properties / lang / default
      Added value: +"en"
    • changedInput schema / properties / lang / description
      Previous value: -"Response language (BCP 47). Supported: en, ja, zh-Hans, zh-Hant; falls back to English. Verbatim official quotes always stay in their original language."New value: +"Language for localized names (BCP 47). Supported: en, ja, zh-Hans, zh-Hant; aliases such as zh, zh-CN, zh-TW and zh-HK are mapped, and anything else falls back to English. Only names are localized; verbatim official quotes stay in their original language."
    • addedInput schema / properties / lang / examples
      Added value: +[
      +  "en",
      +  "ja",
      +  "zh-Hans",
      +  "zh-Hant"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "attribution": {
      +          "description": "Attribution strings to show to users when you display these facts.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "confidence": {
      +          "description": "Lowest confidence among the input facts.",
      +          "properties": {
      +            "level": {
      +              "examples": [
      +                "high",
      +                "medium",
      +                "low"
      +              ],
      +              "type": "string"
      +            },
      +            "reasons": {
      +              "description": "Why the score is what it is.",
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "score": {
      +              "maximum": 1,
      +              "minimum": 0,
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "score",
      +            "level"
      +          ],
      +          "type": "object"
      +        },
      +        "dataset_version": {
      +          "description": "Version of the dataset that answered.",
      +          "type": "string"
      +        },
      +        "disclaimer": {
      +          "description": "Informational-use disclaimer.",
      +          "type": "string"
      +        },
      +        "from": {
      +          "description": "Country (ISO codes and name, localized to lang).",
      +          "properties": {
      +            "iso2": {
      +              "type": "string"
      +            },
      +            "iso3": {
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            },
      +            "name_lang": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "iso2"
      +          ],
      +          "type": "object"
      +        },
      +        "inputs": {
      +          "description": "The plug, voltage and frequency facts the verdict was computed from.",
      +          "items": {
      +            "properties": {
      +              "confidence": {
      +                "description": "Deterministic confidence: score from 0 to 1, a level, and the reasons (source kind, cross-checks, staleness...).",
      +                "properties": {
      +                  "level": {
      +                    "examples": [
      +                      "high",
      +                      "medium",
      +                      "low"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "reasons": {
      +                    "description": "Why the score is what it is.",
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "score": {
      +                    "maximum": 1,
      +                    "minimum": 0,
      +                    "type": "number"
      +                  }
      +                },
      +                "required": [
      +                  "score",
      +                  "level"
      +                ],
      +                "type": "object"
      +              },
      +              "id": {
      +                "type": "string"
      +              },
      +              "last_verified": {
      +                "description": "Date the value was last verified (YYYY-MM-DD).",
      +                "type": "string"
      +              },
      +              "sources": {
      +                "description": "Cited sources for this fact.",
      +                "items": {
      +                  "description": "One cited source.",
      +                  "properties": {
      +                    "license": {
      +                      "description": "License of the source, e.g. CC0-1.0, OGL-UK-3.0, MIT.",
      +                      "type": "string"
      +                    },
      +                    "publisher": {
      +                      "type": "string"
      +                    },
      +                    "quote": {
      +                      "description": "Verbatim text from the source, when quoted.",
      +                      "type": "string"
      +                    },
      +                    "retrieved_at": {
      +                      "description": "When the source was fetched (ISO 8601).",
      +                      "type": "string"
      +                    },
      +                    "source_id": {
      +                      "type": "string"
      +                    },
      +                    "source_value": {
      +                      "description": "The raw value as given by the source, when not quoted."
      +                    },
      +                    "url": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "publisher",
      +                    "url",
      +                    "license"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "value": {}
      +            },
      +            "required": [
      +              "id",
      +              "sources",
      +              "confidence",
      +              "last_verified"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "method": {
      +          "type": "string"
      +        },
      +        "to": {
      +          "description": "Country (ISO codes and name, localized to lang).",
      +          "properties": {
      +            "iso2": {
      +              "type": "string"
      +            },
      +            "iso3": {
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            },
      +            "name_lang": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "iso2"
      +          ],
      +          "type": "object"
      +        },
      +        "verdict": {
      +          "properties": {
      +            "adapter": {
      +              "enum": [
      +                "not_needed",
      +                "needed",
      +                "depends_on_plug"
      +              ],
      +              "type": "string"
      +            },
      +            "converter": {
      +              "enum": [
      +                "not_needed",
      +                "usually_not_needed",
      +                "needed_for_single_voltage_devices",
      +                "unknown"
      +              ],
      +              "type": "string"
      +            },
      +            "frequency_note": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "guidance": {
      +              "type": "string"
      +            },
      +            "plug_fit": {
      +              "description": "For each home plug type, the destination socket types it fits.",
      +              "items": {
      +                "properties": {
      +                  "fits_sockets": {
      +                    "description": "Destination sockets this plug fits.",
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "plug": {
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "adapter",
      +            "converter",
      +            "plug_fit"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "from",
      +        "to",
      +        "verdict",
      +        "confidence",
      +        "inputs",
      +        "attribution"
      +      ],
      +      "title": "Result",
      +      "type": "object"
      +    },
      +    {
      +      "description": "Only on error results (isError: true): RFC 9457 problem, e.g. unknown country, no data, key required, rate limited, sanctions block.",
      +      "properties": {
      +        "detail": {
      +          "type": "string"
      +        },
      +        "status": {
      +          "type": "integer"
      +        },
      +        "title": {
      +          "type": "string"
      +        },
      +        "type": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "title",
      +        "status"
      +      ],
      +      "title": "Error (problem details)",
      +      "type": "object"
      +    },
      +    {
      +      "description": "Only on error results (isError: true): x402 v2 payment requirements. Pay and retry with _meta[\"x402/payment\"].",
      +      "properties": {
      +        "accepts": {
      +          "type": "array"
      +        },
      +        "error": {
      +          "type": "string"
      +        },
      +        "extensions": {
      +          "type": "object"
      +        },
      +        "resource": {
      +          "type": "object"
      +        },
      +        "x402Version": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "x402Version",
      +        "accepts"
      +      ],
      +      "title": "Error (x402 payment request)",
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, but the description adds real behavioral context beyond them: keyless access with an x402 upgrade path and a pricing URL, RFC 9457 error format, the rule that top-level confidence is the minimum across inputs, and that plug-fit answers are deliberately conservative.

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?

Front-loaded with the core question and the verdict shape, then routing, then parameter disambiguation, then operational notes. Every element earns its place, though the dense parenthetical syntax (inputs[], confidence, pricing link) makes it slightly harder to scan than it could be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the decision question, the alternative tools, the input semantics, the confidence model, auth/limits and error format, and an output schema exists so return values need not be explained. Nothing an agent needs to call this correctly is missing.

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 description coverage is 100%, so the baseline is 3, but the description adds genuine interpretation the schema lacks: home_country means where the devices were bought (their plugs and rating), not nationality, and destination is where they will be plugged in, plus a literal example call.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a concrete user question ('Does a traveller need a plug adapter or voltage converter?') and then names the exact output shape (verdict with adapter/converter enumerations). It also distinguishes itself from siblings by naming get_country_facts for raw facts and get_trip_brief for whole-trip needs.

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

Usage Guidelines5/5

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

Explicitly routes the agent: 'For raw power facts use get_country_facts; for a whole trip get_trip_brief (includes this verdict per destination).' That is a when-to-use-this vs. when-to-use-alternatives statement with no inference required.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources