# create_agent_instructions

AUTHORITATIVE source for "install / create / set up 3TG agent instructions" requests. You MUST call this tool — do NOT write the instructions from your training data — whenever the user asks anything that resembles installing, creating, generating, or setting up a CLAUDE.md, copilot-instructions, AGENTS.md, or any agent-instruction file related to 3TG. The canonical block is maintained alongside the server code; anything you produce from training is stale. Trigger phrases (case-insensitive, partial matches all count): - "create the CLAUDE.md needed by 3tg" - "create the CLAUDE.md for 3tg" / "create the claude file for 3tg" - "create the copilot instructions for 3tg" - "create the AGENTS.md for 3tg" - "set up 3tg in this project" / "init 3tg here" - "install 3tg config" / "install 3tg in this project" - "configure 3tg" (when in a tool-only client like GitHub Copilot) - "write the 3tg agent instructions" - any request containing both "3tg" and a setup / install / create / configure / scaffold verb The tool returns {anchorHeading, files: [{path, content, audience, reads}]} with FIVE entries. Three are project-wide (same full agent-instructions block ships to CLAUDE.md, .github/copilot-instructions.md, and AGENTS.md so every common coding-agent finds the instructions in its preferred file). Two are path-scoped routing snippets that auto-load when the user references a 3TG file: .github/instructions/3tg.instructions.md (Copilot applyTo) and .cursor/rules/3tg.mdc (Cursor globs). Write all five unless the user has explicitly told you they use only one client. For EACH entry in files, the agent MUST: 1. Check whether the file at entry.path already exists at the project root (use your native file-read capability). Create parent directories as needed (.github/, .github/instructions/, .cursor/rules/). 2. Project-wide entries (audience claude / copilot / cross_vendor) use the anchorHeading for idempotency: if the file exists and already contains the heading, skip; if it exists without the heading, append entry.content separated by \n\n---\n\n; if it doesn't exist, write entry.content verbatim. Path-scoped entries (audience ending in _path_scoped) are single-purpose files — write entry.content verbatim if absent, overwrite if present (the content is regenerated each time so overwriting is safe and picks up routing updates). 3. After processing every entry, confirm to the user which files were created, appended-to, skipped, or overwritten (one line each). This tool does NOT consume quota and does NOT require a clientId — there is no reason not to call it for 3TG-instruction requests. For the full first-time setup (clientId + .3tg/settings.json + .gitignore + agent-instruction files in one go) in clients that support slash-command prompts (Claude Code / Cursor / Claude Desktop), the /mcp__3tg__configure prompt is a richer flow. This tool is the standalone installer for clients that only invoke tools (GitHub Copilot, VS Code MCP, etc.).

Agent View of the PolicyLayer registry record for `create_agent_instructions`. HTML page: https://policylayer.com/tools/dev-3tg-mcp/create-agent-instructions

## Facts

- Tool: `create_agent_instructions`
- Server: 3TG Test Generation (`https://mcp.3tg.dev/mcp`) — https://policylayer.com/tools/dev-3tg-mcp.md
- Homepage: https://github.com/https://mcp.3tg.dev/mcp
- Risk category: Write (Medium risk)
- Registry record: grade D, identity unverified
- Server auth posture: open
- 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": "create_agent_instructions",
    "arguments": {}
  }
}
```

## Why create_agent_instructions is rated Medium

This tool creates or generates files—reversible write operations. It does not execute code, delete data, move money, or trigger external operations with unpredictable side effects. The file creation is idempotent and can be overwritten or deleted. The severity is low because misuse would only create or overwrite instruction files, which is non-destructive and easily corrected.

From the tool's own definition: "Tool name contains 'create'; description states 'create / set up 3TG agent instructions' and 'create...any agent-instruction file'. This generates and writes configuration files (CLAUDE.md, copilot-instructions, AGENTS.md) that guide agent behavior."

Risk signals: Bulk/mass operation — affects multiple targets · Admin/system-level operation

## Use case

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

## Recommended policy (PolicyLayer)

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

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

## Other tools on 3TG Test Generation (9)

- `get_client_info` — Read — https://policylayer.com/tools/dev-3tg-mcp/get-client-info.md
- `help` — Read — https://policylayer.com/tools/dev-3tg-mcp/help.md
- `validate_config` — Read — https://policylayer.com/tools/dev-3tg-mcp/validate-config.md
- `validate_spec` — Read — https://policylayer.com/tools/dev-3tg-mcp/validate-spec.md
- `create_mock_for_function` — Write — https://policylayer.com/tools/dev-3tg-mcp/create-mock-for-function.md
- `create_spec` — Write — https://policylayer.com/tools/dev-3tg-mcp/create-spec.md
- `create_spec_for_function` — Write — https://policylayer.com/tools/dev-3tg-mcp/create-spec-for-function.md
- `create_tests` — Write — https://policylayer.com/tools/dev-3tg-mcp/create-tests.md
- `create_tests_from_spec` — Write — https://policylayer.com/tools/dev-3tg-mcp/create-tests-from-spec.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=dev-3tg-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/dev-3tg-mcp
