Skip to main content
Glama
MCP Directory Share

MCP Directory Share

Obter Metadados do Caminho

get_path_metadata

Retrieve metadata for a file or directory by path to inspect its type and details before listing or reading shared directory contents.

Instructions

Obtém metadados de um arquivo ou diretório

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

Input Schema

NameRequiredDescriptionDefault
pathYesCaminho do arquivo ou diretório

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden, yet it says nothing about what metadata fields are returned, whether it follows symlinks, what permissions are required, or how missing paths are handled. Only the implicit read-only nature can be inferred from 'Obtém'.

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

Conciseness3/5

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

The single short sentence is front-loaded and free of padding, but its brevity stems from under-specification rather than efficiency — it omits information an agent needs to call the tool confidently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description is the only source of behavioral information, and it does not explain the shape of the returned metadata or error conditions. For a tool whose entire output is undefined elsewhere, this is a significant gap.

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 description coverage ('Caminho do arquivo ou diretório'), so the schema already documents it fully. The description adds no format details such as absolute vs. relative paths, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a verb ('Obtém') and resource ('metadados de um arquivo ou diretório'), so the operation is identifiable, but 'metadados' is never specified and nothing distinguishes it from siblings like list_directory_contents or read_file_content. It is essentially a slightly elaborated restatement of the name.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool rather than list_directory_contents or read_file_content, and no mention of prerequisites or conditions. The agent must infer usage purely from the name.

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