Skip to main content
Glama

set_workdir

Sets the default working directory used to resolve relative .ntop and export paths, creating the directory if it does not exist.

Instructions

Set the default working directory for resolving relative .ntop and export paths.

Args: path: Directory path to set as working directory (created if it does not exist).

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": {
      "path": "<path>"
    },
    "name": "set_workdir"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 behavioral burden. It does disclose one important side effect – the directory is created if it does not exist – which is genuinely beyond the schema. However, it never says whether the setting is session-scoped or persisted, whether it overrides any existing resolution order, or what happens on an invalid/unwritable path.

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

Conciseness4/5

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

Two short statements, front-loaded with the purpose before the argument detail. The Args block mildly restates the purpose line but adds the creation behavior, so it earns its place. No filler.

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?

An output schema exists, so return values need not be explained, and the tool is a simple one-parameter state setter. The remaining gap is the lifetime/scope of the setting, which matters for a stateful tool but is a modest omission given the tool's simplicity and single argument.

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

Parameters4/5

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

Schema coverage is 0% and the single parameter is only typed as 'Path', so the description must compensate. It does: the argument is a directory (not a file) and is created when absent. Only a note on relative-vs-absolute input or format expectations is missing.

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 ('Set the default working directory') and immediately explains the effect: resolution of relative .ntop and export paths. That scope sentence makes the tool's role concrete. No sibling does anything comparable, so no differentiation is needed, though none is offered either.

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: an agent can infer it should call this before using relative paths for .ntop files or exports. There is no explicit when-to-use statement, no mention of interaction with other path-taking tools, and no guidance on when it is unnecessary.

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