Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_run_forge_script

Run Solidity forge scripts on a forked network using a saved script reference or inline source; test execution without spending real tokens.

Instructions

Run a Solidity forge script on a forked network. Pass EITHER scriptRef (a reference returned by other tools in simulationHint — preferred, just pass the string) OR scriptContent (inline Solidity source). No real tokens are spent.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "factor_run_forge_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
passwordNoWallet password if encrypted
scriptRefNoReference to a pre-saved script (from simulationHint). PREFERRED — just pass this string as-is. The script is already saved on disk.
scriptNameNoName for the script file (default: Script.sol)
scriptContentNoInline Solidity source code. Only use if no scriptRef is available.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.9

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description does carry the key disclosure that this runs on a fork and 'No real tokens are spent,' which is genuinely useful safety context. It leaves other behavioral facts unstated: whether state changes persist, what a successful or failed run looks like, and whether the password parameter implies an unlock/signing side effect.

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?

Three compact sentences with the purpose front-loaded and the parameter choice immediately after. The parenthetical 'preferred, just pass the string' partly duplicates the schema but stays short.

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?

Covers the essentials for invoking it (fork semantics, no real funds, which reference parameter to use) but, with no output schema and no annotations, says nothing about what is returned or how failures are reported. Adequate rather than complete for a 4-parameter execution tool.

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 baseline is 3. The description restates the scriptRef-vs-scriptContent preference already spelled out in the schema descriptions and adds nothing about scriptName or password semantics, so it does not meaningfully exceed the schema.

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?

States a specific verb and resource ('Run a Solidity forge script') and adds the execution environment ('on a forked network'). It implicitly distinguishes itself from read/query siblings like factor_cast_call, but never names or contrasts any sibling 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?

Gives clear intra-tool guidance: pass scriptRef when available and only fall back to scriptContent otherwise. It offers no tool-level when-to-use or when-not-to-use guidance relative to alternatives such as factor_cast_call or the compile/execute siblings, which an agent must infer.

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

Deploy Server

Other Tools