Skip to main content
Glama

code_workspace_chat

Send messages to a code workspace to write code, run commands, analyze files, or propose changes.

Instructions

Send a message to a code workspace — ask it to write code, run commands, analyze files.

Args: workspace_id: The workspace ID to interact with message: Your instruction or question action: Optional coding action such as chat, explain_code, or propose_changes. propose_changes is normalized to preview chat mode for backend compatibility. conversation_id: Optional conversation/thread ID for continuity active_file: Optional active file path to bias the coding agent history: Optional JSON array of prior chat messages attachments: Optional JSON array of attachments context: Optional JSON object with structured coding context policy: Optional JSON object with workspace policy overrides preview_mode: If true, return proposed changes without mutating files auto_push: If true, allow the coding run to auto-push after verification

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspace_idYes
messageYes
actionNochat
conversation_idNo
active_fileNo
historyNo[]
attachmentsNo[]
contextNo{}
policyNo{}
preview_modeNo
auto_pushNo
idempotency_keyNo
agent_model_selection_idNo
agent_provider_connection_idNo
agent_model_idNo
agent_model_profile_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description carries full burden. It mentions preview_mode for non-mutating behavior, but does not disclose destructive potential, authorization needs, rate limits, or other side effects. The tool clearly mutates workspace state in normal mode, but this is implicit.

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 description starts with a clear one-liner, but the Args section is verbose and lists all parameters in a block. Some sentences like 'propose_changes is normalized to preview chat mode for backend compatibility' could be more concise. Overall adequate but not tight.

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?

Given 16 parameters, no annotations, and an output schema (not shown), the description does not explain return values, pagination, or idempotency. While it covers the core interaction, it lacks completeness for a tool with many optional advanced parameters.

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%, but the description adds explanations for 6 of 16 parameters (e.g., action normalization, preview_mode, auto_push). However, many parameters like idempotency_key and agent_model_selection_id are left undocumented. The description provides partial improvement over the bare schema.

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?

The description clearly states the verb 'Send a message' and the resource 'code workspace', with specific actions like 'write code, run commands, analyze files'. It distinguishes the tool's purpose from general coding tools, but does not explicitly differentiate from sibling tools like code_workspace_claude_session_action or coding_chat.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool vs alternatives (e.g., coding_chat, code_workspace_claude_session_action). The description only states what the tool does without explaining context or prerequisites.

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/RPasquale/lightbulb-mcp'

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