Skip to main content
Glama

apex_add_app_process

Add an application-level process to execute PL/SQL code on new session, page submit, or login, with configurable conditions and execution order.

Instructions

Create an application-level process (runs on every page load or session init).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pointNoWhen to execute: - "ON_NEW_INSTANCE": On new session start — use to initialize session state (default) - "ON_SUBMIT": On every page submit - "BEFORE_LOGIN": Before authentication - "AFTER_LOGIN": After successful loginON_NEW_INSTANCE
sequenceNoExecution order when multiple processes exist.
plsql_bodyYesPL/SQL anonymous block to execute. Has access to apex_application, apex_util, :APP_* items.
process_nameYesProcess display name.
condition_exprNoItem name for the condition.
condition_typeNoOptional condition: - "": Always run (default) - "ITEM_IS_NULL": Run only if item is null - "ITEM_IS_NOT_NULL": Run only if item is not null

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, providing no positive safety cues, so the description carries the burden. It explains lifecycle timing but does not disclose potential side effects, required permissions, or the fact that creating a process may alter app behavior across all pages. For a creation tool, this is a significant gap.

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 efficiently conveys the core purpose without extraneous detail.

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?

With 6 parameters, an output schema, and no meaningful annotations, the description is minimal but sufficient given the rich schema. It covers what the tool does but lacks guidance on usage scenarios and behavioral implications, making it minimally viable.

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 100%, so the schema already documents all parameters in detail. The description adds no extra parameter-level meaning, making the baseline 3 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 clearly states the tool creates an application-level process and explicitly distinguishes it from page-level processes by noting it runs on every page load or session init. This differentiates it from sibling tools like apex_add_process.

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

Usage Guidelines4/5

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

The parenthetical 'runs on every page load or session init' gives clear context on when to use this tool for application-wide processes. However, it does not explicitly exclude alternatives or mention when to prefer page-level processes, so it lacks explicit when-not-to-use guidance.

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