Skip to main content
Glama

apex_generate_login

Generate an Oracle APEX login page (page 101) with native or custom PL/SQL authentication, customizable fields and labels.

Instructions

Generate a login page (page 101) with APEX authentication.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_idNoPage ID (default 101). Must match the login URL in create_app.
app_nameNoApplication name shown above the login form.
page_nameNoPage display name.Login
password_labelNoLabel for password field (default "Password").Password
username_labelNoLabel for username field (default "Username").Username
auth_process_plsqlNoCustom PL/SQL authentication block. If omitted, uses APEX native authentication: "apex_authentication.login(p_username=>:P101_USERNAME, p_password=>:P101_PASSWORD);" For custom auth example: '''DECLARE v_user_id NUMBER; BEGIN SELECT user_id INTO v_user_id FROM app_users WHERE username = LOWER(:P101_USERNAME) AND password_hash = DBMS_CRYPTO.HASH( UTL_RAW.CAST_TO_RAW(:P101_PASSWORD || salt), 3); apex_util.set_session_state('APP_USER_ID', v_user_id); END;'''
login_button_labelNoLogin button text (default "Sign In").Sign In

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, offering no positive safety information. The description does not disclose whether an existing page 101 is overwritten, what other changes occur (e.g., auth scheme setup), or the non-idempotent nature implied by idempotentHint=false. This lack of side-effect disclosure is a notable 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, concise sentence that front-loads the primary action and outcome, with no 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?

The description is brief and does not mention prerequisites like app existence or behavior if page 101 already exists. While the output schema and parameter descriptions fill in some gaps, the tool's side effects and setup context are not fully captured.

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 coverage is 100%, with all parameters well described, including a detailed auth_process_plsql example. The description itself adds no parameter semantics beyond the schema, so the baseline of 3 applies.

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 generates a login page with APEX authentication, using a specific verb ('Generate') and resource ('login page') plus a page ID. This distinguishes it from siblings like apex_add_page or apex_generate_dashboard.

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 for creating a login page, but it does not explicitly state when to use this tool versus alternatives such as apex_add_page or apex_add_auth_scheme. The schema's page_id note about matching create_app provides a hint, but no explicit usage guidance is given.

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