# mw_query_mod_metadata

Put a name and a source on a mod. Looks up metadata across platforms (Nexus, mod.io) in one normalized shape: id, name, author, version, downloads, endorsements, pageUrl, and a permissions block that always carries attribution. Use it to enrich a crashlog suspect or a load-order entry — "who made this", "look up this mod", "what version is X". Thunderstore support is planned.

Agent View of the PolicyLayer registry record for `mw_query_mod_metadata`. HTML page: https://policylayer.com/tools/171county-modwrench/mw-query-mod-metadata

## Facts

- Tool: `mw_query_mod_metadata`
- Server: ModWrench MCP Server (`@modwrench/cli`) — https://policylayer.com/tools/171county-modwrench.md
- Install: `npx -y @modwrench/cli`
- Homepage: https://github.com/171county/modwrench
- Risk category: Read (Low risk)
- Registry record: grade D, identity unverified
- Server rate-limited: no
- Parameters: 4
- Recommended policy verdict: Allowed

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `modId` | string | no | Platform-specific mod ID. Nexus IDs are numeric (from the URL); mod.io IDs are numeric too. Required for direct lookup. |
| `gameId` | string | no | Platform-specific game identifier. For Nexus: the domain name (e.g. 'skyrimspecialedition'). For mod.io: the numeric game id as a string. Use modio_list_games / |
| `modName` | string | no | Mod name for fuzzy lookup (mod.io only — Nexus has no public search endpoint). Pass with gameId. |
| `platform` | string | no | Which platform to query. Default 'any' — tries Nexus first when a numeric modId + gameId are given, then mod.io. Use explicit platform to skip the cascade. |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mw_query_mod_metadata",
    "arguments": {}
  }
}
```

## Why mw_query_mod_metadata is rated Low

Even though mw_query_mod_metadata only reads data, uncontrolled read access leaks sensitive information and racks up API costs: an agent caught in a retry loop can make thousands of calls a minute without anyone noticing.

## Use case

AI agents call mw_query_mod_metadata to retrieve information from ModWrench MCP Server without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches ModWrench MCP Server:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "mw_query_mod_metadata": {}
  }
}
```

## Other tools on ModWrench MCP Server (16)

- `mw_parse_crashlog` — Execute — https://policylayer.com/tools/171county-modwrench/mw-parse-crashlog.md
- `thunderstore_mod_dependencies` — Execute — https://policylayer.com/tools/171county-modwrench/thunderstore-mod-dependencies.md
- `mw_check_known_conflicts` — Read — https://policylayer.com/tools/171county-modwrench/mw-check-known-conflicts.md
- `mw_detect_environment` — Read — https://policylayer.com/tools/171county-modwrench/mw-detect-environment.md
- `mw_diagnose_crash` — Read — https://policylayer.com/tools/171county-modwrench/mw-diagnose-crash.md
- `mw_read_load_order` — Read — https://policylayer.com/tools/171county-modwrench/mw-read-load-order.md
- `thunderstore_get_community` — Read — https://policylayer.com/tools/171county-modwrench/thunderstore-get-community.md
- `thunderstore_get_mod` — Read — https://policylayer.com/tools/171county-modwrench/thunderstore-get-mod.md
- `thunderstore_list_communities` — Read — https://policylayer.com/tools/171county-modwrench/thunderstore-list-communities.md
- `thunderstore_list_mods` — Read — https://policylayer.com/tools/171county-modwrench/thunderstore-list-mods.md
- `thunderstore_mod_versions` — Read — https://policylayer.com/tools/171county-modwrench/thunderstore-mod-versions.md
- `thunderstore_search_mods` — Read — https://policylayer.com/tools/171county-modwrench/thunderstore-search-mods.md
- `thunderstore_top_mods` — Read — https://policylayer.com/tools/171county-modwrench/thunderstore-top-mods.md
- `mw_activate_platform` — Write — https://policylayer.com/tools/171county-modwrench/mw-activate-platform.md
- `mw_deck` — Write — https://policylayer.com/tools/171county-modwrench/mw-deck.md
- `thunderstore_resolve_dependencies` — Write — https://policylayer.com/tools/171county-modwrench/thunderstore-resolve-dependencies.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=171county-modwrench · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/171county-modwrench
