# marchward_register_agent

Register a new agent with Marchward so it is governed from its first action. Returns the agent record and its Marchward API key — the only credential the agent should hold. Call this when building or deploying a new agent.

Agent View of the PolicyLayer registry record for `marchward_register_agent`. HTML page: https://policylayer.com/tools/ai-marchward-mcp-server/marchward-register-agent

## Facts

- Tool: `marchward_register_agent`
- Server: Mcp Server (`@marchward/mcp-server`) — https://policylayer.com/tools/ai-marchward-mcp-server.md
- Install: `npx -y @marchward/mcp-server`
- Homepage: https://github.com/marchward/marchward
- 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": "marchward_register_agent",
    "arguments": {}
  }
}
```

## Why marchward_register_agent is rated Medium

This tool creates and modifies data (agent registration records and API key issuance) but does not delete, execute arbitrary code, or commit financial transactions. The 'high' severity reflects that issuing credentials and registering agents could be misused to create unauthorized agents or compromise governance if called maliciously, though the effects are reversible via agent deletion or key revocation.

From the tool's own definition: "Tool description states 'Register a new agent' and 'Returns the agent record and its Marchward API key', indicating creation of a new record and issuance of credentials."

## Use case

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

## Recommended policy (PolicyLayer)

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

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

## Other tools on Mcp Server (6)

- `marchward_authorize` — Destructive — https://policylayer.com/tools/ai-marchward-mcp-server/marchward-authorize.md
- `marchward_execute` — Execute — https://policylayer.com/tools/ai-marchward-mcp-server/marchward-execute.md
- `marchward_check_coverage` — Read — https://policylayer.com/tools/ai-marchward-mcp-server/marchward-check-coverage.md
- `marchward_get_decisions` — Read — https://policylayer.com/tools/ai-marchward-mcp-server/marchward-get-decisions.md
- `marchward_list_agents` — Read — https://policylayer.com/tools/ai-marchward-mcp-server/marchward-list-agents.md
- `marchward_bind_policy` — Write — https://policylayer.com/tools/ai-marchward-mcp-server/marchward-bind-policy.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=ai-marchward-mcp-server · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/ai-marchward-mcp-server
