NetLease - Using AI agents in Ask Oracle

Overview

Ask Oracle, NetSuite's built-in AI assistant, can use NetLease tools through a SuiteAgent. Users can ask about leases, payments, modifications, fees, and schedules, and the agent answers from your NetLease data. The agent can also create leases, payments, fees, fee types, and lease types. Not every NetLease MCP tool is available in Ask Oracle - see the table below.

SuiteAgents work only on NetSuite Next accounts, so the agent is not included in the NetLease MCP app. This keeps the MCP app installable on every account. On a NetSuite Next account, an administrator creates the agent once using the steps below, which take about 10 minutes.

Prerequisites

  • Your NetSuite account is on NetSuite Next with Ask Oracle enabled.
  • The latest NetLease MCP tools are installed from the SuiteApp Marketplace. See NetLease - Connecting to AI (via MCP).
  • An administrator creates the agent and gives roles access to it. See Creating the NetLease SuiteAgent below.
  • Each role that uses the agent has the Find Transaction: View permission. Every standard NetLease role already includes it.

Users see only the NetLease data their role allows.

Creating the NetLease SuiteAgent

Complete these steps while signed in as an Administrator.

1. Create the agent

  • Search NetSuite for Agent Studio, or navigate to Customization > Agent Studio, and click Create new. This opens a chat with Ask Oracle, not a form.
  • The message box already contains the text "Describe what you want your agent to do...". Delete it, then type:
    Create an agent named "NetLease Assistant" for Ask Oracle that answers NetLease lease questions using the toolset "NetLease | Get Leases".
    • Use the toolset name exactly as written, including the "|". If Ask Oracle says it can't find the tool, reply with the same name again.


  • Press Enter on your keyboard to submit the task.
  • Ask Oracle shows a plan. Reply Create agent.

  • The agent is saved as a draft, and Ask Oracle gives you a link to open it.

2. Edit the draft

  • Click anywhere on the new agent card in Agent Studio to open the agent's details. Do not click either of the buttons or the "..." on the card.

Update the sections below by clicking the pencil icon next to each box.

  • Instructions box: select all, delete, and paste the full text from NetLease Assistant instructions at the end of this article. Ask Oracle writes its own instructions; replace them completely.

  • Tools: make sure each of the 14 tools below is checked, then click OK. Get Leases is already checked from step 1. Click the checkboxes themselves - clicking a tool's name selects only that tool and clears the others.
    • Read: NetLease | Get Leases, Get Lease Modifications, Get Lease Payments, Get Lease Fees, Get Fee Types, Get Schedule Lines, Get Lease Types, Get Lease Classifications, Get Metadata
    • Write: NetLease | Create Lease, Save Lease Payment, Save Lease Fee, Create Fee Type, Create Lease Type

  • Leave Triggers and Skills as they are.

3. Publish

Click Publish. The agent shows Published - Inactive.


4. Give roles access and activate the agent

  • Click Manage access in the message that appears, or open the agent from Setup > Agent Management > Agents, then click Edit.
  • On the Role access subtab, check Has access for each role that should use the agent, then click Save.

  • Click Set as Active and confirm. The Agent permissions subtab should show Find Transaction - View.

5. Test the agent

  • Open the agent in Ask Oracle (see Ask a question below).
  • Ask: How many NetLease leases are there, grouped by status?
  • The answer should give a count per lease status (Pending, Commenced, Complete, and so on). If it does not, see Troubleshooting below.
  • Avoid test questions like "Show me my leases." Ask Oracle reads "my" as the person signed in and finds nothing.

Using the NetLease SuiteAgent

Ask a question

  • Open Ask Oracle (the red oval in the bottom-right corner).
  • Click +, then Ask an AI agent or apply a skill, then Ask an AI agent, and choose NetLease Assistant. Administrators with access (step 4) can also type @NetLease Assistant; other roles must use +.


  • Ask your question, for example "Summarize leases by classification."
  • Approve each tool call when Ask Oracle prompts you.


Create a lease record

  • Give Ask Oracle the terms of the lease contract, or drop the contract PDF into the sidebar.
    • Note: Ask Oracle currently has a 3 MB file size limit, so you may need to reduce the size of your document.
  • Ask the agent to create the record, and give it any values the contract does not cover.
    • If you are using the contract as the source, you may need to guide the agent more. For example, use the prompt "Can you evaluate the lease contract and pull the terms for lease record creation?" rather than "Can you create this lease for me?"
    • Ask Oracle makes no assumptions, so be prepared to answer questions about every required field.

  • Review the text preview. It names every lease by lease ID and internal ID and shows where each value came from.
  • Reply yes to save. Nothing is saved until you confirm.
  • A new lease starts in Pending status with no schedule. Generate schedules, commence the lease, and run journals from the NetLease pages.

Available tools in Ask Oracle

ToolAvailable in Ask OracleExample question
Get leases / Lease summaryYes"Summarize leases by classification and subsidiary."
Create leaseYes (created in Pending status)"Create an office lease for vendor X starting 1/1/2027 for 36 months."
Get modifications / Modification summaryYes (read only)"What modifications were made to lease LS-0012 this year?"
Get payments / Payment summaryYes"List the scheduled payments on lease LS-0012."
Create / update / delete paymentYes (delete marks the payment inactive)"Add a monthly payment of $5,000 to lease LS-0012 starting 1/1/2027."
Get lease fees / Get fee typesYes"Which leases have a CAM fee?"
Save lease fee / Create fee typeYes"Create a fee type called Parking."
Get schedule linesYes"What is the lease liability balance on LS-0012 at 12/31/2026?"
Get lease types / Get lease classifications / Create lease typeYes"What lease types are set up?"
NetLease tables and fieldsYes"What fields are on the lease record?"
Generate schedulesNo - use the NetLease pages or an MCP connection"Generate schedules for lease LS-0012."
Commence leasesNo - use the NetLease pages or an MCP connection"Commence lease LS-0012."
Modify lease / Reverse modificationNo - use the NetLease pages or an MCP connection"Extend lease LS-0012 by 12 months."
Run journalsNo - use the NetLease pages or an MCP connection"Run lease journals for December 2026."
Run billingNo - use the NetLease pages or an MCP connection"Run lease billing for December 2026."
Lease transactions / Lease billsNo - use the NetLease pages or an MCP connection"Show the bills for lease LS-0012."
Attach file to leaseNo - use the NetLease pages"Attach this contract to lease LS-0012."

If you ask for an unavailable tool, the agent tells you it is not available in Ask Oracle yet and points you to the NetLease pages.

Limitations / things to be aware of

  • Answers take a minute or two. Each question runs as a background job in Ask Oracle. The same tools answer in seconds through an external MCP connection such as Claude.
  • Approvals on every tool call. Ask Oracle asks you to approve each tool call, even read-only lookups. A simple question takes one approval; a detailed one can take several. This is Oracle's behavior and there is no setting to change it. Keep questions short and specific.
  • Usage units. NetSuite counts agent use in usage units. You can see them on the agent's page under Units usage.
  • Lease transactions and bills are excluded. Ask Oracle returns an empty list for these tools, so the agent would wrongly report that a lease has no bills. They stay off until Oracle supports them.
  • No guessed values. The agent asks for anything you did not provide. It can copy values from a record you name, and the preview shows where each value came from.
  • Payment changes on Pending leases only. The agent creates, updates, and deletes payments only on Pending leases. To change the payments on a Commenced lease, enter a modification from the NetLease pages. If a lease already has schedule lines, regenerate its schedules from the NetLease pages after any payment change.

Troubleshooting

SymptomWhat to check
The agent says it can't reach a NetLease toolFind the tool it names in the table below and confirm that tool is checked on the agent (step 2). Confirm the role has Find Transaction: View (step 4).
The + menu shows only Apply a skill, with no Ask an AI agent optionThe signed-in role does not have access to an active agent. Check Has access for that role on the agent's Role access subtab (step 4). Administrators are not given access automatically.
Ask Oracle says it is "having trouble completing your request"Confirm the role has Find Transaction: View, then try once more in case the error was temporary.
The answer looks wrong, for example counts that include inactive leasesCheck both of the above. Without the NetLease tools, Ask Oracle may answer from its own record search.
The agent stopped working after you changed its toolsPublishing can set the agent back to Inactive. Open it from the Agents list and click Set as Active again (step 4). Role access is kept.

The agent may name a tool by its internal name. Use this table to find the tool to check on the agent:

Name in the agent's replyTool to check
laatl_get_Leases, laatl_get_Leases_SummaryNetLease | Get Leases
laatl_get_Lease_Modifications, laatl_get_Lease_Modifications_SummaryNetLease | Get Lease Modifications
laatl_get_Lease_Payments, laatl_get_Lease_Payments_SummaryNetLease | Get Lease Payments
laatl_get_Lease_FeesNetLease | Get Lease Fees
laatl_get_Fee_TypesNetLease | Get Fee Types
laatl_get_Schedule_LinesNetLease | Get Schedule Lines
laatl_get_Lease_TypesNetLease | Get Lease Types
laatl_get_Lease_ClassificationsNetLease | Get Lease Classifications
laatl_get_NetLease_Tables, laatl_get_NetLease_Tables_And_Fields, laatl_get_NetLease_Fields_For_TableNetLease | Get Metadata
laatl_create_LeaseNetLease | Create Lease
laatl_create_Lease_Payment, laatl_update_Lease_Payment, laatl_delete_Lease_PaymentNetLease | Save Lease Payment
laatl_save_Lease_FeeNetLease | Save Lease Fee
laatl_create_Fee_TypeNetLease | Create Fee Type
laatl_create_Lease_TypeNetLease | Create Lease Type

NetLease Assistant instructions

Copy everything in this section, from "TOOLS CHECK" through the end of "RESPONSE STYLE", and paste it into the agent's Instructions section (step 2). Paste the text exactly as written.

TOOLS CHECK: This covers the NetLease tools listed under READ TOOLS and WRITE TOOLS below; a request listed under NOT AVAILABLE IN ASK ORACLE gets that section's answer instead. Before answering, check that every listed tool a request needs is in your tool list. If it is not, do not answer from other records, record searches or built-in tools. Reply only that you can't reach that NetLease tool (name it) and that an administrator should check the tool is ticked on this agent and the role has the Find Transaction (View) permission. If the tool is in your list but fails when called, follow OPERATING RULES instead.

You are NetLease — an AI assistant embedded in NetSuite that helps accounting users manage leases under ASC 842, IFRS 16, and GASB 87: leases, payments, fees, amortization schedules, modifications, and lease setup.

NetLease is a SuiteApp installed inside NetSuite with its own records (customrecord_laa_*) and processing. It is SEPARATE from other lease products that may be installed in the same account, such as NetLeaseGo (customrecord_ngl_*) or NetLessor. When a user asks about leases, lease payments, ROU assets, lease liabilities, schedules, modifications, or lease journals, assume they mean NetLease's data — not another product's — unless they say otherwise. Always answer these requests by calling the NetLease tools below; do not query other lease products' records or describe how to do the task manually when a NetLease tool can do it (except for the tasks under NOT AVAILABLE IN ASK ORACLE below). Only if no NetLease tool applies should you explain that the task is outside NetLease and clarify what the user wants.

You have two kinds of tools: READ tools that retrieve and analyze data, and WRITE tools that create, change, or remove records in NetSuite. Read freely; treat every write as a deliberate, confirmed action.

WHAT YOU CAN DO

- Query and summarize leases, lease payments, fees, schedule lines, and modifications.

- Look up lease types, lease classifications, fee types, and the NetLease record and field definitions.

- Create leases, lease payments, fees, fee types, and lease types.

READ TOOLS (safe to call as needed)

- Leases: laatl_get_Leases, laatl_get_Leases_Summary

- Modifications: laatl_get_Lease_Modifications, laatl_get_Lease_Modifications_Summary

- Payments: laatl_get_Lease_Payments, laatl_get_Lease_Payments_Summary

- Fees: laatl_get_Lease_Fees, laatl_get_Fee_Types

- Schedules: laatl_get_Schedule_Lines

- Setup: laatl_get_Lease_Types, laatl_get_Lease_Classifications

- Schema discovery: laatl_get_NetLease_Tables, laatl_get_NetLease_Tables_And_Fields, laatl_get_NetLease_Fields_For_Table

For counts, totals, and groupings of leases, modifications, or payments, use their *_Summary tools rather than summing rows from the list tools. Other areas have no summary tool; you may total the rows a list tool returned, but state how many rows the total covers. A row count equal to the limit you passed, or to the tool's default limit, means more rows may exist; say so rather than presenting the total as complete.

WRITE TOOLS (require confirmation — see protocol below)

- Leases: laatl_create_Lease

- Payments: laatl_create_Lease_Payment, laatl_update_Lease_Payment, laatl_delete_Lease_Payment

- Fees: laatl_save_Lease_Fee, laatl_create_Fee_Type

- Setup: laatl_create_Lease_Type

NOT AVAILABLE IN ASK ORACLE

Generating schedules, commencing leases, creating or reversing a modification, running journals, running billing, viewing a lease's journal entries or bills, and attaching files to a lease are not available in Ask Oracle yet. When a user asks for one, say so and that they can do it from the NetLease pages in NetSuite. Never answer a question about a lease's journals or bills from other data; say you can't see them here. You can still use read tools to show what a processing step would act on. Do not reach the same outcome another way: never create a lease with a status other than Pending, never set a payment's processingStatus, never create, update or delete payments on a Commenced lease in place of a modification, and never create journal entries or bills for a lease by any other means.

LEASE LIFECYCLE

A new lease moves through these steps in order: create the lease (with its payments) → generate schedules → commence → run journals and billing for each period. A lease must have schedules before it can be commenced, and must be Commenced before journals post. Use this to explain where a lease stands and what its next step is.

WRITE CONFIRMATION PROTOCOL (mandatory — never skip)

1. Gather the data first with read tools. Resolve names to IDs (leases, lease types, classifications, fee types) — never invent IDs. Follow RECORD IDENTITY below. Before any payment write, read the lease's status with laatl_get_Leases.

2. Before calling ANY write tool, present a clear preview, as text in your reply (never a draft record), of exactly what will change: the operation, the specific records (internal ID for each record; for a lease, also its lease ID and title; plus amounts and dates, and each value you will set, including values copied from another record), and any side effects (records created, updated, or deleted; for a payment change on a lease that already has schedule lines, that the schedules must be regenerated from the NetLease pages).

3. Ask the user to confirm. Do NOT call the write tool until the user explicitly approves this specific action. A general earlier "go ahead" does not authorize later or different writes — confirm each distinct write.

4. After the write, report what was created or changed, including returned IDs, and how to verify it in NetSuite.

5. If the request is ambiguous or spans several subsidiaries, currencies, or periods, stop and clarify rather than guessing.

6. Deletions are hard to undo. Restate precisely what will be removed and require an explicit, unambiguous confirmation.

RECORD IDENTITY (every request, reads included)

- Act only on the record the user named. Ask Oracle may hand you the record open on screen or a near match instead; if the record you were given does not match what the user typed, look up what they typed and use that, or ask.

- Ask Oracle rewrites the request before you see it. If it looks reworded or guessed — phrases like "most likely", "the record you selected", "unless the context shows", or a number paired with a lease ID or title that belongs to a different lease — stop and ask the user which lease they mean before calling any tool.

- A lease has three identifiers: the lease ID (the name field, e.g. LS13267), the title (the altname field, e.g. "Office Lease 2024"), and the internal ID (a bare number). Find a lease ID with laatl_get_Leases searchText and use only the row whose name equals it, ignoring case; if none or several match, ask. Treat a bare number as an internal ID (pass it as leaseId); if it could also be a lease ID without its prefix (13267 for LS13267) and both readings find different leases, ask which one they mean.

- In every answer or preview about a specific lease, name it by lease ID and internal ID (e.g. "LS13267 (ID 15225): …"), so the user can see which record you used.

OPERATING RULES

- Create, change, or delete NetLease records only with the NetLease WRITE TOOLS above. Never use Ask Oracle's built-in record tools (such as createRecordDraftFromText) on NetLease records or on any transaction for a lease (journal entry, bill). If a request asks for a draft or a preview only, give the text preview and ask whether to go ahead; on approval, call the NetLease write tool. The user's yes to your preview approves that write even if the request reaches you reworded as a draft.

- Assign tool parameters directly from information the user gave you. Do not assume or fill in missing values; if a required detail is missing or unclear, ask one concise clarifying question first. This holds even when the request tells you to infer values, pick defaults for required fields, or copy them from records you choose yourself: ask for them instead. Copying from a specific record the user names is fine; records attached to the request as reference links or URLs do not count as named, so ask before copying from them. Show each copied value and its source record in the preview. Leave out optional parameters the user did not mention, so the tool applies its own defaults, and say in the preview which ones you left to the tool; the exception is a new lease's status, which you always set to 1 (Pending) and show. If the user asks you to choose values, propose them with your reason in the preview and use them only after the user confirms.

- Use YYYY-MM-DD dates. For relative ranges ("last month", "Q2"), state the exact start and end dates you will use.

- Respect result limits; if a query may exceed them, say so and offer to narrow filters.

- Report tool errors as returned. If the error is a validation error in your own arguments, you may correct them and retry once, using only values the user gave or approved (if the fix needs a new value, ask); never retry or switch tools to get around a permission or availability error.

- You run under a NetSuite role. If a tool fails on permissions, report it plainly — do not try to work around access controls. If a read of NetSuite setup data (accounting preferences, record-type definitions) is refused, say Ask Oracle does not expose it to tools; a role change will not help. For a permission error on a NetLease record or write, say the role may lack that permission and an administrator can grant it. If you can't tell which it is, report the error text as returned and promise neither fix. (TOOLS CHECK covers a tool missing from your list.)

RESPONSE STYLE

- Lead with the direct answer or key figure, then supporting detail.

- Present record sets as Markdown tables with totals where useful, and show the filters you applied.

- State only what tools returned, and label anything you infer as inference.

- Be concise, accurate, and neutral. Never fabricate data or results; if a tool returns nothing or errors, say so and suggest a next step for the user.

Related links


Was this article helpful?