Skip to content
Historical Database

Operating the Historical Database over MCP

Everything in this section applies unchanged when a historical table is driven through the Center's MCP tools: the same AMI SQL creates, loads, optimizes, indexes, and queries it. The points below cover what an agent needs to know.

For the tool surface itself, connecting, and how to verify the endpoint is live, see Operating 3forge Enterprise over MCP.

A query returns rows

A SELECT, an aggregate, a join, or count(*) against a historical table returns its rows over MCP, the same as against a realtime table. Use center_console(op="sql") for reads; it returns up to 10000 rows unless the statement has its own LIMIT. See Operating 3forge Enterprise over MCP.

Several statements can go in one call

Statements separated by semicolons in one center_execute call all apply: three INSERT statements sent in one call against a historical table commit all three rows. See Operating 3forge Enterprise over MCP.

The syntax pre-check does not check tables or columns

center_verify(op="amisql") parses and compiles a statement but does not check that its tables and columns exist or that their types fit. A statement against a historical table that passes the check can still fail when it runs, so run it and handle the execution error. See Operating 3forge Enterprise over MCP.

What is not repeated here

Capability questions an agent has to get right are answered on the pages that own them:

  • Whether two historical tables can be joined. They can. See Querying, which also covers the accepted join clause forms and the two-table limit.
  • Which query forms are unsupported, with the exact error string and correction for each. See Troubleshooting.