Skip to main content
Glama
relayshield

relayshield-mcp

Official

check_scan_result

Check the status of a submitted URL or file scan by polling every 5 seconds. Returns malicious/suspicious/clean verdict and engine vote counts when complete.

Instructions

Poll for the result of a previously submitted URL or file scan. Call every 5 seconds after scan_url or scan_file until status is 'completed'. Returns verdict (malicious/suspicious/clean) and engine vote counts, or {status: pending} if the scan is still running. Free with a paid scan (no additional charge).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
analysis_idYesanalysis_id returned by scan_url or scan_file

Implementation Reference

  • Handler: when the tool name is 'check_scan_result', it dispatches a GET request to /result/{analysis_id} to poll the scan result.
    if name == "check_scan_result":
        result_base = f"{API_BASE}/v1/payg" if payg else f"{API_BASE}/v1"
        return await client.get(
            f"{result_base}/result/{arguments['analysis_id']}",
            headers=headers,
        )
  • Schema: declares the check_scan_result tool with input schema requiring analysis_id string.
    types.Tool(
        name="check_scan_result",
        description=(
            "Poll for the result of a previously submitted URL or file scan. "
            "Call every 5 seconds after scan_url or scan_file until status is 'completed'. "
            "Returns verdict (malicious/suspicious/clean) and engine vote counts, "
            "or {status: pending} if the scan is still running. "
            "Free with a paid scan (no additional charge)."
        ),
        inputSchema={
            "type": "object",
            "required": ["analysis_id"],
            "properties": {
                "analysis_id": {
                    "type": "string",
                    "description": "analysis_id returned by scan_url or scan_file",
                }
            },
        },
  • Registration: check_scan_result is listed in the list_tools() handler (decorated with @app.list_tools()) which registers it as an available MCP tool.
        types.Tool(
            name="check_scan_result",
            description=(
                "Poll for the result of a previously submitted URL or file scan. "
                "Call every 5 seconds after scan_url or scan_file until status is 'completed'. "
                "Returns verdict (malicious/suspicious/clean) and engine vote counts, "
                "or {status: pending} if the scan is still running. "
                "Free with a paid scan (no additional charge)."
            ),
            inputSchema={
                "type": "object",
                "required": ["analysis_id"],
                "properties": {
                    "analysis_id": {
                        "type": "string",
                        "description": "analysis_id returned by scan_url or scan_file",
                    }
                },
            },
        ),
    ]
  • Helper: pricing configuration showing check_scan_result is free (no charge) when used to poll a paid scan result.
    "check_scan_result":       "$0.00 USDC (free — poll result of a paid scan)",
    "scan_url":                "coming soon",
Behavior4/5

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

With no annotations, the description carries full burden. It discloses polling behavior, pending status return, pricing (free with paid scan), and return structure (verdict, engine votes, pending). Lacks rate limit or timeout details but still good coverage.

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

Conciseness5/5

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

Three sentences: purpose, usage, return value, and pricing. Front-loaded with key information, no fluff.

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 one simple parameter, no output schema, and rich description covering when to call, how often, what to expect in response, and pricing, the description is complete.

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% for the one parameter. The description adds 'returned by scan_url or scan_file' which mirrors the schema description. No additional meaning beyond schema, meeting baseline for high coverage.

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?

The description clearly states the tool polls for scan results (verb 'poll') and specifies the resource 'result of a previously submitted URL or file scan'. It distinguishes from sibling tools like scan_url and scan_file which submit scans.

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?

Provides explicit instruction to call every 5 seconds after scan_url or scan_file until status is 'completed'. Does not explicitly list alternatives but given the sibling tools, the context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/relayshield/relayshield-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server