Skip to main content
Glama

Explain what the banner does for visitors from one country or state

account.explainRegion
Read-only

Read-only. For one of your apps and one place — a country (DE, GB, US) or a subdivision (US-CA, US-TX, CA-QC) — says which region rule the banner applies, whether recognised non-essential scripts wait for the visitor's choice where the region requires consent first, whether the Do Not Sell link and the banner show, and whether a stored per-country setting ("Opt-in", "Opt-out" or "No banner", stored as geoRules; old name countryExceptions) and Default for other places ("Ask first" or "Our default") are really in force (only on the New engine, the Professional plan, with geolocation on and the Manual location method; absent = Manual, and Managed ignores them). On the New engine the banner's own law table decides each law's places and defaults, and Managed also asks first in the places where our research finds the law expects consent first (for example Brazil, Quebec and Nigeria). Answers describe the page once the live or cached configuration has loaded and the visitor's location is known, on any install that loads the New engine script. No per-country setting applies until the visitor's location is known. Every new browser tab starts without the location, returning visitors included, and gets it from a lookup after the page has started. On the New engine with region rules on, a visitor whose location is not known yet is asked first, on either location method; with region rules off, the page's own blocking setting decides (unset holds). Opt-out takes effect only once the configuration has loaded. It copies the banner's own matching logic, reads the app's published configuration and says plainly where the answer depends on how the page is set up, which it cannot see. Call account.listApps first if you do not have the AppID. Per-country settings are set in the dashboard only (Configuration → Laws): these tools do not write them.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "AppID": "<AppID>",
      "place": "<place>"
    },
    "name": "account.explainRegion"
  }
}

Input Schema

NameRequiredDescriptionDefault
AppIDYesThe app to explain. Get it from account.listApps rather than asking the customer.
placeYesWhere the visitor is: a two-letter ISO country code (DE, GB, BR, US), optionally with a subdivision: a US state (US-CA, US-TX) or Quebec (CA-QC). Case does not matter. The United Kingdom is GB, not UK. A bare US answers for California and for the rest of the US separately.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

With only readOnlyHint available, the description carries the burden and adds substantial operational context: New engine, Professional plan, geolocation, and Manual-location dependencies; Managed versus New engine law-table behavior; location-unknown fallbacks; opt-out timing; and its inability to see the page's own setup. It also clarifies that it reads published configuration and never writes per-country settings.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a long, dense paragraph with nested conditionals and parentheticals that bury key operational caveats. It could be substantially trimmed or structured into bullets to make the core purpose and prerequisites easier to scan.

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?

For a two-parameter but behaviorally complex tool with no output schema, it is quite complete: it explains what the answer covers, configuration and location prerequisites, engine and plan dependencies, and its own blind spot. The main omission is the exact response shape, although the answer contents are enumerated well enough for an agent to know what to expect.

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 coverage is 100%, so the baseline is 3. The description reinforces that AppID comes from account.listApps and gives place examples, but those details are already present in the schema; it adds little format or edge-case meaning beyond the schema descriptions.

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?

The opening sentence names the exact unit of analysis—one app and one country or subdivision—and enumerates the concrete facts returned: applicable region rule, script blocking, Do Not Sell link visibility, stored per-country setting, and default. It also marks the tool as read-only and contrasts it with dashboard-only write paths, so it is distinguishable from configuration-changing siblings.

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?

It gives a clear prerequisite (call account.listApps first when AppID is unknown) and a when-not signal (per-country settings are dashboard-only; these tools do not write them). However, it never explicitly names the read-only sibling to use for adjacent tasks, so the agent must infer the boundary with tools like account.previewBanner or account.getConsentSummary.

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