# Agent Shield

> Scan MCP servers, x402 offers, prompt injection, leaks; sanctions and business checks.

- name: io.github.ameerasofficial-ai/agent-shield
- version: 1.0.0
- connection class: R0 (autonomous)
- trust: 92/100 flags: duplicate-repo
- quality: 77/100 (new)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.ameerasofficial-ai%2Fagent-shield
- tools: https://api.protogrid.dev/v1/servers/io.github.ameerasofficial-ai%2Fagent-shield/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "agent-shield": {
      "type": "http",
      "url": "https://agent-shield.ameeras-official.workers.dev/mcp",
      "headers": {
        "X-API-Key": "${X_API_KEY}"
      }
    }
  }
}
```

Placeholders to fill: `${X_API_KEY}`.

## Trust

- hygiene: 80
- liveness: 97
- freshness: 100
- provenance: 90
- drivers: +repository +namespace-matches-repo +website +reachable +uptime-93% +updated-4d-ago -duplicate-repo(5 names)
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 77/100 (new)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-11-25; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 78 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- fail `tools.annotations`: no tool declares readOnlyHint or destructiveHint, so clients cannot tell safe calls from risky ones
- fail `tools.directory_hints`: no tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: scan_github_repo (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); scan_for_leaks (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); sanctions_screen (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); …
- pass `tools.token_cost`: about 2,703 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool names, descriptions, schemas or annotations
- pass `tools.poisoning`: no instructions aimed at the model in tool definitions

### stability: n/a (weight 15)

- n/a `stability.changes`, `stability.rug_pull`, `stability.new_links`: tool history recorded for 3 of the 7 days needed

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 11, about 2,703 tokens to load them all
- tool set hash: 7223e5e7cc6fa03b88985d5c4b074f70
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.ameerasofficial-ai/agent-shield.svg)](https://protogrid.dev/servers/io.github.ameerasofficial-ai/agent-shield)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

_No changes to tool, prompt or resource template definitions recorded._

## Remotes

- https://agent-shield.ameeras-official.workers.dev/mcp (streamable-http, auth none, reachable true, uptime30d 0.9285714)

## Packages

_none_

## Tools (11)

- `business_check`: One call before your agent pays, signs up, shares data or partners with a company: checks the domain (age, registrar, lookalike/typosquat of big brands, DNS, SPF/DMARC, redirects), reads the home page (contact details, privacy/terms/about pages, social profiles, copyright year, scam money wording), scans it for hidden instructions aimed at AI agents and screens the company name against OFAC and UN sanctions lists. Returns verdict looks_legitimate / be_careful / do_not_trust with a 0-100 trust score and every signal. Not charged if the domain does not exist. Price 0.25 USDC per call; first 3 calls per day free.
- `check_domain_trust`: Looks up a domain or URL: registration date and registrar (RDAP), lookalike/typosquat of 100+ major brands (character swaps like paypa1, extra words like paypal-secure-login, punycode), risky endings, login-lure subdomains, DNS records (A, MX, nameservers), SPF and DMARC email protection, and whether the site answers over HTTPS or redirects elsewhere. Returns trust_score 0-100, risk level and plain-language signals. Not charged if the domain does not exist. Price 0.003 USDC per call; first 3 calls per day free.
- `check_x402_payment`: Calls the endpoint without paying, reads its HTTP 402 x402 offer (v1 body or v2 PAYMENT-REQUIRED header) and checks each payment option: is the asset the official USDC contract for that network, is the price reasonable, is payTo a valid (non-zero) address, does the payment resource match the site, and do descriptions contain prompt injection. Returns price in USD, grade A-F and findings. Never pays. Price 0.002 USDC per call; first 3 calls per day free.
- `code_safety_report`: Runs the GitHub code scan (install scripts, secret stealing, env dumps, webhooks, hidden/encoded code, poisoned MCP tool descriptions) AND finds up to 3 lockfiles in the repo (npm, yarn, pnpm, pip, poetry, uv, Go, Cargo, Composer, Bundler) and checks every dependency version against OSV.dev for known CVEs and typosquats. Returns code grade, dependency grade, overall grade A-F, safe_to_install and an action list. Not charged if the repo is private or missing. Price 0.05 USDC per call; first 3 calls per day free.
- `safety_pass`: Give any of: url (site the agent will visit, log in to or buy from), payment_url (x402 endpoint it is about to pay) and message (text it is about to send). Runs the website trust check, the x402 offer check and Leak Guard in parallel and returns one decision: go, caution or stop, with reasons and a redacted message if needed. Price 0.01 USDC per call; first 3 calls per day free.
- `sanctions_screen`: Fuzzy name matching (accents, word order, spelling variants, aliases) against official public lists: the US Consolidated Screening List (Treasury OFAC SDN and non-SDN lists, Commerce Entity List, Denied Persons, Unverified and Military End User lists, State Department lists) and the UN Security Council Consolidated List, refreshed every few days. Returns match / possible_match / clear with score, matched name or alias, list, programmes and list ID. Up to 20 names per call. Not legal advice; matches need human review. Price 0.01 USDC per call; first 3 calls per day free.
- `scan_for_leaks`: Detects secrets (AWS, GitHub, OpenAI, Anthropic, Google, Slack and Stripe keys, private keys, JWTs, database connection strings, bearer tokens, password assignments, crypto private keys, high-entropy tokens next to key/secret words) and personal data (emails, phone numbers, Luhn-valid card numbers, checksum-valid IBANs, US SSNs, IP addresses). Returns risk level, masked findings with line numbers and a redacted_text that is safe to send. include=secrets checks only secrets. Nothing is stored or logged. Price 0.002 USDC per call; first 3 calls per day free.
- `scan_github_repo`: Reads the repository's manifests and up to 25 main source files and flags: install scripts that download or run code, reading SSH keys/.env/credential files, dumping all environment variables, sending data to webhooks or paste sites, hard-coded IPs, eval of decoded code, large encoded blobs, recursive deletes, and MCP tool descriptions with prompt injection or tool poisoning. Adds repo age, stars, license and archive status. Returns grade A-F, capabilities and findings with file:line. Not charged if the repo is private, missing or GitHub is busy. Price 0.01 USDC per call; first 3 calls per day free.
- `scan_mcp_server`: Connects to a Streamable HTTP MCP server like a client would, lists its tools, prompts and resources, and checks every description and input schema for tool poisoning: hidden <IMPORTANT> blocks, orders aimed at the model, requests to read secret files (SSH keys, .env, mcp.json), side-channel parameters that ask for private data, tool shadowing, secrecy from the user, invisible Unicode and encoded payloads. Lists sensitive capabilities (runs commands, changes files, moves money, sends messages) per tool. Returns a grade A-F, risk score, findings with exact locations, and a fingerprint of the tool definitions; re-scans report which tools changed (rug-pull detection). Not charged if the server cannot be reached or needs auth. Price 0.01 USDC per call; first 3 calls per day free.
- `scan_text_for_injection`: Detects hidden or suspicious instructions aimed at AI agents in text or HTML: hidden HTML, invisible Unicode (tag-character smuggling), encoded payloads, fake system messages, data-exfiltration, payment-redirect and command-execution orders. Returns risk score, findings and a cleaned version that is safer to pass to an LLM. deep=true adds an AI review. Price 0.002 USDC per call; first 3 calls per day free.
- `scan_tool_definitions`: For local (stdio) MCP servers or any tool list your agent already loaded. Send the tools array; get the same poisoning, capability and fingerprint analysis as /scan-mcp. Accepts MCP tools ({name, description, inputSchema}), OpenAI function tools ({type:"function", function:{...}}) and Anthropic tools ({name, description, input_schema}). Price 0.003 USDC per call; first 3 calls per day free.
