Skip to main content
Glama

Relations of an address

get_entity_relations
Read-only

The relations an address holds now — which implementation a proxy points at, which beacon it reads, who administers it, where an account has delegated, which lending market lists a token — as the subject (what it points at, the default) or as the object (who points at it). One hop from this address: to follow a counterpart, call the tool on it. Ordered by relation id, then counterpart. One implementation can be pointed at by millions of proxies, so the first page of the object side also states counts: how many addresses point at it per relation id. Use it to find a proxy's implementation, a contract's administrator or an account's delegate. Not for a past block (get_entity_relations_at_block), the timeline (get_entity_relation_history) or interaction partners (get_entity_counterparties). For the evidence behind one relation, use get_entity_relation_proof. Not for a proxy's implementation history as its code and storage show it: use get_contract_proxy.

Arguments: address; optional direction, attributeId, limit (default 10, at most 50), cursor. chain_id defaults to 1 (Ethereum mainnet, the only chain served). Paged: pass data.nextCursor back as cursor, with the same other arguments, until it is absent — no nextCursor means the list is complete, even when the page is exactly limit long. Freshness: the current state; each attribute or relation carries the block it was evaluated at, and the answer as a whole states no block (meta.asOfBlock is absent). meta.cached is true when the answer came from the TraceFast response cache (refreshed within minutes); meta.timestamp is when it was produced, in Unix milliseconds.

Minimum plan: Intelligence; the Investigation plan includes it. Rate class: standard. Documentation: https://docs.tracefast.xyz/api/address-relations

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

Input Schema

NameRequiredDescriptionDefault
limitNoHow many rows to return: 1 to 50, default 10. A larger value is refused with `bad_request`, `details.reason` `limit_out_of_range` and `details.maxLimit`, never cut.
cursorNo`data.nextCursor` of this tool's previous answer, passed back unchanged with the same other arguments. Opaque; absent on the first call.
addressYesThe address, `0x`-prefixed, 40 hex characters, any case.
chain_idNoChain id. Only 1 (Ethereum mainnet) is served; the default.
directionNo`subject` (default) or `object`.
attributeIdNoNarrow to one relation id, `relation:name`. Any id the graph publishes is accepted.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / direction / enum
      Added value: +[
      +  "subject",
      +  "object"
      +]
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "data": {
      -        "properties": {
      -          "address": {
      -            "type": "string"
      -          },
      -          "chainId": {
      -            "type": "integer"
      -          },
      -          "counts": {
      -            "items": {
      -              "properties": {
      -                "attributeId": {
      -                  "type": "string"
      -                },
      -                "count": {
      -                  "minimum": 0,
      -                  "type": "integer"
      -                }
      -              },
      -              "required": [
      -                "attributeId",
      -                "count"
      -              ],
      -              "type": "object"
      -            },
      -            "type": [
      -              "array",
      -              "null"
      -            ]
      -          },
      -          "direction": {
      -            "type": "string"
      -          },
      -          "nextCursor": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "relations": {
      -            "items": {
      -              "properties": {
      -                "attributeId": {
      -                  "type": "string"
      -                },
      -                "counterpart": {
      -                  "type": "string"
      -                },
      -                "referenceBlock": {
      -                  "type": "integer"
      -                },
      -                "result": {
      -                  "type": "string"
      -                },
      -                "value": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "attributeId",
      -                "counterpart",
      -                "result",
      -                "referenceBlock"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "chainId",
      -          "address",
      -          "direction",
      -          "relations"
      -        ],
      -        "type": "object"
      -      },
      -      "links": {
      -        "properties": {
      -          "web": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "web"
      -        ],
      -        "type": "object"
      -      },
      -      "meta": {
      -        "properties": {
      -          "asOfBlock": {
      -            "minimum": 0,
      -            "type": [
      -              "integer",
      -              "null"
      -            ]
      -          },
      -          "cached": {
      -            "type": "boolean"
      -          },
      -          "chain": {
      -            "type": "string"
      -          },
      -          "coverage": {
      -            "additionalProperties": {
      -              "type": "integer"
      -            },
      -            "propertyNames": {
      -              "type": "string"
      -            },
      -            "type": [
      -              "object",
      -              "null"
      -            ]
      -          },
      -          "docs": {
      -            "type": "string"
      -          },
      -          "timestamp": {
      -            "minimum": 0,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "chain",
      -          "timestamp",
      -          "cached",
      -          "docs"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "data",
      -      "meta",
      -      "links"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "error": {
      -        "properties": {
      -          "code": {
      -            "type": "string"
      -          },
      -          "details": {
      -            "type": [
      -              "object",
      -              "null"
      -            ]
      -          },
      -          "message": {
      -            "type": "string"
      -          },
      -          "requestId": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "message"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "data": {
      +        "properties": {
      +          "address": {
      +            "type": "string"
      +          },
      +          "chainId": {
      +            "type": "integer"
      +          },
      +          "counts": {
      +            "items": {
      +              "properties": {
      +                "attributeId": {
      +                  "type": "string"
      +                },
      +                "count": {
      +                  "minimum": 0,
      +                  "type": "integer"
      +                }
      +              },
      +              "required": [
      +                "attributeId",
      +                "count"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "direction": {
      +            "type": "string"
      +          },
      +          "nextCursor": {
      +            "type": "string"
      +          },
      +          "relations": {
      +            "items": {
      +              "properties": {
      +                "attributeId": {
      +                  "type": "string"
      +                },
      +                "counterpart": {
      +                  "type": "string"
      +                },
      +                "referenceBlock": {
      +                  "type": "integer"
      +                },
      +                "result": {
      +                  "type": "string"
      +                },
      +                "value": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "attributeId",
      +                "counterpart",
      +                "result",
      +                "referenceBlock"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "chainId",
      +          "address",
      +          "direction",
      +          "relations"
      +        ],
      +        "type": "object"
      +      },
      +      "links": {
      +        "properties": {
      +          "web": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "web"
      +        ],
      +        "type": "object"
      +      },
      +      "meta": {
      +        "properties": {
      +          "asOfBlock": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "cached": {
      +            "type": "boolean"
      +          },
      +          "chain": {
      +            "type": "string"
      +          },
      +          "coverage": {
      +            "additionalProperties": {
      +              "type": "integer"
      +            },
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          "docs": {
      +            "type": "string"
      +          },
      +          "timestamp": {
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "chain",
      +          "timestamp",
      +          "cached",
      +          "docs"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "data",
      +      "meta",
      +      "links"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "details": {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "requestId": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only cover read-only/closed-world; the description adds pagination contract (no nextCursor means the list is complete even when the page equals limit), the one-hop rule for following counterparies, the first-page-only `counts` field and why it exists, and freshness semantics (meta.asOfBlock absent, meta.cached, meta.timestamp in Unix ms). It also discloses plan gating and rate class, none of which appear in structured fields.

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?

Front-loaded with purpose, then routing, then arguments, then pagination/freshness — a sensible order. It is dense and slightly overstuffed, restating limit's default and maximum that the schema already declares, but every other sentence carries non-redundant operational information.

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 6-parameter, paged, cache-backed read tool with an output schema, everything an agent needs to call it correctly is present: direction semantics, page size limits, cursor protocol, freshness caveats, and the absence of an as-of block. Return shape is left to the output schema, appropriately.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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, but the description adds real meaning: subject is 'what it points at, the default' versus object 'who points at it', and the cursor round-trip is spelled out as data.nextCursor passed back with identical other arguments. It stops short of explaining attributeId syntax beyond the schema's own `relation:name` note.

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?

States a specific resource ('the relations an address holds now') and enumerates the concrete relation kinds (proxy implementation, beacon, administrator, delegation, lending market) plus the subject/object orientation. An agent can distinguish this from get_entity_attributes or get_entity_counterparties from the description alone.

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?

Gives positive triggers ('Use it to find a proxy's implementation, a contract's administrator or an account's delegate') and explicit exclusions naming four siblings plus get_contract_proxy, each with the condition that selects them (past block, timeline, counterparties, per-relation evidence, proxy code/storage).

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.

Resources