Skip to main content
Glama

Quote DeepBook action

read_quote_deepbook_action
Read-only

Reads pinned-SDK DeepBook raw-quantity quote evidence for a pool and direction so AI clients can review quote inputs without treating them as P&L or execution promises.

Instructions

Pinned-SDK DeepBook raw-quantity quote evidence. Not P&L, price impact, route quality, fiat cash-out, external USD lookup, signing data, or execution promise.

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": {
      "poolKey": "<poolKey>",
      "direction": "<direction>",
      "amountRaw": "<amountRaw>"
    },
    "name": "read_quote_deepbook_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
feeModeNo
poolKeyYes
amountRawYes
directionYes

Output Schema

NameRequiredDescriptionDefault
okYes
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.5

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the description need not restate safety. It adds useful context with 'pinned-SDK', 'raw-quantity', and the explicit non-execution/no-signing scope, but it does not describe quote freshness, auth needs, or rate limits.

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

Conciseness4/5

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

Two tightly packed sentences front-load the purpose and then the exclusions. The negative list is long but each item rules out a plausible misuse, so the definition stays efficient.

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

Completeness3/5

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

The purpose and non-goals are clear, and the presence of an output schema means return values need not be explained. Still, for a four-parameter tool with zero schema descriptions, the missing parameter and when-to-use guidance leaves the definition incomplete for correct invocation.

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

Parameters2/5

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

With 0% schema description coverage across four parameters, the description only hints at amountRaw via 'raw-quantity'. It says nothing about poolKey format, direction semantics, or feeMode choices, leaving most invocation details to inference from the schema enums.

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 first sentence names a specific resource (DeepBook raw-quantity quote) and signals a pinned-SDK source, while 'raw-quantity' implicitly distinguishes it from the display-amount sibling. However, 'evidence' is slightly vague and the description does not explicitly name the sibling it differs from.

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

Usage Guidelines3/5

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

The negative list rules out P&L, price impact, route quality, fiat cash-out, external USD lookup, signing data, and execution promises, which helps avoid misuse. It does not state when to use this tool or name the display-amount alternative for human-readable quotes.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.