Skip to main content
Glama

List countries

list_countries
Read-onlyIdempotent

List every country a listed product is based in, with how many and its page, most products first. Its code is the country filter of search_products.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_countries"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
countriesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered; the description adds the ordering rule (most products first) and the fact that results carry a product count. However, "with how many and its page" is compressed and ambiguous — it is unclear whether "page" is a pagination cursor, a URL slug, or a paging window, and nothing is said about whether all countries or only a paged subset is returned.

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 short sentences with no filler: the first defines the result set and ordering, the second supplies the integration detail. The most decision-relevant information (scope and ordering) is front-loaded.

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 and rich annotations, the description does not need to enumerate return fields, and it correctly focuses on scope, ordering, and downstream usage. The only residual gap is the ambiguous phrasing about "its page" and whether results are paginated, which the output schema presumably resolves.

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?

The tool takes no parameters, so there is nothing for the description to disambiguate beyond what the empty schema already conveys. Baseline 4 applies; the sentence about the `country` filter meaningfully explains how the output value is consumed downstream.

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?

Names a specific verb and resource ("List every country") and narrows the scope to countries that a listed product is based in, so an agent knows this is not an unfiltered geography reference. It also states the sort order ("most products first") and ties the returned codes to a concrete field, making it distinguishable from siblings like list_categories or list_facets.

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?

The final sentence establishes the natural follow-up: returned country codes plug directly into the `country` filter of search_products, which tells the agent both why and when to call this tool. There is no explicit negative guidance (e.g., not for filtering by other facets), but the use context is clear enough to act on.

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