Skip to main content
Glama

IP 定位信息

ip_info
Read-onlyIdempotent

查询 IPv4 地址的地理位置与网络信息(国家/省市/运营商/时区),ip 留空查出口 IP。Example: {"ip":"8.8.8.8"}

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ip": "8.8.8.8"
    },
    "name": "ip_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipNoIPv4 地址,如 8.8.8.8;留空查询当前出口 IP

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "ip": "8.8.8.8"
      +  }
      +]
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description adds genuine value by disclosing the default behavior when ip is omitted and by naming the categories of data returned, which matters since there is no output schema. Rate limiting or failure behavior is not mentioned.

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?

One front-loaded sentence plus a compact example, with no filler. The inline example is slightly redundant with the schema's own examples block, a minor waste.

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 one-parameter read tool with full annotation coverage and no output schema, the description is nearly sufficient: it lists the returned data categories and the empty-input behavior. The remaining gap is disambiguation from ip_locate, which the sibling name makes a realistic selection error.

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?

With a single parameter at 100% schema description coverage, the schema already documents 'IPv4 地址,如 8.8.8.8;留空查询当前出口 IP'. The description restates that same semantic verbatim, adding no new meaning such as accepted formats or behavior for invalid input.

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 (查询 IPv4 地址的地理位置与网络信息) and enumerates the returned fields (国家/省市/运营商/时区), so the agent knows exactly what it gets. It fails to differentiate from the near-identical sibling ip_locate, which an agent could easily confuse with this tool.

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 explains the fallback behavior for an empty ip (留空查出口 IP), which is a usage hint. However, it never says when to prefer this tool over ip_locate, its closest sibling, nor any prerequisite or exclusion.

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.