Skip to main content
Glama

setup_copilot

Creates a .github/copilot-instructions.md file with tool routing rules so Copilot agents pick the right MCP tools in your project. Run it once per project to set up routing.

Instructions

Creates .github/copilot-instructions.md with tool routing rules for this project.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_path": "<project_path>"
    },
    "name": "setup_copilot"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_pathYesAbsolute path to the project directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full behavioral burden for a filesystem-writing tool. It does not say whether an existing copilot-instructions.md is overwritten, merged, or left untouched, whether the target project must be indexed first, whether any permissions or existing directory structure are required, or what the call returns on success or failure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler; the destination path and the file's purpose are both stated immediately. Nothing redundant is present.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple one-parameter setup tool with no output schema, the description covers the essential what and where. However, the most consequential unknown for a file-creating tool — overwrite versus merge semantics on an existing instructions file, and any prerequisite such as an indexed project — is left unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With one parameter and 100% schema description coverage, the schema already fully documents project_path as an absolute directory path. The description's phrase 'for this project' loosely ties that path to where the file is written but adds no format, validation, or edge-case detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Creates') and a specific artifact ('.github/copilot-instructions.md') containing 'tool routing rules', which implicitly distinguishes it from the sibling setup_claude_code / setup_cursor / setup_windsurf tools that presumably target other editors' config files. It stops short of naming those siblings explicitly, so the differentiation relies on the agent recognizing the Copilot file path.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: 'for this project' suggests it is a one-time per-project bootstrap that writes a Copilot instructions file. No explicit when-to-use or when-not-to-use guidance is given, and nothing tells the agent to prefer it over a sibling for Copilot specifically, though the file name makes that inference reasonable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.