Skip to main content
Glama
amalikn

smart-coding-mcp

by amalikn

e_set_workspace

Switch the active project workspace to a new directory when the current path is incorrect. Automatically creates cache and optionally re-indexes the new workspace.

Instructions

Change the project workspace path at runtime. Use this when you detect the current workspace is incorrect or you need to switch to a different project directory. Creates cache folder automatically and optionally re-indexes the new workspace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute path to the new workspace directory
reindexNoWhether to trigger re-indexing after switching (default: true)
clearCacheNoWhether to clear existing cache before switching (default: false)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv2.3.3

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the disclosure burden. It reveals a side effect not in the schema ('Creates cache folder automatically') and mentions optional re-indexing. However, it doesn't describe failure behavior, whether the old workspace index is preserved or removed, or whether re-indexing is synchronous; for a mutation with no annotation safety net, this is only moderate transparency.

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?

Three sentences, no filler, with the core action first, followed by usage guidance and side effects. Every sentence earns its place, and structure aids scanning.

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?

The description covers purpose, when to use, and key side effects, and the schema handles parameter meaning. It doesn't describe return values or error conditions, which is a gap given there's no output schema or annotations, but an agent has enough context to select and call it correctly in the common case.

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?

All three parameters are fully documented in the schema (100% coverage), so the baseline applies. The description adds no parameter-specific detail beyond what the schema already provides; it only restates the reindex concept in prose.

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

Purpose5/5

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

States the exact operation ('Change the project workspace path at runtime'), naming both the action and the resource. It is clearly distinct from sibling tools such as a_semantic_search or c_clear_cache, which have different scopes.

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

Usage Guidelines4/5

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

Gives an explicit trigger condition ('when you detect the current workspace is incorrect or you need to switch to a different project directory'), so an agent knows when to invoke it. It does not enumerate when-not-to-use cases or explicitly name alternative sibling tools, so it falls short of a full 5.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/amalikn/smart-coding-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server