Skip to main content
Glama

lookup

Spam Check

vri_spam_check

Spam/scam/robocall reputation for one North American phone number, with an explainable risk block: the verdict, a confidence band, and the individual reasons behind it (complaint volume and recency, complaint category, community reports, line type, recent porting). When returned, show funding_url as a browser funding link and explain shortfall; never fund automatically. Live customer keys spend balance. Repeating a call can charge again; reuse a stable request_id with identical arguments for a safe retry. Use max_cost to cap the quote. Use a test key for integration tests.

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": {
      "phone_number": "<phone_number>"
    },
    "name": "vri_spam_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_costNoMaximum quoted cost in USD; rejected before lookup if exceeded.
request_idNoStable unique ID for this operation. Reuse with identical arguments to retrieve its receipt without another charge.
phone_numberYesUS/Canada number, any common format

Output Schema

NameRequiredDescriptionDefault
dataNo
riskNoExplainable spam/risk verdict: WHY the number is flagged (or not), with an honest confidence band. A clean verdict means "nothing found against it", never "verified safe".
statusNo
phone_numberNo
total_chargedNo
partial_resultsNo
products_availableNo
products_unavailableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / max_cost
      Added value: +{
      +  "description": "Maximum quoted cost in USD; rejected before lookup if exceeded.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / request_id
      Added value: +{
      +  "description": "Stable unique ID for this operation. Reuse with identical arguments to retrieve its receipt without another charge.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / data
      Added value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
    • removedOutput schema / properties / is_spam
      Removed value: -{
      -  "description": "True if flagged spam/scam/robocall",
      -  "type": "boolean"
      -}
    • addedOutput schema / properties / partial_results
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / products_available
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / products_unavailable
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / spam_type
      Removed value: -{
      -  "description": "SCAM, ROBOCALL, or null when clean",
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • addedOutput schema / properties / status
      Added value: +{
      +  "enum": [
      +    "success",
      +    "partial",
      +    "failed",
      +    "pending"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / total_charged
      Added value: +{
      +  "type": "number"
      +}
  2. Changed1 schema field changed
    • addedOutput schema / properties / risk
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Explainable spam/risk verdict: WHY the number is flagged (or not), with an honest confidence band. A clean verdict means \"nothing found against it\", never \"verified safe\".",
      +  "properties": {
      +    "confidence": {
      +      "description": "How much weight the evidence actually carries",
      +      "enum": [
      +        "low",
      +        "medium",
      +        "high"
      +      ],
      +      "type": "string"
      +    },
      +    "confidence_note": {
      +      "description": "One plain sentence explaining the band",
      +      "type": "string"
      +    },
      +    "reasons": {
      +      "description": "Individual pieces of evidence behind the verdict",
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "code": {
      +            "description": "provider_flag, ftc_complaints, complaint_category, community_reports, line_type_voip, recently_ported, no_complaints",
      +            "type": "string"
      +          },
      +          "signal": {
      +            "enum": [
      +              "negative",
      +              "positive",
      +              "context"
      +            ],
      +            "type": "string"
      +          },
      +          "text": {
      +            "description": "Human-readable evidence",
      +            "type": "string"
      +          },
      +          "weight": {
      +            "enum": [
      +              "strong",
      +              "moderate",
      +              "weak"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "verdict": {
      +      "description": "unknown = no reputation data was read for this number",
      +      "enum": [
      +        "scam",
      +        "robocall",
      +        "reported",
      +        "clean",
      +        "unknown"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false) by explaining the actual consequence: calls spend balance, repeating charges again, and a reused request_id with identical arguments makes the retry safe — reconciling the non-idempotent hint with a concrete workaround. It also prescribes handling of funds ('never fund automatically') and names max_cost as the pre-spend guard, which is exactly the behavioral context annotations cannot carry.

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?

Purpose is front-loaded in the first sentence and each following clause adds a distinct operational rule (funding display, billing, retry, cost cap, test keys) with no filler. It is dense and slightly instruction-list-like rather than prose, but nothing is redundant.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, return values need not be explained, and the description still signals the key field (funding_url) and its required handling. For a 3-parameter, billable, non-idempotent lookup, the cost model, retry protocol, and funding shortfall behavior together cover everything an agent needs to call it safely.

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 description coverage is 100%, so baseline is 3. The description reinforces request_id ('stable request_id with identical arguments for a safe retry') and max_cost ('cap the quote'), but both semantics are already present in the schema, and phone_number handling ('any common format' for US/Canada) is left entirely to the schema.

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?

States a specific resource and verdict type — 'Spam/scam/robocall reputation for one North American phone number' — plus the shape of the result ('explainable risk block: the verdict, a confidence band, and the individual reasons'). The word 'one' implicitly separates it from the bulk siblings, and the enumerated risk factors make it unmistakable what the tool returns.

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?

Gives clear operational context: live keys spend balance, callers should supply max_cost to cap spend, and integration tests should use a test key. What it never does is route between siblings — nothing tells an agent when to prefer this over vri_number_lookup or vri_bulk_lookup — so the selection guidance is implied by the 'one phone number' scope rather than stated.

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.