Skip to main content
Glama

forge_tree

Display the dependency tree of a Foundry project to reveal contract and library relationships and resolve build dependencies.

Instructions

Display the dependency tree of a Foundry project (forge tree).

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": {
      "projectPath": "<projectPath>"
    },
    "name": "forge_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
profileNoFoundry profile to use (maps to FOUNDRY_PROFILE env var)
projectPathYesAbsolute path to the foundry project directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and largely doesn't meet it. "Display" implies a read-only, non-mutating operation, but it does not say whether the command resolves/installs missing dependencies, requires a prior build, needs network access, or whether output is printed versus returned.

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 the resource front-loaded and zero padding; the parenthetical command name is useful for mapping to forge CLI knowledge. It is efficient if terse, with no structural problems.

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 inspection tool with a fully described schema and no output schema, the minimum an agent needs to invoke it is present. However, with no annotations and no output schema, the description should have covered side effects (dependency resolution) and roughly what the tree output looks like, which it omits.

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 coverage is 100%, so both projectPath and profile are already fully documented in the schema, and the description adds no additional meaning about path expectations or profile resolution. Baseline 3 is appropriate when the schema does the work.

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?

Specific verb+resource: "Display the dependency tree of a Foundry project", with the underlying forge command named in parentheses. It is clear what the tool returns conceptually, though it does not explicitly contrast itself with siblings like forge_build or forge_inspect that an agent might otherwise pick.

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?

No when-to-use vs when-not-to-use guidance and no named alternatives. The only cue is the word "Display", which implies a read/inspection operation, leaving selection against siblings such as forge_build or forge_inspect to inference.

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