# generate_deso_code

Generate comprehensive code examples for DeSo operations using deso-js SDK

Agent View of the PolicyLayer registry record for `generate_deso_code`. HTML page: https://policylayer.com/tools/deso-protocol-deso-mcp/generate-deso-code

## Facts

- Tool: `generate_deso_code`
- Server: DeSo MCP Server (`deso-protocol/deso-mcp`) — https://policylayer.com/tools/deso-protocol-deso-mcp.md
- Homepage: https://github.com/deso-protocol/deso-mcp
- Risk category: Write (Medium risk)
- Registry record: grade B, 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": "generate_deso_code",
    "arguments": {}
  }
}
```

## Why generate_deso_code is rated Medium

This tool generates code examples for blockchain operations but does not execute them. Generation of code is a Write operation (creating artifacts) rather than Execute (running code with side effects). The severity is medium because generated code could contain vulnerabilities if an AI blindly executes it, but the tool itself only creates text/code artifacts.

From the tool's own definition: "Tool name 'generate_deso_code' and description 'Generate comprehensive code examples for DeSo operations' indicates it produces code artifacts. The description specifies generation (a Write operation) rather than execution."

## Use case

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

## Recommended policy (PolicyLayer)

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

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

## Other tools on DeSo MCP Server (9)

- `deso_api_explorer` — Read — https://policylayer.com/tools/deso-protocol-deso-mcp/deso-api-explorer.md
- `deso_debugging_guide` — Read — https://policylayer.com/tools/deso-protocol-deso-mcp/deso-debugging-guide.md
- `deso_graphql_helper` — Read — https://policylayer.com/tools/deso-protocol-deso-mcp/deso-graphql-helper.md
- `deso_implementation_patterns` — Read — https://policylayer.com/tools/deso-protocol-deso-mcp/deso-implementation-patterns.md
- `deso_js_guide` — Read — https://policylayer.com/tools/deso-protocol-deso-mcp/deso-js-guide.md
- `deso_ui_components` — Read — https://policylayer.com/tools/deso-protocol-deso-mcp/deso-ui-components.md
- `explain_deso_architecture` — Read — https://policylayer.com/tools/deso-protocol-deso-mcp/explain-deso-architecture.md
- `read_repository_document` — Read — https://policylayer.com/tools/deso-protocol-deso-mcp/read-repository-document.md
- `repository_search` — Read — https://policylayer.com/tools/deso-protocol-deso-mcp/repository-search.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=deso-protocol-deso-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/deso-protocol-deso-mcp
