Skip to main content
Glama

Yield.xyz AgentKit

Submit Transaction Hash

submit_hash
Idempotent

Submit the on-chain transaction hash after the user has signed and broadcasted a transaction. This updates the transaction status internally and enables tracking. Call this once per transaction, using the transactionId and hash from the broadcast result.

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": {
      "transactionId": "<transactionId>",
      "hash": "<hash>"
    },
    "name": "submit_hash"
  }
}

Input Schema

NameRequiredDescriptionDefault
hashYesThe on-chain transaction hash returned after broadcasting, e.g. "0x1234…abcdef"
transactionIdYesThe unique identifier of the transaction (UUID from the action flow)

Output Schema

NameRequiredDescriptionDefault
idYes
hashYes
typeYes
errorNo
titleYes
statusYes
networkYes
createdAtYes
isMessageNo
stepIndexNo
descriptionNo
explorerUrlNo
gasEstimateNo
broadcastedAtYes
signedTransactionYes
unsignedTransactionNo
annotatedTransactionNo
structuredTransactionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • removedOutput schema / properties / broadcastedAt / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / broadcastedAt / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / error / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / error / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / explorerUrl / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / explorerUrl / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / hash / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / hash / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / signedTransaction / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / signedTransaction / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare non-read-only, idempotent, non-destructive, closed-world behavior. The description adds real value on top: that the call mutates internal status, that it drives tracking, and that it must be invoked exactly once per transaction from broadcast output — sequencing context the annotations do not convey.

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?

Three short sentences, front-loaded with purpose, then effect, then invocation rule. No filler and nothing repeated.

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 two-parameter tool with full schema coverage, rich annotations, and an output schema, the description covers precondition, effect, and call cardinality. An agent has everything needed to invoke it correctly without guessing.

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 coverage is 100% and both parameters are documented in the schema, including that hash comes from broadcasting. The description's note about sourcing values from the broadcast result largely restates the schema, so it sits at the baseline rather than adding new semantics.

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?

The description gives a specific verb and resource (submit the on-chain transaction hash) plus the effect (updates internal transaction status, enables tracking). It does not explicitly contrast with the read-side sibling get_transaction, so sibling differentiation is left to inference.

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?

It states the precise precondition (after the user has signed and broadcasted) and a correct-usage constraint (call once per transaction, using values from the broadcast result). There are no explicit exclusions or named alternatives, but for a narrow submit-only tool the context is clear.

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