Skip to main content
Glama

forge_install

Installs Foundry project dependencies; use noGit mode to avoid git submodule errors.

Instructions

Install dependencies for a Foundry project (forge install). If git submodule errors occur, try with noGit=true.

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_install"
  }
}

Input Schema

NameRequiredDescriptionDefault
noGitNoInstall without git submodules
commitNoCreate a git commit after installing (default: false)
projectPathYesAbsolute path to the foundry project directory
dependenciesNoDependencies to install, e.g. ['OpenZeppelin/openzeppelin-contracts']

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden. It usefully surfaces one real failure mode (git submodule errors) and the workaround, but says nothing about network access, filesystem writes, whether existing dependencies are overwritten, or whether permissions/credentials are needed.

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 short sentences with zero filler: the action is front-loaded and the recovery hint follows. Every sentence carries information an agent can use.

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 four-parameter mutation tool with no annotations and no output schema, the description covers the action and one failure mode but omits prerequisites (project must exist and be a git repo), side effects, and what the result looks like. Adequate to invoke, but not complete.

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 the schema already documents all four parameters and the baseline is 3. The description adds a partial rationale for `noGit` (submodule failure recovery), which is genuine value, but leaves `commit` and `dependencies` entirely to the schema, so it does not rise above the baseline by much.

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 gives a specific verb and resource: install dependencies for a Foundry project, and echoes the underlying `forge install` command. It is clearly distinguishable from siblings like forge_build, forge_init, or forge_test, though it never explicitly names or contrasts them.

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?

It provides actionable conditional guidance — if git submodule errors occur, retry with noGit=true — which an agent can act on mid-failure. It lacks the complementary half, e.g. that the directory must already be a Foundry/git project or when to prefer forge_init instead, so it stops short of full when/when-not coverage.

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