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,...
This record as markdown: /tools/dev-3tg-mcp/create-agent-instructions.md
What create_agent_instructions does on 3TG Test Generation
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.
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 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 signalsBulk/mass operation — affects multiple targets · Admin/system-level operation
Attacks that exploit this kind of access
The rule that runs create_agent_instructions safely
PolicyLayer is an MCP gateway: it sits between your AI agents and 3TG Test Generation, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For create_agent_instructions, this is the rule to start with:
create_agent_instructions stays usable, but capped: an agent stuck in a loop can't make hundreds of changes a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect 3TG Test Generation, apply this rule, and every create_agent_instructions call is checked against it from then on.
Questions about 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.). It is categorised as a Write tool in the 3TG Test Generation MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
Register the 3TG Test Generation MCP server in PolicyLayer and add a rule for create_agent_instructions: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches 3TG Test Generation. Nothing to install.
create_agent_instructions is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the create_agent_instructions rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for create_agent_instructions. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
create_agent_instructions is provided by the 3TG Test Generation MCP server (https://mcp.3tg.dev/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on 3TG Test Generation, and thousands of servers like it.
This server
Across the catalogue