Skip to main content
Glama
SODAX Builders MCP
by gosodax

sodax_relay_get_packet

Read-only

Fetch a single relay packet by its connection serial number using the source chain ID and transaction hash, returning packet data or a not-found failure response.

Instructions

Fetch a single relay packet by its connection serial number (conn_sn). Returns the packet data on success or a {success:false, message} shape if the packet isn't found.

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": {
      "chainId": "<chainId>",
      "txHash": "<txHash>",
      "connSn": "<connSn>"
    },
    "name": "sodax_relay_get_packet"
  }
}

Input Schema

NameRequiredDescriptionDefault
connSnYesREQUIRED: Connection serial number identifying the packet within the tx, a non-negative integer as a decimal string (e.g. '7'; pass a fetched packet's `conn_sn` as a string).
formatNoResponse format: 'json' for raw data or 'markdown' for formatted textmarkdown
txHashYesREQUIRED: The source-chain transaction hash
chainIdYesREQUIRED: Intent-relay chain ID of the source chain (decimal string)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.0.7
    • addedInput schema / properties / chainId / pattern
      Added value: +"^\\d+$"
    • changedInput schema / properties / connSn / description
      Previous value: -"REQUIRED: Connection serial number identifying the packet within the tx. Accepts string or number (numeric values are coerced — convenient for piping back a previously-fetched packet's `conn_sn` field)."New value: +"REQUIRED: Connection serial number identifying the packet within the tx, a non-negative integer as a decimal string (e.g. '7'; pass a fetched packet's `conn_sn` as a string)."
    • addedInput schema / properties / connSn / pattern
      Added value: +"^\\d{1,20}$"
    • changedInput schema / required
      Previous value: -[
      -  "chainId",
      -  "txHash"
      -]New value: +[
      +  "chainId",
      +  "txHash",
      +  "connSn"
      +]
  2. Addedv1.0.3

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds real value beyond that by disclosing the failure shape `{success:false, message}` when the packet is not found, which an agent cannot infer from annotations alone. It stops short of describing the success payload structure or size.

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?

Two short sentences with zero waste: scope first, return behavior second. Nothing is repeated from the title and no filler is present.

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?

With no output schema, the description must carry the return-value burden, and it only names 'packet data' without describing fields or shape, while fully covering the error case. For a 3-required-parameter lookup tool this is adequate but leaves the success payload opaque.

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 the schema already documents all four parameters thoroughly, including the connSn pattern and example. The description only echoes conn_sn and adds no meaning for chainId, txHash, or the format enum, so the baseline of 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: 'Fetch a single relay packet by its connection serial number'. The word 'single' implicitly distinguishes it from the sibling list-style tool sodax_relay_get_transaction_packets, but that sibling is never named, so the differentiation is only inferable.

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?

Usage is only implied by the singular scope and the required conn_sn. There is no explicit 'use this when you need one packet vs. all packets' statement and no mention of a prerequisite call (e.g. fetching packets first to obtain conn_sn), though the schema hint gestures at that workflow.

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