Skip to main content
Glama

Defi Optimize

defi_optimize
Idempotent

[defi] LP parameter optimization (DFP-100-OptimalTick)

Input Schema

NameRequiredDescriptionDefault
positionYes
protocolYes
risk_toleranceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

D1.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the description only needed to add context the structured fields lack. Instead it adds nothing: it never says whether this only computes a recommendation or persists something (the readOnlyHint=false hints at a write), nor what state changes as a result. The word 'optimization' sits awkwardly against a non-read-only annotation and leaves the agent unsure of side effects.

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

Conciseness2/5

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

It is short, but short here means under-specified rather than efficient. The only substantive token is an opaque internal codename that consumes space without informing the agent.

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

Completeness1/5

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

Three required parameters including a nested object, no output schema, and no parameter descriptions mean the description had to carry nearly all explanatory weight — yet it is a single fragment. An agent cannot call this tool correctly without guessing at input formats, protocol vocabulary, and the meaning of the returned optimization.

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

Parameters1/5

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

Schema description coverage is 0%, and the description supplies no meaning for protocol, position, or the nested token_a/token_b/amount_usd fields, none of which the schema documents. For an undocumented nested object the description had the full burden and discharged none of it — accepted protocol values, amount units, and the risk_tolerance scale (example 0.5, range unstated) are all left unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The phrase 'LP parameter optimization' hints at liquidity-provision tuning but never says what is optimized or what the tool returns, and the internal codename '(DFP-100-OptimalTick)' carries no meaning for an agent. It does not distinguish this tool from sibling optimizers such as defi_yield_optimize or defi_risk_score, so selection between them rests on guesswork.

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

Usage Guidelines1/5

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

There is no guidance whatsoever on when to use this tool, when not to, or which sibling to prefer. The description gives no prerequisites, no preconditions on the position/protocol inputs, and no routing rationale despite four other defi/compliance-adjacent tools in the sibling list.

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.