Skip to main content
Glama

setup_claude_code

Configures Claude Code project settings by adding Sylvan tool permissions and a SubagentStart hook to .claude/settings.local.json.

Instructions

Creates or updates .claude/settings.local.json with sylvan tool permissions and SubagentStart hook 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_claude_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_pathYesAbsolute path to the project directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full load, and it does disclose that this mutates a specific local settings file and what it injects. It is silent on the risky parts: whether existing permissions/settings are preserved or overwritten, whether a backup is made, whether it is idempotent, and what it returns on 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 led by the action verb, with no filler. The file path and the two things written are the only details given, and both earn their place.

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 one-parameter, no-output-schema setup tool, the description covers what happens but not the side effects an agent would want before running a mutation: overwrite semantics, error conditions, and whether re-running is safe. Adequate but with clear gaps around mutation risk.

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?

Schema coverage is 100% for the single project_path parameter, so baseline is 3. The phrase 'for this project' reinforces that the argument scopes the write to one project directory, but adds no format or validation detail beyond 'absolute path' already in 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 gives a specific verb pair ('Creates or updates') and a concrete resource ('.claude/settings.local.json'), plus the exact payload it writes (sylvan tool permissions and a SubagentStart hook). The '.claude' path implicitly separates it from the sibling setup_copilot/setup_cursor/setup_windsurf tools, but it never says so explicitly.

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: it is the Claude Code variant of the setup family, invoked against a project. There is no explicit when-to-use, no statement about prerequisites (e.g., whether the project must already be indexed), and no exclusion telling the agent to pick a sibling for other editors.

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