Skip to main content
Glama

read_workspace_file

Read-onlyIdempotent

Reads files from the workspace, blocking sensitive content like keys and tokens. With a session ID, restricts to the session's repo path and returns sha256.

Instructions

Read a file within the workspace. Sensitive files (secrets, keys, tokens) are blocked. In Direct mode (with session_id), reads are scoped to the session's repo_path and return sha256.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesRelative path to a file inside the workspace or session repo
session_idNoOptional Direct session ID. When provided, read scope is limited to the session's repo_path and sha256 is returned.
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, covering the safety profile. The description adds valuable behavioral context: sensitive files are blocked, and Direct mode scopes reads to the session's repo_path and returns sha256, going beyond the annotations.

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?

The description is two sentences, each earning its place: the first defines the core action, the second adds constraints and mode-specific behavior. There is no redundant wording or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given a simple 2-parameter tool with read-only annotations and no output schema, the description covers purpose, constraints, and mode-specific return behavior. It is fully sufficient for an agent to correctly select and invoke the tool.

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?

The input schema fully describes both parameters (100% coverage), providing a baseline of 3. The description adds meaning by noting that sensitive files are blocked, enriching the semantics of the 'path' parameter beyond the schema description.

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 the tool reads a file within the workspace, using the specific verb 'Read' and resource 'file within the workspace'. It also mentions sensitive file blocking and Direct mode behavior, distinguishing it from sibling tools that write, delete, or list files.

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 provides clear context for when to use the tool: for reading files, with special behavior in Direct mode when session_id is provided. It does not explicitly name alternative tools or exclusions, but the context is sufficient for agent selection.

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/jiezeng2004-design/PatchWarden'

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