Skip to main content
Glama

apex_add_gradient_donut

Add a gradient donut chart with a center label to an Oracle APEX page. Supply SQL for label and value columns, with optional SQL for the center value.

Instructions

Add a gradient donut chart with center label. SQL: LABEL, VALUE.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
heightNoChart height in pixels.
labelsNoOptional dict to override labels. Supported key: ``"series"`` (series legend label).
page_idYesTarget page ID.
sequenceNoDisplay order on page.
animationNoAnimation style — "auto", "none", "fade", or "zoom".auto
sql_queryYesSQL returning label and value columns. Example: "SELECT DS_STATUS LABEL, COUNT(*) VALUE FROM TEA_AVALIACOES GROUP BY DS_STATUS ORDER BY 1"
region_nameYesRegion display name.
series_nameNoLegend series name.Distribution
label_columnNoColumn for slice labels.LABEL
value_columnNoColumn for slice values.VALUE
zoom_enabledNoIgnored for donut charts (accepts for API consistency).
color_paletteNoList of hex colours, a named palette string, or None.
scroll_enabledNoIgnored for donut charts (accepts for API consistency).
legend_positionNo"end" | "start" | "top" | "bottom" | "none".end
center_label_sqlNoSQL returning VARCHAR2 for the donut center. Example: "SELECT TO_CHAR(COUNT(*)) FROM TEA_AVALIACOES"
center_label_textNoStatic text for center (fallback if SQL fails).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations provide protective hints (all false), and the description does not disclose side effects, prerequisites, or whether it modifies the page. Since the verb 'Add' is mutation, but the description doesn't elaborate on what occurs (e.g., new region created), behavioral transparency is lacking.

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 a single sentence that front-loads the core function and includes a useful SQL hint. It is extremely concise with zero wasted words.

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?

While the schema and output schema handle parameter documentation, the description lacks behavioral and contextual detail for a tool with 16 parameters. It doesn't explain how the gradient donut chart integrates with the page or what the expected outcome is beyond adding it.

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

Parameters3/5

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

Schema covers 100% of parameters with descriptions, so the baseline is 3. The description adds 'SQL: LABEL, VALUE' which reinforces the sql_query parameter but doesn't provide additional semantics beyond the schema. Thus a 3 is appropriate.

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 states 'Add a gradient donut chart with center label' which clearly identifies the verb (Add) and resource (gradient donut chart with center label). It also specifies the SQL column expectation (LABEL, VALUE), distinguishing it from generic chart tools like apex_add_jet_chart.

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 description gives minimal usage guidance: it implies this tool is for adding donut charts, but doesn't explicitly say when to use it over siblings like apex_add_funnel or apex_add_sparkline. No exclusions or alternative recommendations are provided, so usage context is only inferred.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TechFernandesLTDA/apex-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server