Skip to main content
Glama

Beggar Bot

morpho_tx_build

Build Morpho Blue supply/withdraw/collateral/borrow/repay unsigned tx for a market id with approval check Paid: $0.02 USDC via x402.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "morpho_tx_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNofrom
chainNochain
actionNoaction
amountNoamount
marketNomarket

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose two valuable facts: the output is an unsigned transaction and that an approval check is performed. It does not disclose what happens when the approval is missing (error vs. accompanying approve tx), whether a private key or signer is needed, chain support, or whether anything is broadcast, which are the key behavioral questions for a tx-builder.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single compact sentence with the core purpose front-loaded and no filler, which is good. However, the price/payment clause is jammed onto the end with a colon splice, and the action list plus market/approval details are packed into one unpunctuated run-on that is harder to parse than it needs to be.

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

Completeness2/5

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

For a 5-parameter transaction-construction tool with no annotations and no output schema, the description leaves significant gaps: it never states the return shape of the unsigned tx, how x402 payment is settled, or which parameters are required for which action (the schema marks all five optional, which is implausible for a tx build). An agent could not confidently call this correctly from the definition alone.

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%, but every parameter description is a bare restatement of the field name ("from", "chain", "action", "amount", "market"), so the schema adds no real meaning. The description partially compensates by giving the valid action values and identifying `market` as a market id, but `from`, `chain`, and `amount` remain undefined in both places.

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 uses a specific verb ("Build") and a specific resource ("Morpho Blue ... unsigned tx") and enumerates the supported actions (supply/withdraw/collateral/borrow/repay), which is enough to separate it from protocol-specific siblings like aave_v3_tx_build or compound_v3_tx_build. It falls short of a 5 only because the run-on phrasing muddles the resource definition and never states it is a transaction-construction (not broadcast) tool in a clean clause.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance and no alternative is named; the only hint is that an "approval check" occurs, which implies use before a lending action. An agent must infer that this is the Morpho-specific alternative to tx_build from the protocol name alone.

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.