Skip to main content
Glama

set_location

Save your country and optional city to a local-only file for location-first routing; it applies when no USER_COUNTRY environment variable is set.

Instructions

Save the user's country (and optional city) for location-first routing. Saved to a LOCAL file only (~/.config/all-mcp/ location.json) — it never leaves this machine. country: "DE" (Germany), "TR" (Türkiye) or "IR" (Iran). Takes effect when no USER_COUNTRY env var is set in the MCP config (the env var wins if both exist). Explicit place names in a question always beat the saved location.

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": {
      "country": "<country>"
    },
    "name": "set_location"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNo
countryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations present, the description carries the full behavioral burden and does well on the two most important axes: it names the exact write target (~/.config/all-mcp/location.json) and guarantees the data never leaves the machine, which matters for a tool that records personal geography. It doesn't disclose whether an existing saved location is overwritten, whether the country value is validated against a fixed set, or what the response looks like if the write fails.

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?

The purpose is front-loaded in the first clause, and the parenthetical file path is placed immediately after the persistence claim where it belongs. The precedence information is packed densely but each sentence earns its place; the parenthetical examples for country codes are the only slightly noisy element.

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?

An output schema exists, so return values need no explanation, and the description covers persistence location, privacy, and precedence — the high-risk facts for a personal-data write tool with no annotations. The remaining gap is write semantics (overwrite vs. merge, validation failures), which an agent might reasonably need before calling.

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 0%, so the description must compensate, and it partially does: it gives concrete country-code examples ('DE', 'TR', 'IR') that clarify the expected format — though it's ambiguous whether that list is exhaustive, and the schema accepts any string. The city parameter is mentioned only as 'optional' with no format guidance (city name vs. code, language, one or many), leaving the second parameter effectively undocumented.

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 description opens with a specific verb and resource: 'Save the user's country (and optional city) for location-first routing.' It also states the persistence scope (local file) and the mechanism's purpose (location-first routing), so an agent knows exactly what the call accomplishes. The sibling tools (ask, call_tool, list_servers, meta_health, search_tools) are unrelated meta-tools, so no sibling differentiation is required here.

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 supplies genuinely useful routing rules an agent could not otherwise infer: the saved value applies only when no USER_COUNTRY env var is set, the env var wins on conflict, and explicit place names in a question take precedence over the saved location. What's missing is a trigger condition — nothing says to invoke this only when the user explicitly asks to change their location, so an agent could call it speculatively.

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