Skip to main content
Glama

apex_add_pareto_chart

Add a Pareto chart with bars and cumulative % line to an Oracle APEX page via SQL returning label and value columns.

Instructions

Add a Pareto chart (bars + cumulative % line). SQL: LABEL, VALUE.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
heightNoChart height in pixels.
labelsNoOptional dict to override labels. Supported keys: ``"bar"`` (bar legend), ``"line"`` (line legend), ``"y2_axis"`` (right Y-axis title).
page_idYesTarget page ID.
bar_nameNoLegend name for the bar series.Count
sequenceNoDisplay order on page.
animationNoAnimation style — "auto", "none", "fade", or "zoom".auto
line_nameNoLegend name for the cumulative % line.Cumulative %
sql_queryYesSQL returning label and value columns, ordered DESC. Example: "SELECT DS_STATUS LABEL, COUNT(*) VALUE FROM TEA_AVALIACOES GROUP BY DS_STATUS ORDER BY 2 DESC"
region_nameYesRegion display name.
label_columnNoColumn name for categories (default "LABEL").LABEL
value_columnNoColumn name for numeric values (default "VALUE").VALUE
zoom_enabledNoEnable zoom on chart axes (default False).
color_paletteNoList of hex colours, a named palette string, or None for default colours.
cumulative_sqlNoCustom SQL for the cumulative % line. Must return the same label column and a ``VALUE`` column. When ``None``, the cumulative SQL is auto-generated from *sql_query*.
scroll_enabledNoEnable scroll on chart (default False).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

Annotations are all false, so they do not convey a safety profile (e.g., readOnlyHint=false, destructiveHint=false). The description fails to disclose that this is a mutating operation that modifies the APEX application by adding a chart region. No mention of permissions, side effects, or reversibility, leaving the agent unaware of the tool's impact.

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 of 13 words, efficiently stating the core function and key SQL requirement. It is front-loaded, with no redundancy, filler, or unnecessary details, making it exemplarily concise.

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 15 parameters, this one-sentence description is inadequate. It omits any mention of required page_id and region_name, the role of cumulative_sql, or the context of adding a chart within an APEX page. The description relies entirely on the schema for critical context, which is insufficient for an agent to fully understand the tool's operation.

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?

The input schema has 100% description coverage, so the baseline is 3. The description adds minimal extra meaning by stating 'SQL: LABEL, VALUE,' which aligns with the sql_query parameter's example. However, it does not further explain the columns' roles or options like cumulative_sql, so it stays at baseline.

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 clearly states 'Add a Pareto chart (bars + cumulative % line).' This specifies the verb, resource, and unique distinguishing feature (cumulative % line) that separates it from sibling chart tools. The 'SQL: LABEL, VALUE' hint further clarifies the expected input format.

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 use this tool versus alternatives like apex_add_combo_chart or apex_add_gauge. It does not mention that a Pareto chart is appropriate for analyzing frequencies in descending order, nor does it suggest any exclusions. The description simply states what it does without contextual placement.

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