Skip to main content
Glama

apex_generate_crud

Generate a complete CRUD interface for any database table: an Interactive Report list page and a form page with DML processes for insert, update, and delete.

Instructions

Generate full CRUD: IR list page + form page with DML processes for a table.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
editableNoWhether the form page allows editing (default True). When False, form items are rendered as display-only and Save/Delete buttons are omitted.
table_nameYesDatabase table name (case-insensitive, e.g., "EMPLOYEES").
auth_schemeNoAuthorization scheme name for both pages.
form_page_idYesPage ID for the form (e.g., 11).
list_page_idYesPage ID for the Interactive Report list (e.g., 10).
audit_columnsNoCustom list of audit column names to exclude from forms. If None, uses the default set (English + Portuguese names). Example: ["CREATED_ON", "UPDATED_ON", "CREATED_BY", "UPDATED_BY"]
button_labelsNoCustom labels for CRUD buttons. Supported keys: - "new": Label for the New button on the list page (default "New") - "save": Label for the Save button on the form (default "Save") - "cancel": Label for the Cancel button on the form (default "Cancel") - "delete": Label for the Delete button on the form (default "Delete") - "confirm_delete": Confirmation message for delete (default "Would you like to delete this record?")
form_page_nameNoDisplay name for form page. Defaults to "Edit {list_page_name}".
include_searchNoAdd search bar to the IR (default True).
items_per_pageNoNumber of rows per page in the IR (default 15).
list_page_nameNoDisplay name for list page. Defaults to table_name humanized.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

All annotations are false, so the description carries the full burden of behavioral disclosure. It states that pages and DML processes are generated, but does not mention that this modifies the current app, whether existing pages with the same IDs will be overwritten, or any side effects. This leaves significant behavioral uncertainty for a mutation tool.

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, well-structured sentence with no filler words. It front-loads the core deliverable ('full CRUD') and specifies the components, making it highly concise.

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?

Given the rich schema and output schema, the description is minimally viable: it communicates the primary purpose. However, it omits important context such as app-targeting behavior, potential overwrites, and prerequisites, so it is not fully complete for a tool with 11 parameters.

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 11 parameters in detail. The description adds no parameter-specific information, thus meets the baseline of 3 but does not exceed it.

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 ('Generate') and clearly specifies the resource ('full CRUD: IR list page + form page with DML processes for a table'). This distinguishes it from sibling tools like apex_generate_report_page or apex_generate_dashboard, which have narrower scopes.

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 description clearly implies when to use this tool: when a full CRUD interface for a table is needed. The phrase 'full CRUD' and the mention of both list and form pages provide clear context, though it does not explicitly name alternatives or exclusions.

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