Skip to main content
Glama
songzhifei512

multi-agent-bridge

worker_read_file

Read files a spawned worker is authorized to access inside its workdir, using relative or bounded absolute paths, with optional offset and limit for partial content.

Instructions

Read a file the worker is authorized to access (bounded by its workdir, NOT BRIDGE_WORK_ROOT). For spawned worker sessions only. Worker passes file_path relative to its workdir, or absolute within workdir parent tree.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo
workdirYesworker 的授权 workdir(主控传入 args.workdir)
file_pathYes相对 worker workdir 的路径,或 workdir 父树内的绝对路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.2

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the security boundary (workdir, NOT BRIDGE_WORK_ROOT) and path semantics, but says nothing about return format, error behavior on out-of-scope paths, or how limit/offset pagination behaves.

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 tightly written sentences, front-loaded with the core action and then the scope constraint. No filler; every clause adds operational information.

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?

For a 4-parameter tool with no annotations and no output schema, the description covers authorization scope well but leaves limit/offset pagination and the return shape entirely unexplained. It is adequate but not complete for correct invocation.

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 50%: workdir and file_path are documented in the schema, and the description reinforces file_path semantics. However limit and offset are undocumented in both the schema and the description, so half the parameters lack meaning.

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?

States a specific verb (Read) and resource (a file), plus the authorization scope (bounded by workdir, not BRIDGE_WORK_ROOT). The line 'For spawned worker sessions only' distinguishes it from the plain read_file sibling, though it never names that sibling explicitly.

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?

Clearly scopes usage to spawned worker sessions and explains the path-resolution rule (relative to workdir or absolute within the workdir parent tree). It stops short of naming an alternative tool or stating when-not-to-use beyond the session restriction.

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