Skip to main content
Glama

workspace_get_file

Read-onlyIdempotent

Read the current content of a shared workspace file by path. Use it to retrieve up-to-date file data for your agent, then list files or check history for other versions.

Instructions

Read the current content of a shared workspace file by path. Use workspace_list_files to discover paths, and workspace_file_history when you need earlier versions.

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": "workspace_get_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesWorkspace-relative file path to read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.12
    • addedInput schema / properties / path / description
      Added value: +"Workspace-relative file path to read."
  2. First observedv0.5.11

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered structurally. The description adds the meaningful behavioral distinction that this returns the *current* content rather than a prior version, which is exactly the ambiguity a path-based read tool creates. It does not mention what happens if the path does not exist, which keeps it short of a 5.

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?

Two sentences, with the core operation front-loaded before the sibling routing. Every clause earns its place — no restatement of the name, no 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?

For a one-parameter, read-only tool with rich annotations and no output schema, the definition supplies everything needed to select and invoke it: the operation, the addressing scheme, and the two adjacent tools it should not be confused with.

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?

There is a single parameter with 100% schema coverage, so the schema already defines "path" as a workspace-relative file path. The description's "by path" restates rather than extends that meaning; per the high-coverage baseline, 3 is the correct ceiling here.

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 a specific verb ("Read"), a specific resource ("shared workspace file"), and scopes it to "current content" retrieved "by path." The second sentence names the sibling tools it is not, so an agent can separate reading current content from listing paths or fetching historical versions without opening any schema.

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

Usage Guidelines5/5

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

Explicitly routes the agent: use workspace_list_files to discover paths, and workspace_file_history when earlier versions are needed. Both an alternative and the condition that selects it are given, leaving nothing to inference.

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