Skip to main content
Glama

Engine Heart

ip.query_ip_location

查询 IPv4 地址的归属地和运营商信息。ip为空时尝试取调用方IP。返回归属地(国家/省份/城市)、经纬度、时区、运营商、AS编号。主源ip-api.com,备源ipwho.is。

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": "ip.query_ip_location"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipNo要查询的 IPv4 地址,如 "8.8.8.8";留空时尝试取调用方 IP

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description does real work: it names the primary data source (ip-api.com) and the fallback (ipwho.is), and enumerates the returned fields including coordinates, timezone, carrier and AS number. It does not disclose rate limits, auth/registration requirements of those upstream services, error behavior, or what happens for IPv6 or invalid addresses — material for a tool that depends on third-party quotas.

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 description is short and front-loaded: purpose first, then parameter default, then return fields, then data sources. Every clause carries information; only the return-field enumeration slightly overlaps the purpose sentence.

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 one optional parameter and no output schema, the description compensates by enumerating the return payload and naming the upstream sources — enough for an agent to decide and call correctly. The remaining gap is failure-mode coverage (invalid IP, upstream outage, quota exhaustion).

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?

The single parameter is already fully documented in the schema (100% coverage), including the empty-value fallback, and the description's 'ip为空时尝试取调用方IP' merely repeats that schema text. It adds no format constraints or edge-case meaning beyond the schema, so the baseline of 3 applies.

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 gives a specific verb (查询) and resource (IPv4 地址的归属地和运营商信息), and adds scope details — IPv4 only, plus the exact fields returned. No sibling in the catalog covers IP geolocation, and the definition makes that domain ownership obvious from the first clause.

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 states a concrete usage rule: when ip is empty, the tool falls back to the caller's IP, which tells the agent it can call the tool with no arguments. There are no sibling alternatives to exclude and no preconditions to warn about, so the gap is minor.

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