Skip to main content
Glama

Pacta, by Fractal Neurons — DeFi Control & Dependency Checks

Trace Vault, Market or Token Dependencies

pacta_trace_dependencies
Read-onlyIdempotent

Trace the multi-hop on-chain dependency graph (depth 1..3) of an Ethereum or Base vault, lending market, or token: underlying collateral tokens, minters, price oracles, and bridge verifiers, each edge citing its contract address and pinned block. When to call: before depositing into or integrating a vault, wrapper, or lending market whose exposure depends on downstream contracts. When NOT to call: call pacta_inspect_controls to inspect the upgrade/admin roles of a single contract directly. Read-only compiled graph (0 live RPC calls); free: 100 calls per caller per UTC day (no API key, no wallet).

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": {
      "chain": "<chain>",
      "address": "<address>"
    },
    "name": "pacta_trace_dependencies"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesTarget EVM chain: 'ethereum' (chainId 1) or 'base' (chainId 8453).
depthNoDependency hops to traverse (1 to 3, default 2).
addressYes40-hex-character 0x contract or token address.

Output Schema

NameRequiredDescriptionDefault
noteYes
chainYes
depthYes
countsYes
schemaYes
addressYes
indexedYes
coverageYes
truncatedYes
depends_onYes
control_planeYes
subject_labelNo
protocol_slugsNo
controller_factsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still adds meaningful behavior the annotations do not: the graph is a 'compiled graph (0 live RPC calls)', edges carry a pinned block for reproducibility, and there is a hard quota of 100 calls per caller per UTC day with no API key or wallet required. The only gap is how the traversal behaves when depth exceeds available data, which the output schema likely covers.

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?

Three tightly packed sentences: purpose first, then when/when-not routed by explicit labels, then operational constraints (cost model, quota, auth). No filler, and the most decision-relevant information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only 3-parameter tool with full schema coverage and an output schema, this is complete: chains, depth bounds, what an edge contains, the alternative tool, cost model, quota and auth requirements are all stated. Nothing an agent needs in order to decide or invoke correctly is missing.

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 chain, depth and address are already fully documented with enum, bounds and pattern. The description restates the depth range (1..3) and chain names without adding format or constraint details beyond the schema. Its one semantic addition ('each edge citing its contract address and pinned block') describes output rather than parameters, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource — 'Trace the multi-hop on-chain dependency graph' — and narrows the scope to depth 1..3, specific chains (Ethereum, Base) and specific entity types (vault, lending market, token). It also enumerates the edge types returned (collateral tokens, minters, oracles, bridge verifiers) and explicitly contrasts itself with pacta_inspect_controls, so an agent can distinguish it from siblings without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit trigger ('before depositing into or integrating a vault, wrapper, or lending market whose exposure depends on downstream contracts') and an explicit negative case ('When NOT to call: call pacta_inspect_controls to inspect the upgrade/admin roles of a single contract directly'). Both the when and the when-not name a concrete condition and a concrete alternative.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.