Skip to main content
Glama

Select city

zoodex_set_city

Select the city for searches, vendor lists, and checkout, and clear any saved location from a different city.

Instructions

Select the city used for search, vendor lists and checkout. Clears a location that belongs to another city.

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": {
      "city_slug": "<city_slug>"
    },
    "name": "zoodex_set_city"
  }
}

Input Schema

NameRequiredDescriptionDefault
city_slugYesCity slug from zoodex_list_cities, e.g. 'kerman'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

It discloses a genuinely non-obvious side effect: switching to another city clears a previously stored location. That is exactly the kind of state interaction annotations cannot express. There is a mild tension with destructiveHint=false, since the call does discard existing location state, but the hint targets irreversible data destruction rather than derived state reset, so this reads as incomplete rather than contradictory. Persistence across sessions and whether authentication is required are left unspecified.

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 primary effect is front-loaded and the side effect follows immediately. Nothing could be removed without losing information.

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 single-parameter state-setting tool with annotations and no output schema, the definition covers purpose, effect scope, and one important side effect. It is slightly thin on session persistence and the precondition of fetching a valid slug from zoodex_list_cities, which an agent must discover elsewhere.

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% and the single city_slug parameter already carries a format hint and an example ('kerman'), so the description adds no meaning beyond it. Baseline 3 applies when the schema does the heavy lifting and the description does not compensate further.

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 and resource ("Select the city") and scopes the effect to search, vendor lists and checkout, which lets an agent distinguish it from adjacent state-setting tools like zoodex_set_location. It stops short of naming any sibling explicitly, so the differentiation is inferred rather than stated.

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

Usage Guidelines3/5

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

The description implies the tool should be used when you want subsequent search/vendor/checkout operations scoped to a city, but it never gives an explicit when-to-use trigger or any when-not guidance against zoodex_set_location or zoodex_select_address. The prerequisite (obtaining the slug from zoodex_list_cities) appears only in the schema, not the description.

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