Skip to main content
Glama

file_root

Reports the confinement root and addressable storage adapter names so agents resolve files using correct relative or adapter://root/... paths.

Instructions

Report your access scope FIRST: the confinement root you're locked to (if any) and the storage adapter names you can address. If confined, address files with bare relative paths (they resolve UNDER your root) or full adapter://root/... paths - never guess adapter names.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "file_root"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
hintYes
rootNo
adapterNo
confinedYes
storagesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and delivers the important context: the root may or may not exist ('if any'), path resolution semantics (bare relative paths resolve under the root), and the accepted adapter://root/... form. It doesn't explicitly state that the call is side-effect free or read-only, which is a minor gap for an unannotated tool.

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, both front-loaded and imperative, with no filler. The scope statement comes before the path-addressing rules, which matches the order the agent needs them.

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?

The tool is simple (no parameters, no nested objects) and an output schema already documents return values, so the description only needs to explain when to call it and how to interpret what it reports. It covers the confinement root, its optionality, the addressable adapters, and the path forms, which is everything an agent needs to act on the result.

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 tool takes zero parameters, so there is no parameter meaning for the description to add; the baseline for a no-parameter schema applies. The description's path-format guidance instead informs how the agent should use its output, which is a reasonable substitute.

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: report your access scope, namely the confinement root and addressable storage adapter names. The name file_root alone would be ambiguous, but the description pins down that it returns environment/scope information rather than rooting or resolving a single file, which separates it from siblings like file_info and file_list.

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?

Gives explicit ordering guidance ('Report your access scope FIRST') and a hard rule against guessing adapter names, which tells the agent to call this before addressing files. It stops short of naming alternative sibling tools or stating when this call is unnecessary, so it falls just shy of the full bar.

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