Skip to main content
Glama
MCP Directory Share

MCP Directory Share

Ler Conteúdo do Arquivo

read_file_content

Read the contents of a file from a shared directory to provide AI agents with local context. Supports UTF-8, base64, and hex encodings.

Instructions

Lê o conteúdo de um arquivo em um diretório compartilhado

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": {
      "filePath": "<filePath>"
    },
    "name": "read_file_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
encodingNoCodificação para leiturautf8
filePathYesCaminho completo do arquivo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/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 discloses almost nothing beyond the basic read action. It does not say what happens if the file is missing or unreadable, whether large or binary files are truncated, or what form the content is returned in (raw string vs. decoded per the encoding parameter). The shared-directory scoping is the only real behavioral constraint offered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with no filler and the key scope qualifier placed at the end. It is efficient, though it is arguably too terse for a tool with no annotations to lean on.

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 simple two-parameter read tool with a fully documented schema and no output schema, the description covers the essentials of what it does. It falls short on failure modes, size/truncation behavior, and return format, which matter for an agent with no annotations to fall back on.

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%, with filePath and the encoding enum both documented in the schema itself. The description adds no meaning beyond that — no notes on path format (absolute vs. relative, sandboxing) or on how base64/hex affect the returned content — so the baseline 3 applies.

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?

The description pairs a specific verb (lê) with a specific resource (conteúdo de um arquivo) and adds scope (em um diretório compartilhado), which separates it from siblings like list_directory_contents or get_path_metadata. It lacks any explicit sibling differentiation, but the verb+resource+scope combination is unambiguous.

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?

The phrase 'em um diretório compartilhado' implicitly constrains use to files inside shared directories, which is a useful usage hint. However, it never states when to prefer this over get_path_metadata or list_directory_contents, nor any precondition such as the file already being registered as shared.

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