# set_active_project

Set the active project context. All subsequent operations (save/search/list) will default to this project unless explicitly overridden. Like switching git branches - keeps you focused on one project at a time.

Agent View of the PolicyLayer registry record for `set_active_project`. HTML page: https://policylayer.com/tools/0xrelogic-cognio/set-active-project

## Facts

- Tool: `set_active_project`
- Server: Cognio (`0xrelogic/cognio`) — https://policylayer.com/tools/0xrelogic-cognio.md
- Homepage: https://github.com/0xReLogic/Cognio
- Risk category: Write (Medium risk)
- Registry record: grade D, 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": "set_active_project",
    "arguments": {}
  }
}
```

## Why set_active_project is rated Medium

This tool changes configuration state (the active project) which is a reversible write operation. It does not execute arbitrary code, delete data irreversibly, move money, or retrieve information. The impact is scoped to context switching for subsequent operations, with low blast radius since the change is easily reversible by switching to a different project.

From the tool's own definition: "Tool description states 'Set the active project context' and 'All subsequent operations...will default to this project', indicating it modifies state/context settings rather than reading or retrieving data."

## Use case

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

## Recommended policy (PolicyLayer)

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

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

## Other tools on Cognio (11)

- `delete_memory` — Destructive — https://policylayer.com/tools/0xrelogic-cognio/delete-memory.md
- `export_memories` — Read — https://policylayer.com/tools/0xrelogic-cognio/export-memories.md
- `get_active_project` — Read — https://policylayer.com/tools/0xrelogic-cognio/get-active-project.md
- `get_memory` — Read — https://policylayer.com/tools/0xrelogic-cognio/get-memory.md
- `get_memory_stats` — Read — https://policylayer.com/tools/0xrelogic-cognio/get-memory-stats.md
- `list_memories` — Read — https://policylayer.com/tools/0xrelogic-cognio/list-memories.md
- `list_projects` — Read — https://policylayer.com/tools/0xrelogic-cognio/list-projects.md
- `search_memory` — Read — https://policylayer.com/tools/0xrelogic-cognio/search-memory.md
- `summarize_text` — Read — https://policylayer.com/tools/0xrelogic-cognio/summarize-text.md
- `archive_memory` — Write — https://policylayer.com/tools/0xrelogic-cognio/archive-memory.md
- `save_memory` — Write — https://policylayer.com/tools/0xrelogic-cognio/save-memory.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=0xrelogic-cognio · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/0xrelogic-cognio
