Skip to main content
Glama

Broadcast a signed transaction

broadcast_tx
Destructive

Relay a transaction you signed yourself. chain ∈ {evm, tron, bitcoin, solana}. signed = the chain-specific payload: EVM a raw 0x transaction, TRON the signed transaction object, Solana the base64 transaction from a build step with your signature in it, Bitcoin either a raw hex transaction or { psbtBase64, signaturesHex: [...], preimageHex? } from a build step (one signature per entry of sighashHexes; omit preimageHex for a refund) — the last form has the witness assembled here, so you never have to serialise Bitcoin script yourself.

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>",
      "signed": "<signed>"
    },
    "name": "broadcast_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesChain family of the transaction
signedYesThe signed payload, shaped per chain as above: a string, or an object for TRON and for a Bitcoin PSBT with its signatures

Output Schema

NameRequiredDescriptionDefault
txidNoTransaction id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / signed / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / signed / description
      Previous value: -"The signed payload, shaped per chain as above"New value: +"The signed payload, shaped per chain as above: a string, or an object for TRON and for a Bitcoin PSBT with its signatures"
    • addedInput schema / properties / signed / type
      Added value: +[
      +  "string",
      +  "object"
      +]
  2. Changed5 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / chain / description
      Added value: +"Chain family of the transaction"
    • addedInput schema / properties / signed / description
      Added value: +"The signed payload, shaped per chain as above"
    • changedInput schema / required
      Previous value: -[
      -  "chain"
      -]New value: +[
      +  "chain",
      +  "signed"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "txid": {
      +      "description": "Transaction id",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations (which already declare this is a destructive, non-idempotent, open-world write), the description adds real behavioral detail: witness assembly is performed server-side for the PSBT form and raw Bitcoin script serialisation is not the caller's job. It does not state what a retry does or how success/failure is surfaced, but the output schema covers the return shape.

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?

Purpose is front-loaded in the first sentence, followed by the chain enum and then per-chain payload formats in a single dense paragraph. Every clause carries payload-format information, though the Bitcoin sentence is long enough to require re-reading.

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?

With an output schema present, return values need not be described, and the description fully covers the input shapes including the tricky Bitcoin PSBT variant. It omits any note on what happens after submission (confirmation waiting, node errors), leaving a small gap for a broadcast tool.

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

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description for 'signed' defers to the tool description ('shaped per chain as above'), so the per-chain payload specification here — raw 0x EVM tx, TRON signed object, base64 Solana tx, Bitcoin raw hex or PSBT with signaturesHex — is the only place the format is actually defined. It also clarifies the one-signature-per-sighashHexes entry rule and optional preimageHex.

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: 'Relay a transaction you signed yourself.' It directly distinguishes this tool from the build_* siblings by making clear that signing has already happened elsewhere and this step is purely network delivery.

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 phrase 'a transaction you signed yourself' and repeated references to 'from a build step' establish the context: use this after building and signing. No explicit exclusions or named alternatives are given, so it stops short of 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.