bc_api_search
Search installed Business Central APIs to find readable and writable action names by entity keyword, then use the results to pick endpoints for describing, listing, or invoking data.
Instructions
Searches the Business Central APIs available to this user and returns action names such as "List_Customers_PAG30009", "List_CustomerLedgerEntries_QRY30302" or "Create_Customer_PAG30009". It covers every installed API page and API query the user can read — Microsoft's standard APIs, ISV and custom extension APIs — not only the Standard API v2.0 entities bc_query knows. Names are <PAG|QRY>; List actions read, Create/Modify/Delete and bound/unbound actions change data.
Workflow: bc_api_search -> bc_api_describe (fields, filters, required parameters) -> bc_api_list to read, or bc_api_invoke to create, modify, delete or run an action. Matching is by name fragments, so search with entity words ("customer", "sales invoice", "ledger"); pass actionTypes ["List"] to find readable data only. Write actions appear only for API objects an admin enabled with those permissions in BC's MCP Server Configuration; reads are available for all installed APIs.
When NOT to use: to read tables that have no API (write an AL query with bc_data_query), or to work through the UI (bc_open_page). Runs on BC's own MCP server (BC 29+, API tools enabled), else BC_MCP_UNAVAILABLE; needs no web-client session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Maximum number of action names to return (default 15, range 5-50). | |
| company | No | Company to run in (exact, case-sensitive name from bc_list_companies). Defaults to the current session company, then BC_ODATA_COMPANY, then the user's default company in BC. | |
| searchText | Yes | Comma-separated fragments of the entity or action name to match, e.g. "customer, ledger" or "salesInvoice". Matching is by name (keyword search). | |
| actionTypes | No | Only these action types (default: all). "List" reads; "Create"/"Modify"/"Delete" write; "BoundAction" runs a record operation such as Post; "UnboundAction" runs a codeunit API. Write types exist only for API objects an admin enabled in BC's MCP Server Configuration. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actions | Yes | ||
| company | Yes |