IP 定位查询
ip_locate查询 IPv4 地址的归属地(国家/省市/运营商/时区),ip 留空查调用方出口 IP。Example: {"ip":"8.8.8.8"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | IPv4 地址,如 8.8.8.8;留空查询调用方自身 IP |
ip_locate查询 IPv4 地址的归属地(国家/省市/运营商/时区),ip 留空查调用方出口 IP。Example: {"ip":"8.8.8.8"}
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | IPv4 地址,如 8.8.8.8;留空查询调用方自身 IP |
Changes observed during successful MCP inspections.
Input schema / examplesAdded value: +[
+ {
+ "ip": "8.8.8.8"
+ }
+]Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds the important behavioral detail that an empty ip returns the caller's egress IP and specifies the categories of location data returned, which is useful context beyond the annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single efficient sentence that front-loads the main purpose, followed by a compact usage note and example. There is no wasted text, and the optional-parameter behavior is stated clearly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple one-parameter lookup with no output schema, the description gives enough context to invoke the tool correctly: it names the address type, describes the returned fields, and explains the empty-input behavior. Exact response shape and error behavior are not specified, but that is a minor gap for this tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% for the single optional ip parameter, including the default-empty behavior and an example. The description repeats the same empty-input behavior and provides an example, but it adds no syntax or semantic detail beyond what the schema already documents, so baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: querying the attribution location of an IPv4 address, and it enumerates the returned attributes (country/province/city/ISP/timezone). It clearly distinguishes this from generic lookup tools, though it does not differentiate from the sibling ip_info tool.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It specifies that an empty ip queries the caller's egress IP, which is useful context for the single optional parameter. However, it gives no explicit guidance on when to use this tool versus the similar sibling ip_info, and no exclusions or alternatives are provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.