Skip to main content
Glama

Get Transaction Information

get_transaction_info
Read-only
Get comprehensive transaction information.
Unlike standard eth_getTransactionByHash, this tool returns enriched data including decoded input parameters, detailed token transfers with token metadata, transaction fee breakdown (priority fees, burnt fees) and categorized transaction types.
By default, the raw transaction input is omitted if a decoded version is available to save context; request it with `include_raw_input=True` only when you truly need the raw hex data.
Essential for transaction analysis, debugging smart contract interactions, tracking DeFi operations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chain_idYesThe ID of the blockchain
session_idNoOpaque session identifier.
transaction_hashYesTransaction hash
include_raw_inputNoIf true, includes the raw transaction input data.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesThe main data payload of the tool's response.
notesNoA list of important contextual notes, such as warnings about data truncation or data quality issues.
paginationNoPagination information, present only if the 'data' is a single page of a larger result set.
content_textNoOptional human-readable summary used for MCP content responses.
instructionsNoA list of suggested follow-up actions or instructions for the LLM to plan its next steps.
data_descriptionNoA list of notes explaining the structure, fields, or conventions of the 'data' payload.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / session_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Opaque session identifier.",
      +  "title": "Session Id"
      +}
  2. Changed10 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / chain_id / title
      Added value: +"Chain Id"
    • addedInput schema / properties / include_raw_input / anyOf
      Added value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / include_raw_input / description
      Previous value: -"Include raw transaction input data"New value: +"If true, includes the raw transaction input data."
    • addedInput schema / properties / include_raw_input / title
      Added value: +"Include Raw Input"
    • removedInput schema / properties / include_raw_input / type
      Removed value: -"boolean"
    • addedInput schema / properties / transaction_hash / title
      Added value: +"Transaction Hash"
    • addedInput schema / title
      Added value: +"get_transaction_infoArguments"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "DecodedInput": {
      +      "additionalProperties": true,
      +      "description": "Represents the decoded input data of a transaction.",
      +      "properties": {
      +        "method_call": {
      +          "description": "Name of the called method.",
      +          "title": "Method Call",
      +          "type": "string"
      +        },
      +        "method_id": {
      +          "description": "Identifier of the called method.",
      +          "title": "Method Id",
      +          "type": "string"
      +        },
      +        "parameters": {
      +          "description": "List of decoded input parameters for the method call.",
      +          "items": {},
      +          "title": "Parameters",
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "method_call",
      +        "method_id",
      +        "parameters"
      +      ],
      +      "title": "DecodedInput",
      +      "type": "object"
      +    },
      +    "NextCallInfo": {
      +      "description": "A structured representation of the tool call required to get the next page.",
      +      "properties": {
      +        "params": {
      +          "additionalProperties": true,
      +          "description": "A complete dictionary of parameters for the next tool call, including the new cursor.",
      +          "title": "Params",
      +          "type": "object"
      +        },
      +        "tool_name": {
      +          "description": "The name of the tool to call for the next page.",
      +          "title": "Tool Name",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "tool_name",
      +        "params"
      +      ],
      +      "title": "NextCallInfo",
      +      "type": "object"
      +    },
      +    "PaginationInfo": {
      +      "description": "Contains the structured information needed to retrieve the next page of results.",
      +      "properties": {
      +        "next_call": {
      +          "$ref": "#/$defs/NextCallInfo",
      +          "description": "The structured tool call required to fetch the subsequent page."
      +        }
      +      },
      +      "required": [
      +        "next_call"
      +      ],
      +      "title": "PaginationInfo",
      +      "type": "object"
      +    },
      +    "TokenTransfer": {
      +      "additionalProperties": true,
      +      "description": "Represents a single token transfer within a transaction.",
      +      "properties": {
      +        "from": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Sender address of the token transfer if available.",
      +          "title": "From"
      +        },
      +        "to": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Recipient address of the token transfer if available.",
      +          "title": "To"
      +        },
      +        "token": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Token metadata dictionary associated with the transfer.",
      +          "title": "Token"
      +        },
      +        "type": {
      +          "description": "Type of transfer (e.g., 'transfer', 'mint').",
      +          "title": "Type",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "from",
      +        "to",
      +        "type"
      +      ],
      +      "title": "TokenTransfer",
      +      "type": "object"
      +    },
      +    "TransactionInfoData": {
      +      "additionalProperties": true,
      +      "description": "Structured representation of get_transaction_info data.",
      +      "properties": {
      +        "decoded_input": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/DecodedInput"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Decoded method input if available."
      +        },
      +        "from": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Sender of the transaction if available.",
      +          "title": "From"
      +        },
      +        "raw_input": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Raw transaction input data if returned.",
      +          "title": "Raw Input"
      +        },
      +        "raw_input_truncated": {
      +          "anyOf": [
      +            {
      +              "type": "boolean"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Indicates if raw_input was truncated.",
      +          "title": "Raw Input Truncated"
      +        },
      +        "to": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Recipient of the transaction if available.",
      +          "title": "To"
      +        },
      +        "token_transfers": {
      +          "description": "List of token transfers related to the transaction.",
      +          "items": {
      +            "$ref": "#/$defs/TokenTransfer"
      +          },
      +          "title": "Token Transfers",
      +          "type": "array"
      +        },
      +        "user_operations": {
      +          "anyOf": [
      +            {
      +              "items": {
      +                "$ref": "#/$defs/UserOpsLite"
      +              },
      +              "type": "array"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "List of ERC-4337 User Operations associated with this transaction",
      +          "title": "User Operations"
      +        }
      +      },
      +      "title": "TransactionInfoData",
      +      "type": "object"
      +    },
      +    "UserOpsLite": {
      +      "description": "Represents a summary of an ERC-4337 User Operation.",
      +      "properties": {
      +        "operation_hash": {
      +          "description": "The hash of the user operation",
      +          "title": "Operation Hash",
      +          "type": "string"
      +        },
      +        "sender": {
      +          "description": "The address that sent the user operation",
      +          "title": "Sender",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "sender",
      +        "operation_hash"
      +      ],
      +      "title": "UserOpsLite",
      +      "type": "object"
      +    }
      +  },
      +  "properties": {
      +    "content_text": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Optional human-readable summary used for MCP content responses.",
      +      "title": "Content Text"
      +    },
      +    "data": {
      +      "$ref": "#/$defs/TransactionInfoData",
      +      "description": "The main data payload of the tool's response."
      +    },
      +    "data_description": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "A list of notes explaining the structure, fields, or conventions of the 'data' payload.",
      +      "title": "Data Description"
      +    },
      +    "instructions": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "A list of suggested follow-up actions or instructions for the LLM to plan its next steps.",
      +      "title": "Instructions"
      +    },
      +    "notes": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "A list of important contextual notes, such as warnings about data truncation or data quality issues.",
      +      "title": "Notes"
      +    },
      +    "pagination": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/PaginationInfo"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Pagination information, present only if the 'data' is a single page of a larger result set."
      +    }
      +  },
      +  "required": [
      +    "data"
      +  ],
      +  "title": "ToolResponse[TransactionInfoData]",
      +  "type": "object"
      +}
  3. Changed9 schema fields changed
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / chain_id / title
      Removed value: -"Chain Id"
    • removedInput schema / properties / include_raw_input / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / include_raw_input / description
      Previous value: -"If true, includes the raw transaction input data."New value: +"Include raw transaction input data"
    • removedInput schema / properties / include_raw_input / title
      Removed value: -"Include Raw Input"
    • addedInput schema / properties / include_raw_input / type
      Added value: +"boolean"
    • removedInput schema / properties / transaction_hash / title
      Removed value: -"Transaction Hash"
    • removedInput schema / title
      Removed value: -"get_transaction_infoArguments"
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds meaningful behavioral context: raw input is omitted by default to save context, and include_raw_input=True is needed to retrieve it. This goes beyond the annotations and helps the agent understand the tool's default behavior and trade-offs.

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?

The description is four sentences, front-loaded with the core purpose, and every sentence provides distinct value: what it does, how it differs, default behavior, and use cases. No fluff or repetition.

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?

The tool has an output schema, so return values need not be explained. The description covers purpose, comparison to alternatives, default behavior, and appropriate use cases. Given the annotations and schema, the description is complete and leaves no critical gaps.

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 description coverage is 100%, so the baseline is 3. The description adds value by explaining the rationale behind include_raw_input (saving context) and advising when to use it ('only when you truly need the raw hex data'). This context is not present in the schema and helps the agent decide on parameter values.

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 clearly states the tool 'Get comprehensive transaction information' and immediately specifies what that means: enriched data including decoded input, token transfers, fee breakdowns, and categorized types. It differentiates the tool from the standard eth_getTransactionByHash and, by focusing on a single transaction, implies distinction from list-oriented siblings like get_transactions_by_address.

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?

The description provides explicit use cases: 'Essential for transaction analysis, debugging smart contract interactions, tracking DeFi operations.' It does not explicitly name sibling alternatives or say when not to use, but the context and comparison to eth_getTransactionByHash give clear guidance. The absence of explicit exclusions keeps it from a 5.

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.