Skip to main content
Glama

IP-API.io

risk_score

risk_score
Destructive

Calculate fraud risk for an IP address, optionally correlated with an email address.

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": {
      "api_key": "<api_key>",
      "ip": "<ip>"
    },
    "name": "risk_score"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipYesIPv4 or IPv6 address to score.
emailNoOptional email address to correlate with the IP.
api_keyYesip-api.io API key.

Output Schema

NameRequiredDescriptionDefault
ipNo
emailNo
scoreYes
factorsYesComprehensive breakdown of factors contributing to the risk score calculation. This object separates analysis results into IP-specific and email-specific factors, allowing for granular understanding of what influenced the final risk score. **Null Handling**: - ip_factors: null when no IP was analyzed - email_factors: null when no email was analyzed **Score Calculation**: The final risk score is calculated by averaging the individual IP and email risk scores.
risk_levelYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, and idempotentHint=false, so the description's only added behavioral detail is that the email correlation is optional. It says nothing about the required API key, external service dependency, rate limits, cost, or why a scoring call is flagged destructive. No contradiction with annotations, but the description leaves the surprising safety profile unexplained.

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?

A single front-loaded sentence with the core purpose first and the optional correlation after. Nothing is wasted, though there is very little content to structure.

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

Completeness2/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. However, for an external, non-idempotent, destructive-flagged scoring call requiring an API key, the description omits authentication expectations, side effects, and routing versus sibling scoring/lookup tools, which is too thin for this complexity.

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?

Schema coverage is 100%, with each of ip, email, and api_key documented in the schema itself. The description restates only the ip/email relationship and adds no format, validation, or API-key sourcing detail beyond the schema, so baseline 3 applies.

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 ('Calculate fraud risk for an IP address') and notes the optional email correlation, which separates it from the email-only sibling email_risk_score. It never names that sibling explicitly, so differentiation must be inferred from the word 'optionally'.

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?

Usage is only implied by the phrase 'fraud risk' and the optional email correlation. There is no statement of when to pick this over email_risk_score, ip_reputation, or ip_abuse_check, and no exclusions or prerequisites.

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