Skip to main content
Glama

bind_workspace

Associate a local workspace path with a repository slug, enabling the system to return relevant context for that directory automatically.

Instructions

Associate a local workspace path with a repo slug.

Once bound, get_current_workspace(path) returns the repo slug so the LLM can auto-select relevant context when you're working in that dir.

The MCP client's Roots capability is the canonical source of the current workspace path; this tool expects that path passed in.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
repo_slugYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the side-effect (persistent binding recorded so get_current_workspace can read it) and the constraint that the path must come from the Roots capability. However, it doesn't state whether binding overwrites an existing binding, whether it's destructive, or whether it requires any special permissions.

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?

Three short paragraphs, front-loaded with the core action, followed by effect and context. No wasted sentences, though the formatting with blank lines is slightly heavier than needed.

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?

The tool has an output schema, so return values are covered elsewhere. For a state-mutating tool with no annotations, the description covers the mechanism and downstream effect reasonably. But it omits details like whether binding is overwrite or idempotent, and given the 'bind' semantic, a note on reversibility (unbind_workspace) would strengthen completeness.

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 0%, so the schema only provides types, not meaning. The description explains the 'path' parameter's origin (from Roots capability) but doesn't elaborate on 'repo_slug' format expectations or validation beyond what's in the schema. It adds some value but could be richer.

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?

The description clearly states a specific verb+resource ('Associate a local workspace path with a repo slug'). It also explains the downstream effect (get_current_workspace returns the slug) which distinguishes it from siblings like unbind_workspace and get_current_workspace.

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?

The description explains WHY to bind (so the LLM can auto-select relevant context) and that the Roots capability is the canonical source of the path. It doesn't explicitly state when NOT to use it or name alternatives, but the context is clear and useful.

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

Install Server

Other Tools

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/srmackey/context-forge'

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