Skip to main content
Glama

apex_add_traffic_light

Add red/yellow/green traffic light indicators to Oracle APEX pages using a SQL query that returns labels and statuses. Status column values determine the color.

Instructions

Add a traffic light indicator (red/yellow/green) based on SQL value.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_idYesTarget page ID.
sequenceNoDisplay order on page.
sql_queryYesSQL returning label and status columns. Example: "SELECT DS_NOME LABEL, CASE FL_ATIVO WHEN 'S' THEN 'GREEN' ELSE 'RED' END STATUS FROM TEA_CLINICAS ORDER BY 1"
custom_cssNo
region_nameYesRegion display name.
label_columnNoColumn for the item label.LABEL
status_columnNoColumn for the status ('GREEN'/'AMBER'/'RED' or similar).STATUS

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

Annotations provide all-false hints, leaving the description to disclose behavioral traits. The description states it adds an indicator based on SQL, but does not mention side effects (e.g., page modification, requirement for existing region, behavior on duplicate names). This is a significant gap for a mutation tool with no annotation safety context.

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, front-loaded sentence that states the essential action and purpose without wasted words. It is easily scannable and earns its place.

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 tool has 7 parameters, an output schema, and a simple purpose. The description is minimal but sufficient to understand the intent. However, it lacks usage context (e.g., no guidance on when to choose traffic light vs other indicators) and does not elaborate on the SQL-to-color mapping behavior despite the schema example. It is adequate but not comprehensive.

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 description coverage is high (86%), so the schema carries most parameter documentation. The description adds only the concept of SQL-based coloring, which is already echoed in the sql_query schema example. No additional parameter semantics beyond the schema are provided, so a baseline 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 uses a specific verb ('Add') and clearly identifies the resource ('traffic light indicator') plus the key basis ('based on SQL value'). This distinguishes it from sibling tools like gauge or metric cards, which are different visual indicators.

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 implies usage when a SQL query should drive a red/yellow/green status display, but it does not explicitly state when to use this tool over alternatives or mention any prerequisites. No exclusions or alternative references are given, so guidance is only implied.

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