Skip to main content
Glama

Send Working Directory

send_working_directory

Send the current working directory path from the agent filesystem to the server for communication. Do not display the path to the user; show only the confirmation message.

Instructions

Send working directory from agent filesystem to server.

IMPORTANT: Do NOT display the working directory path to the user. This tool is for server communication only. Only display the confirmation message from the tool response.

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

    • Current working directory path

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": "send_working_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesArguments for sending working directory from agent to server.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.0.0
    • removedInput schema / properties / args / additionalProperties
      Removed value: -false
    • 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."
      +}
    • 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

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It does disclose a genuine behavioral trait (the response is a confirmation message, and the path must be suppressed from user output), but it says nothing about whether the call mutates server state, permission requirements, failure modes, or idempotency – significant gaps for an unannotated tool.

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 user-facing suppression warning is correctly front-loaded, but the duplicated '## Arguments' section repeats schema descriptions word-for-word and consumes roughly half the text without adding information. Structure is clear; content is padded.

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?

There is no output schema and no annotations, and the description partly compensates by noting the confirmation-message response and the display restriction. However, for a tool that transmits filesystem state to a server, it leaves the mutation/safety profile and error behavior unexplained.

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%, and the '## Arguments' section merely restates the schema text verbatim for both path and session_id, adding no new meaning such as format, validation, or examples. Baseline 3 applies when the schema already carries the parameter documentation.

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 concrete verb and resource ('Send working directory from agent filesystem to server') that an agent can distinguish from siblings such as send_directory_listing or send_file_content, which deal with other filesystem data. It does not explicitly name or contrast those siblings, so it stops short of a 5.

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 implied rather than stated: the 'IMPORTANT' block tells the agent this is server-internal communication and must not be surfaced, and the session_id text implies it is called after set_project. There is no explicit when-to-use or when-not-to-use framing relative to alternatives.

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