MCP Agent Tools
TermIQ exposes Model Context Protocol (MCP) tools so AI agents can query recorded terminal evidence, change the catalog, or drive live TN3270/TN5250 sessions.
Knowledge server (28 tools)
Endpoint /api/v1/mcp. Ten tools only read recorded evidence. Eighteen more cover the rest of the app. Each of those takes an action argument (list, get, create, update, and so on). For a complex payload, call get, edit the JSON, and send it back as data on update.
A TermIQ started with OL_NO_DT refuses design-time writes and answers DESIGN_TIME_DISABLED; catalog transfer, connections, login macros, and alert recipient lists stay available. Extracting, saving, deleting, or testing a login macro requires the admin role. Alert tools are listed only when the alert engine is on. Creating a workspace from a trail (qa_from_trail) is listed only when demo QA is on.
- list_vocabulary: filter dimensions and report categories
- describe_screen: catalog screen details and outgoing transitions
- describe_screen_maps: list uploaded BMS, MFS, and DDS map sections, or inspect one section's fields, labels, tables, PF keys, and MFS messages
- search_terminal_events / get_terminal_events: find and inspect events
- list_terminal_sessions: browse recorded session history
- run_terminal_report: execute ad-hoc reports
- get_screen_transitions: recorded actions leaving a catalog screen, including unpublished New screens
- get_insight: catalog screens and the recorded keys between them, including unpublished New screens
- find_insight_path: fewest recorded keystrokes from one screen to another
- manage_workspaces: list, create, update, and delete workspaces, and install a demo
- manage_screens: catalog screens, snapshots, tags, fields, and identifiers
- analyze_screens: AI analysis and merging similar screens
- manage_screen_maps: upload, import, and delete map files
- manage_trails: upload, rename, download, and process trail files
- manage_connections: host connection profiles
- manage_login_macros: sign-on macros; extract, save, delete, and test are admin-only
- manage_operation_definitions, analyze_operation_flow, manage_operation_suggestions, manage_operation_instances: operation catalog, flow analysis, suggestions, and recorded runs
- manage_runtime_data: event counts, unknown events, sessions, and flows
- manage_reports: saved reports, including execute and drilldown
- manage_operation_insights: operation insights.
menulists each enabled task (name, description, first and last happy-path screen, and the happy-path keys).playbookreturns one operation insight's flows, with the editable catalog fields and recorded sample values for each step; hidden values are left out.discoverupdates only operation insights the AI saved. - manage_alert_rules / manage_alert_recipients: alert rules and recipient lists
- manage_settings: application settings, recognizer and SMTP tests, and AI status
- transfer_design_time: catalog, export, and import a design-time bundle. These stay open when design-time is locked.
Terminal server (live sessions, 14 tools)
Endpoint /api/v1/mcp/terminal. Every call carries your TermIQ key in the x-ol-termiq-key header, which names the tenant, plus a bearer token from the mainframe sign-in. On first use your MCP client opens a browser page: choose the workspace, host connection and sign-on macro (or enter the host user and password) and sign in. The host credentials are stored encrypted in TermIQ until the sign-in expires (7 days by default) or is revoked, so the session can sign on again silently after a token refresh or a TermIQ restart.
- list_connections: host connections of the chosen workspace, plus example apps and whether each server is running
- manage_example_apps: start or stop an example server (administrator only)
- list_open_sessions: live sessions you still have open
- list_terminals: named terminals open on this call (A, B, and so on, up to
OL_MCP_TERMINAL_MAX_PER_USER, default 10) - connect_session: open a terminal on a stored connection, or on a running example
- open_terminal: open the same session as a terminal inside the chat
- get_screen: read the current screen with catalog-resolved identity
- fill_fields: keep typed values until the next key
- execute_action: press an AID and optionally set field values by name. To select a protected row, set the cursor row and column together and do not send that row as a field. The key is never replayed if the host ended the session.
- poll_screen: read the screen again without holding the session lock
- disconnect_session: close one named terminal, or all of them. An open recording is saved.
- start_trail_recording / stop_trail_recording: record the signed-in live session. The sign-on is not included, and a mock session cannot be recorded. A TermIQ started with
OL_NO_DTrefuses both; record the trail on the QA TermIQ. - create_embed_ticket: a one-minute single-use token for the full Terminal Player
open_terminal shows the live session in the chat; poll_screen and create_embed_ticket are for that view. A caller can hold several named terminals. Opening A does not close B.
A mock connection plays its trail in order. A host key (Enter, a PF key, and similar) moves to the next screen. Local keys such as Tab stay on the current screen, and typed values show until the next host key. Hidden field values are stored blank. Playback writes no terminal events.
Configure terminal connections, trails, and sign-on macros under Workspace, then Configuration.
Search recorded events, follow an operation insight's playbook, or open live terminals in the chat.