Skip to main content
Glama

trace_transaction_with_context

Read-only

Look up a DERO transaction by hash to determine its confirmation status, classify its kind, extract contract-install surfaces, and surface relevant documentation.

Instructions

Composite: look up a DERO transaction by hash, classify its confirmation status (confirmed | mempool | unknown) and kind (sc_install | transfer_or_invocation | coinbase | unknown), extract the SC surface inline when the tx is a contract install, and stitch the right DERO tx + DVM docs pages as citations.

When to call: as the FIRST step when investigating any tx by hash — the user asks "what is this tx", "is this confirmed", "what contract did this deploy", or "what does this tx do". PREFER this over chaining dero_get_transaction with dero_get_sc yourself: for SC INSTALL txs the composite already extracts the deployed function surface inline (no second RPC needed because the source is embedded in the tx record), classifies the kind so the agent does not have to inspect the raw shape, and protects against the "empty record" failure mode by surfacing structured TX_NOT_FOUND when the daemon does not know the hash.

Input Requirements:

  • tx_hash is REQUIRED. Must be 64 hex chars.

  • decode is OPTIONAL (default true). Pass false to ask the daemon to skip the JSON-decoded view (raw hex still comes back; the field hint that the binary is available).

  • include_sc_context is OPTIONAL (default true). Set false to skip the inline extractScSurface call for SC install txs (useful when you only need confirmation / ring info).

Output: { tx_hash, confirmation: { status, block_height, valid_block, invalid_blocks, in_pool }, kind, ring: { groups, first_group_size }, reward, signer_visible, native_balance, sc_install: { scid, surface, raw_code_length, has_code } | null, raw_tx_hex_length, narrative, related_docs, _diagnostics }. sc_install is non-null ONLY when the tx is a contract install AND the surface extractor produced something (tx_hash IS the resulting SCID in that case). SC invocation arg decoding is NOT performed — that requires walking the binary tx blob with the DERO tx codec, which is not bundled in this MCP. The composite surfaces raw_tx_hex_length so the agent knows the binary is available via dero_get_transaction. On unknown hash the daemon returns an empty record and the composite returns a structured _meta.error with code TX_NOT_FOUND.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
decodeNoPass decode_as_json=1 to the daemon. Default true. Decoded JSON view is informational; the raw hex always comes back.
tx_hashYes64-char hex transaction hash
include_sc_contextNoWhen true (default), runs the SC-install surface extraction inline when the tx contains contract code. SC invocation arg decoding is NOT performed in either mode; see module docs.
Install Server

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover read-only/non-destructive, and the description adds substantial behavior beyond that: the TX_NOT_FOUND structured error on unknown hashes, the 'empty record' failure mode it protects against, the explicit non-performance of SC invocation arg decoding with the reason (codec not bundled), the conditional sc_install nullability, and the raw_tx_hex_length hint that routes agents to dero_get_transaction for the binary. No contradiction with annotations.

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?

Long but every sentence earns its place — this is a composite tool with no output schema, so the density is justified. The structure is optimally ordered: What → When → Input requirements → Output shape → Limitations → Error behavior. The summary is front-loaded so an agent can decide whether to read the details without scanning the whole block.

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

Completeness4/5

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

For a tool with 3 params, no output schema, and complex conditional behavior, the description is nearly complete: it documents the full output shape, the sc_install null condition, error semantics, and the known limitation on arg decoding. One small blemish: the error section says the composite returns 'a structured _meta.error' while the output shape lists only _diagnostics, leaving the relationship between the two fields slightly ambiguous for an agent parsing the response.

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 baseline is 3. The description adds value on top: it marks tx_hash REQUIRED with the 64-hex constraint front and center, explains the practical effect of decode=false (raw hex still comes back), and gives a use-case trigger for include_sc_context=false ('when you only need confirmation / ring info'). This exceeds the schema's mechanical definitions but is not a huge leap beyond them.

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 first sentence names a specific composite operation with concrete verbs — look up, classify, extract, stitch — and enumerates exact outputs: confirmation status (confirmed | mempool | unknown), kind (sc_install | transfer_or_invocation | coinbase | unknown), and inline SC surface for contract installs. It explicitly distinguishes itself from chaining dero_get_transaction with dero_get_sc, so an agent can tell it apart from siblings without opening their schemas.

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?

The description provides an explicit 'When to call' section listing concrete user intents ('what is this tx', 'is this confirmed', 'what contract did this deploy'), states it should be the FIRST step, and names the alternative pattern (chaining dero_get_transaction with dero_get_sc) with reasons to prefer the composite. It also explains why the alternative is unnecessary for SC installs (source is embedded in the tx record).

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DHEBP/dero-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server