Skip to main content
Glama

Caller location

get_caller_location
Read-onlyIdempotent

The caller's own location, from Cloudflare's IP geolocation (edge only: the Worker at api.forlab.io/geo answers it, the Python service does not). Only the address the request comes from is looked up, never one you send. The location is approximate, city level at best, and a value Cloudflare does not know is null. country is the country's place in this dataset (same shape as /v1/contains), null when the dataset lacks it. Replies carry Cache-Control: private, no-store. Works without a key within a daily free quota.

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": "get_caller_location"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld=false/idempotent, and the description adds substantial context on top: edge-only availability, approximate city-level accuracy, null for unknown values, no-store caching, and an unkeyed daily free quota. These are operational facts an agent cannot get from the annotations or schema.

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?

Front-loaded with the essential fact and scoping rule, then tapers into accuracy, null handling, and caching. Most sentences earn their place; the parenthetical about the Python service is internal infrastructure detail with limited value to a caller.

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 no output schema, the description carries the burden of describing the response and does so reasonably: accuracy limits, null semantics, and the `country` field's meaning. It does not enumerate the full response shape (other fields, units, edge case codes), so a small gap remains for a no-arg tool whose only real contract is its return value.

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?

There are zero parameters, so the baseline is 4; there is nothing for the description to disambiguate. It does add adjacent value by characterizing the returned `country` field's dataset membership, but that belongs more to return semantics than parameter meaning.

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?

States a specific resource (the caller's own location) and its source (Cloudflare IP geolocation), and explicitly contrasts the scope with the sibling family: 'Only the address the request comes from is looked up, never one you send.' An agent can immediately distinguish this from get_place/get_country-style lookups.

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?

Gives clear when-to-use context (you want the requesting client's location) and an explicit exclusion (anything the caller supplies), which implicitly routes to the place/country lookup siblings. It stops short of naming an alternative tool, so the guidance is strong but not fully self-contained.

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