Skip to main content
Glama

upsert_countries_batch

Insert or update multiple sovereign countries within a specified continent in one batch call, keeping geopolitical catalog data current without individual requests.

Instructions

Batch insert or update sovereign countries scoped to a specific continent.

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": {
      "continent_id": "<continent_id>",
      "countries": "<countries>"
    },
    "name": "upsert_countries_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
countriesYesArray of countries to upsert
continent_idYesContinent ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and does not meet it: it never states the conflict/matching key that decides insert vs update, whether existing countries outside the payload are untouched, whether the operation is atomic across the array, or what permissions are needed. 'Upsert' signals a mutation but the consequences of that mutation are undisclosed.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its terseness for a batch mutation borders on under-specification rather than optimal sizing.

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

Completeness2/5

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

For a multi-record write tool with no annotations and no output schema, the description leaves key operational questions open: upsert key semantics, partial-failure behavior, and what the caller gets back. An agent could invoke it but could not predict the result.

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 description coverage is 100%, so both parameters are already documented, and the description only adds the notion that continent_id scopes the whole batch. It does not explain how the nested 'name' field drives matching or what themes/description do on an update, so no real meaning is added beyond the schema.

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

Purpose4/5

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

States a specific verb (batch insert or update), resource (sovereign countries), and scope (a specific continent), which is enough to distinguish it from upsert_cities_batch and upsert_continents_batch by resource alone. It does not, however, clarify how it relates to create_country or populate_countries_bulk, so sibling differentiation is only partial.

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

Usage Guidelines2/5

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

The word 'Batch' implies the tool is for multiple countries at once, but there is no explicit when-to-use statement, no exclusion against single-record create_country, and no mention of when upsert is preferred over the populate_* bulk tools. An agent must infer the selection rule from the name.

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