Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_cast_call

Executes read-only smart contract calls via Foundry cast to retrieve balances, allowances, and contract state without sending transactions.

Instructions

Execute a read-only contract call using Foundry cast. Useful for checking balances, allowances, and contract state.

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": {
      "to": "<to>",
      "signature": "<signature>"
    },
    "name": "factor_cast_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesContract address to call
argsNoFunction arguments
blockNoBlock number or "latest" (default: latest)
decodeNoDecode the output (default: true)
signatureYesFunction signature (e.g., "balanceOf(address)(uint256)" or just "balanceOf(address)")

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 carries the full burden and does disclose the key trait: the call is read-only. However, it omits anything about required RPC/network configuration, failure behavior for reverts or bad signatures, or how the decoded output is returned, leaving meaningful behavioral gaps.

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?

Two short sentences, front-loaded with the core action and followed by concrete use cases. No filler, though the second sentence is somewhat generic.

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 five-parameter tool with no annotations and no output schema, the description covers the action and the read-only nature but says nothing about what the returned value looks like or how decode affects it. It is adequate but leaves the agent to infer the output contract.

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 all five parameters are already documented in the schema. The description adds no syntax or format detail beyond what the schema provides (e.g., signature format, block semantics), so the baseline 3 applies.

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 ('Execute a read-only contract call using Foundry cast') and names concrete use cases (balances, allowances, contract state). It is clear what the tool does, though it doesn't explicitly differentiate itself from the similarly named factor_check_foundry sibling.

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?

The phrase 'Useful for checking balances, allowances, and contract state' implies when to reach for it, but there is no explicit when-not guidance or named alternative for read-only vs. state-changing calls. The agent must infer that this is the raw-call fallback when no dedicated tool exists.

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