Skip to main content
Glama

DeepBook USDC chart

ui_open_chart

Open a DeepBook USDC candlestick chart card to review price action for a selected pool, interval, and time range.

Instructions

Open a DeepBook USDC candle chart card.

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": "ui_open_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
poolIdNoExact onchain pool ID specified by the user. Providing this field selects onchain fills even when poolName is present.
intervalNo15m
poolNameNoMarket name for a pair chart, such as SUI_USDC.
endTimeMsNo
startTimeMsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.5

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the agent knows this mutates UI/session state and is not idempotent. The description adds nothing beyond that — no explanation of card placement, whether repeated calls stack new cards, or what the defaults (limit 500, 15m interval) mean for the rendered view. The one-sentence description is consistent with the annotations, so no contradiction.

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?

A single front-loaded sentence with no filler or redundancy. Its brevity is a virtue for structure, though the terseness leaves gaps that are penalized in other dimensions.

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 tool with six parameters including a time window, interval enum and candle limit, and with no output schema, the description should explain what the card renders and how the parameters shape it. It provides none of that, and it does not reconcile the fixed "USDC" framing with the configurable pool parameters.

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?

Schema description coverage is only 33%: poolId and poolName are documented, but limit, interval, startTimeMs and endTimeMs are bare fields. The description supplies no parameter meaning at all, so it fails to compensate — notably it never explains that startTimeMs/endTimeMs scope the candle range or that limit caps candles.

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

Purpose3/5

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

States a specific verb and resource ("Open a ... candle chart card"), which separates it from card-opening siblings like ui_open_account and ui_open_receipt. However, it hardcodes "DeepBook USDC" while the schema exposes poolId/poolName for arbitrary pairs, so the stated purpose is narrower than what the tool actually does and can mislead an agent about scope.

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 guidance on when to open a chart card versus calling read_get_deepbook_usdc_price_history or read_get_deepbook_usdc_price_at_time, which return the underlying data. No prerequisites, no mention of whether an existing chart card is replaced, and no exclusions are given.

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