# viewport_set_size

A write tool on the Godot MCP server.

Agent View of the PolicyLayer registry record for `viewport_set_size`. HTML page: https://policylayer.com/tools/chanceflow-godot-mcp/viewport-set-size

## Facts

- Tool: `viewport_set_size`
- Server: Godot (`chanceflow/godot-mcp`) — https://policylayer.com/tools/chanceflow-godot-mcp.md
- Homepage: https://github.com/ChanceFlow/godot-mcp
- Risk category: Write (Medium risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Rate-limited

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

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

## Why viewport_set_size is rated Medium

This tool appears to modify viewport properties in an active Godot project, which is a reversible change to engine state. It does not delete data (not Destructive), execute arbitrary code (not Execute), move money (not Financial), or trigger external operations (not Execute). The modification of rendering configuration qualifies as Write.

From the tool's own definition: "Tool name 'viewport_set_size' indicates modification of viewport dimensions in the Godot engine; the empty description prevents direct confirmation of side effects, but the 'set_' prefix and presence among sibling tools that modify engine state…"

## Use case

AI agents use viewport_set_size to create or update resources in Godot, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Godot environment.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Godot:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "viewport_set_size": {
      "limits": [
        {
          "counter": "viewport_set_size_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Godot (83)

- `autoload_remove` — Destructive — https://policylayer.com/tools/chanceflow-godot-mcp/autoload-remove.md
- `node_delete` — Destructive — https://policylayer.com/tools/chanceflow-godot-mcp/node-delete.md
- `editor_launch` — Execute — https://policylayer.com/tools/chanceflow-godot-mcp/editor-launch.md
- `particle_start_emitting` — Execute — https://policylayer.com/tools/chanceflow-godot-mcp/particle-start-emitting.md
- `project_export` — Execute — https://policylayer.com/tools/chanceflow-godot-mcp/project-export.md
- `project_run` — Execute — https://policylayer.com/tools/chanceflow-godot-mcp/project-run.md
- `project_stop` — Execute — https://policylayer.com/tools/chanceflow-godot-mcp/project-stop.md
- `animation_get_info` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/animation-get-info.md
- `animation_list` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/animation-list.md
- `autoload_list` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/autoload-list.md
- `camera_get_info` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/camera-get-info.md
- `godot_get_version` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/godot-get-version.md
- `input_list_actions` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/input-list-actions.md
- `node_get_properties` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/node-get-properties.md
- `project_get_debug_output` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/project-get-debug-output.md
- `project_get_info` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/project-get-info.md
- `project_list` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/project-list.md
- `project_list_export_presets` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/project-list-export-presets.md
- `project_setting_get` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/project-setting-get.md
- `resource_get_material_properties` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/resource-get-material-properties.md
- `resource_get_uid` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/resource-get-uid.md
- `resource_list` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/resource-list.md
- `scene_get_tree` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/scene-get-tree.md
- `scene_list` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/scene-list.md
- `script_list` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/script-list.md
- `signal_list_connections` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/signal-list-connections.md
- `signal_list_node_signals` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/signal-list-node-signals.md
- `tilemap_get_cell` — Read — https://policylayer.com/tools/chanceflow-godot-mcp/tilemap-get-cell.md
- `animation_add_track` — Write — https://policylayer.com/tools/chanceflow-godot-mcp/animation-add-track.md
- `animation_create` — Write — https://policylayer.com/tools/chanceflow-godot-mcp/animation-create.md
- …and 53 more: https://policylayer.com/tools/chanceflow-godot-mcp.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=chanceflow-godot-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/chanceflow-godot-mcp
