Skip to main content
Glama

Inspect space files

inspect_space
Read-only

Read files and directories in a space. A space is a virtual filesystem with these directories:

  • app/ - Genesis app source code (React, CSS, config). Writable via write_file.

  • projects/ - Task trees (.taskproj files). Read-only.

  • agents/ - AI agent definitions (.md files). Read-only.

  • automations/ - Workflow definitions (.taskflow files). Read-only.

  • media/ - Uploaded files. Read-only. Use path "." to list the root, then navigate into subdirectories.

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": {
      "spaceId": "<spaceId>"
    },
    "name": "inspect_space"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoVFS path to view. Examples: "." (root), "app/", "app/src/App.tsx", "projects/", "agents/", "automations/", "media/".
appIdNoApp ID. When omitted, resolves the default (first-created) app in the space.
spaceIdYesSpace ID
viewRangeNoLine range [start, end] for viewing file excerpts: 1-based, both lines included, and an end of -1 means the last line

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / viewRange / description
      Previous value: -"Line range [start, end] for viewing file excerpts"New value: +"Line range [start, end] for viewing file excerpts: 1-based, both lines included, and an end of -1 means the last line"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description earns credit beyond that by disclosing the writability status of each directory, which annotations cannot express. It stops short of describing output shape, large-file truncation, or binary handling.

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?

Front-loaded with the core verb and resource in the first sentence, then a scannable bullet list where each entry carries a distinct fact (contents, file type, writability). No filler or restatement of the title.

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?

For a 4-parameter read tool with no output schema, the description supplies enough to call it correctly: what the filesystem contains, what each directory holds, and how to start at the root. It leaves a small gap around what happens for very large files or invalid paths, which the agent would otherwise need to discover at call time.

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 100%, so path, appId, spaceId, and viewRange are all documented in structured fields; baseline is 3. The description reinforces path semantics with root-listing and navigation behavior, but adds nothing about appId defaulting or viewRange line-range behavior beyond what the schema already states.

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 and resource ('Read files and directories in a space') and immediately defines what a space is through a concrete directory map. It also draws a boundary against the write sibling by marking app/ as 'Writable via `write_file`' while all other directories are 'Read-only', so an agent can distinguish it from write_file without opening a schema.

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

Usage Guidelines3/5

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

Gives procedural guidance ('Use path "." to list the root, then navigate into subdirectories'), which is real when-to-use content. However, it never addresses the overlapping siblings in the catalog (list_media, list_agents, list_automations, list_folders) that appear to reach the same virtual directories, and provides no when-not guidance or error conditions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.