Skip to main content
Glama

Prepare mandate position

prepare_mandate_create_position
Read-onlyIdempotent

Open or add to the account's position: create(collateral, tokens) through the account, which sets its own allowance. Checks the account's limits, then returns UNSIGNED transaction data for the session key, simulated first. Above the approval threshold it returns EIP-712 typed data for the owner instead, which only works when the owner is an ordinary wallet: it refuses when the owner is a contract, such as a Safe. Never signs or sends.

Input Schema

NameRequiredDescriptionDefault
marketYesMarket address (0x...) or symbol, e.g. NO-NVDA
accountYesMandate account address (0x...)
approvalNoOnly above the approval threshold: the nonce and deadline from typedData, plus the owner's signature
collateralYesCollateral to deposit, in USDG as a decimal string, e.g. "11" or "25.5"
mintTokensYesSynth to mint ("0" for collateral only), in synth tokens as a decimal string, e.g. "0.0189"
sessionKeyYesThe session key that will send it (0x...). Not held by this server
approvalTtlSecondsNoOptional: how long a new approval stays valid. Default 1 hour

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the annotations: results are simulated first, the output is unsigned (never signed or sent), there is an approval threshold that switches the return type to EIP-712 typed data, and the tool hard-refuses for contract owners. That is exactly the operational context an agent needs before calling, none of which annotations 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 dense sentences, front-loaded with the action and followed by the two conditional branches and the safety guarantee. No filler and no restatement of the title.

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 7-parameter tool with a nested approval object and no output schema, the description covers the return shape (unsigned tx data vs. EIP-712 typed data), the preconditions, and the failure mode. An agent can decide whether and how to call it without further guessing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description genuinely adds meaning about the approval object — it only applies above the threshold and pairs with typedData from a prior call. It does not mention approvalTtlSeconds or clarify the market/collateral/mintTokens interplay.

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 concrete action (open or add to a position via create(collateral, tokens) through the mandate account) and names the key mechanism — account-set allowance — that separates it from the plain prepare_create_position sibling. It never names that sibling outright, so the differentiation is implied rather than explicit.

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?

Gives clear when-conditions: normally returns unsigned tx data, above the approval threshold returns EIP-712 typed data, and it refuses when the owner is a contract such as a Safe. The exclusion is explicit, but it offers no routing advice toward related siblings like prepare_mandate_create or prepare_mandate_set_limits.

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