Skip to main content
Glama
ContextMap
by Leoomk

mc_rastrear_caminho

Trace the exact dependency path between two files or modules to understand how one component affects another. Identify connection chains before making code changes.

Instructions

Descobre o caminho exato de conexões (pontes de dependência) entre dois arquivos/módulos para entender como a Tela A afeta o Serviço B.

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": {
      "origem": "<origem>",
      "destino": "<destino>"
    },
    "name": "mc_rastrear_caminho"
  }
}

Input Schema

NameRequiredDescriptionDefault
origemYesCaminho do arquivo de partida (ex: 'src/pages/Hub.tsx')
destinoYesCaminho do arquivo de chegada (ex: 'src/services/Database.ts')
caminho_projetoNoCaminho do projeto caso ainda não esteja carregado

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?

No annotations exist, so the description carries the full behavioral burden, yet it only says the tool 'discovers' a path. It never states that it is a read-only operation, whether traversal is directional or how deep it goes, what happens if no path exists, or how results are shaped, leaving real gaps for a traversal tool with zero annotation coverage.

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?

It is a single, front-loaded sentence with the core purpose first and the illustrative use case trailing as a parenthetical. Nothing is redundant, though the example is slightly decorative rather than operational.

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-file lookup this is close to adequate: the inputs are fully documented and the purpose is stated. However, with no output schema, the description never explains what a returned 'path' looks like (ordered chain, multiple paths, or none found), which is the main thing an agent must anticipate here.

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 origem, destino and caminho_projeto are already documented with examples in the schema. The description adds the conceptual framing (start/end files, dependency bridges) but no format or syntax detail beyond what the schema provides, which matches the baseline for fully documented parameters.

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 states a specific verb and resource: it discovers the exact path of connections (dependency bridges) between two files/modules, and it illustrates the result with a concrete scenario (how Tela A affects Serviço B). This clearly separates it from analysis siblings like mc_analisar_impacto, though it never names an alternative explicitly.

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?

Usage is only implied through the motivating example ('para entender como a Tela A afeta o Serviço B'), which suggests when the tool is useful. There is no explicit when-not-to-use guidance and no mention of alternatives such as the impact-analysis tools, so the agent must infer the boundary itself.

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