Skip to main content
Glama

Set Project

set_project

Binds the current interaction to a client project root, creating a project with default categories when none exists. Returns basic confirmation or full project details.

Instructions

Bind this interaction to a client project root.

Creates a new project with default categories if none exists. Use verbose=True for full project details after binding.

Arguments

  • session_id: string | null

    • Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id.

  • path (required): string

    • Absolute client filesystem path of the project root to bind

  • worktree: string | null

    • Absolute client filesystem path of the current Git worktree. Omit for the primary worktree, which is the project root. This does not change the project's configuration identity.

  • verbose: boolean

    • If True, return full project details; if False, return simple confirmation

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": {
      "args": "<args>"
    },
    "name": "set_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesArguments for set_project tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv2.0.0
    • removedInput schema / properties / args / additionalProperties
      Removed value: -false
    • removedInput schema / properties / args / properties / name
      Removed value: -{
      -  "description": "Name of the project to switch to",
      -  "type": "string"
      -}
    • addedInput schema / properties / args / properties / path
      Added value: +{
      +  "description": "Absolute client filesystem path of the project root to bind",
      +  "type": "string"
      +}
    • addedInput schema / properties / args / properties / session_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id."
      +}
    • addedInput schema / properties / args / properties / worktree
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Absolute client filesystem path of the current Git worktree. Omit for the primary worktree, which is the project root. This does not change the project's configuration identity."
      +}
    • changedInput schema / properties / args / required
      Previous value: -[
      -  "name"
      -]New value: +[
      +  "path"
      +]
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "type": "object",
      -  "x-fastmcp-wrap-result": true
      -}New value: +null
  2. First observedv1.3.2

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose a real side effect: a new project with default categories is created when none exists. It also carefully characterizes session_id as an opaque interaction identifier that must be passed through unchanged and is not a transport session id. It still doesn't say what happens when re-binding an already-bound interaction (replace? error? idempotent?), which would complete the mutation picture.

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

Conciseness3/5

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

The purpose is front-loaded in two tight sentences, which is good. However, the lengthy Arguments block duplicates the input schema word-for-word and occupies most of the description without adding information, diluting the useful opening.

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

Completeness4/5

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

For a single nested-argument tool with no output schema and no annotations, the definition covers what it binds, the auto-creation behavior, the worktree scoping caveat, and the session_id contract. The main remaining hole is rebinding behavior on an already-bound session, which an agent would reasonably want before calling it twice.

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 description coverage is 100%, so the schema already documents path, worktree, verbose, and session_id. The Arguments section in the description reproduces that schema text nearly verbatim, adding no syntax, format, or edge-case meaning beyond it, so the baseline of 3 applies.

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?

States a specific verb and resource: bind the interaction to a client project root, and notes it creates a project with default categories if none exists. That is unambiguous on its own, but it never contrasts itself with adjacent tools such as switch_project, use_project_profile, or clone_project, so sibling differentiation is left to the agent.

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?

The only usage steer is 'Use verbose=True for full project details after binding', which is a parameter hint rather than a when/when-not rule. There is no statement about how this relates to switching or using a profile, or when binding should be avoided, so the guidance is only implied.

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