Tools

14 tools in 4 families. The names, descriptions and schemas are generated from the server itself, so they are exactly what the model receives in tools/list.

Tool Family What it does
connector_sources Databases List the company databases declared on the stand: each source's name, engine (mongodb, sqlserver or postgresql), database, the collections an agent may read …
connector_schema Databases Read what a source holds before querying it.
connector_find Databases Read documents of a collection that match a filter, with the fields and order asked for.
connector_aggregate Databases Run a MongoDB aggregation pipeline on a collection to group, sum, count and join — the way to analyse rather than list.
connector_count Databases Count the documents of a collection that match a filter, written as MongoDB Extended JSON, such as {"status": "paid", "total": {"$gt": 100}}; dates as {"$dat…
connector_query Databases Run one SELECT on a SQL source — PostgreSQL or SQL Server — to search, join, group and sum.
connector_export Databases Write rows into a csv or xlsx file of the task, under exports/ of the working copy, which the task's card offers a person to download.
connector_journal Databases Read the queries this task already made — which source and collection, what was asked, how many rows came back, whether it failed — newest first, so a query …
connector_propose_write Writes Propose a change to a company database — update, update_one, insert or delete — when the task needs one.
connector_apply Writes Run a proposal the stand's owner or an administrator allowed, once, as the source's writing user, and get back how many documents or rows it changed.
connector_diagnose Diagnostics Say whether the server can reach the stand's sources: its version, Vault, and how many sources are declared.
find_tool Finding and running tools Finds tools of this server for a task in words, best first, with the parameters of each.
run_tools Finding and running tools Runs tools of this server in order in one call, stopping at the first failure; no step sees an earlier answer.
run_program Finding and running tools Run a JavaScript program whose functions are this server's commands, connector.<command>({ … }), with loops, conditions and the results in hand.