Skip to main content
Glama

gblin-treasury-risk-regime

actions.prepare

Read-onlyIdempotent

Build the unsigned transactions for any operation on the GBLIN vault, in the order to send them. Actions: mint_with_eth (amount in ETH), mint_with_weth (amount in WETH), mint_with_usdc (amount in USDC, through the Zap), redeem_in_kind (amount in shares; pro rata basket tokens, no fee, no price feed), exit_to_eth (amount in shares, through the Zap, all or nothing), exit_to_usdc (amount = the USDC you need), bid (trade with the rebalancing auction; row optional, the largest gap by default). Every output bound is non-zero and every step through the vault or the Zap carries its gas limit. Nothing is signed or sent: simulate the steps with preview_steps, then send them from the wallet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rowNobid only: the basket row to bid on. Default: the row with the largest gap.
actionYesThe operation to prepare.
amountNoDecimal amount. Unit depends on the action (see the description). Not used by bid.
wallet_addressYesThe wallet that will sign and receive.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
nextNo
stepsYesTransactions to send in order.
actionYes
walletNo
expectedNoWhat the operation should deliver, with the minimums applied.
warningsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, which the description reinforces. It adds valuable behavioral context: 'Every output bound is non-zero and every step through the vault or the Zap carries its gas limit' and 'in the order to send them.' It also clarifies that nothing is signed or sent, which is a non-obvious behavior for a 'prepare' tool. 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?

The description is dense but efficient: it opens with the purpose, enumerates each action with its amount semantics in a compact list, and finishes with essential behavioral notes. Every sentence earns its place, and the information is front-loaded. No fluff.

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?

Given an output schema exists (not shown but noted), the description doesn't need to detail return values. It covers the workflow (preview, prepare, send), the actions, amount meanings, gas limits, and ordering. It doesn't mention prerequisites like wallet balance or approvals, but those are likely outside the tool's responsibility. Overall, it is sufficiently complete for an agent to call it correctly.

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?

While the schema provides 100% coverage of parameters, the description adds critical action-specific meaning for the 'amount' parameter (e.g., 'amount in ETH' for mint_with_eth, 'amount = the USDC you need' for exit_to_usdc) and explains the optional 'row' default for bid. This is exactly the kind of contextualization the schema alone cannot convey, and it prevents misuse.

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 clearly states the tool builds unsigned transactions for vault operations, names the exact actions it supports, and distinguishes itself from siblings like actions.preview and payments.prepare by specifying the vault context and the non-execution nature ('Nothing is signed or sent'). It goes beyond a generic phrase and gives concrete scope.

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 explicitly advises the workflow: 'simulate the steps with preview_steps, then send them from the wallet.' This tells the agent when to use this tool relative to preview. It also clarifies that it is for vault operations and lists the supported actions, implying it's the preparation step for those. It does not explicitly contrast with payments.prepare, but the vault-specific actions make the distinction clear enough.

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.