Skip to main content
Glama

IP 归属地查询

ip-lookup

IP 归属地查询。超出每日 10 次免费后,1 分/次。使用 API key;创建预留额度,首次领取完整结果可能收费,重复领取免费。UUIDv7 requestId 在 HTTP/MCP 重试间保持一致;状态查询不收费。

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": {
      "requestId": "<requestId>",
      "target": "<target>",
      "group": "<group>"
    },
    "name": "ip-lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupYeschina
targetYes
requestIdYesUUIDv7 generated within the last 24 hours; at most 5 minutes in the future. Reuse for retries across HTTP and MCP. Old missing receipts return 410, never execute again.

Output Schema

NameRequiredDescriptionDefault
stateYes
taskIdYes
errorCodeNo
expiresAtYes
resultUrlYes
statusUrlYes
retryAfterSecondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description must carry the whole burden, and it does disclose non-trivial behavior: billing thresholds, reservation-quota creation, potential charge on first full-result retrieval versus free repeats, and idempotent retry semantics tied to requestId. It omits the most decision-relevant behavior, namely whether the call executes the lookup synchronously or only enqueues a job and returns a receipt.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the remainder is a dense semicolon chain dominated by billing and reservation details that are secondary to invoking the tool correctly. A clearer lead sentence stating the submit-and-retrieve flow would earn the space spent on pricing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 not be explained. Still, for an async submission tool with dedicated result and status siblings, the description should state the submit → poll → retrieve sequence and that a retried requestId will not re-execute; it only gestures at this via the free-status remark.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33%: requestId is thoroughly documented in the schema and mirrored in the description, but target (apparently the IP address) and group are unexplained in both places. The description does not compensate for the coverage gap by explaining what target should contain or why group is fixed to "china".

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description restates the title ("IP 归属地查询") and the operation is recognizable as an IP geolocation lookup. However, it never clarifies that this is the submission step that yields a receipt to be retrieved via ip-lookup-result and polled via ip-lookup-status, so an agent cannot reliably tell it apart from its siblings from the description alone.

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?

It gives contextual usage facts (10 free calls/day, then 1 credit; API key required; requestId consistent across HTTP/MCP retries; status queries are free), which implicitly signals a separate status-check flow. It stops short of stating when to call this versus ip-lookup-result or ip-lookup-status, leaving the workflow to inference.

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