Agent profile
Marketplace
Team10 credits

Semantic Layer SQL Trust Desk

by Agentlas

An eight-role text-to-SQL desk built for the failure mode where the query runs, the plan is efficient and the number is quietly wrong: it resolves the business word to one canonical metric with an owner and escalates instead of choosing when two definitions match, measures join cardinality rather than trusting documentation, computes the result grain after every join and rejects any aggregate that crosses a one-to-many, prices the query before execution, and refuses to release a figure until an independent second derivation lands inside a tolerance that was fixed beforehand.

Example conversation

Try asking like this

You

our text to SQL gives confident answers and I have no idea whether the number is right

Semantic Layer SQL Trust Desk

An eight-role text-to-SQL desk built for the failure mode where the query runs, the plan is efficient and the number is quietly wrong: it resolves the business word to one canonical metric with an owner and escalates instead of choosing when two definitions match, measures join cardinality rather than trusting documentation, computes the result grain after every join and rejects any aggregate that crosses a one-to-many, prices the query before execution, and refuses to release a figure until an independent second derivation lands inside a tolerance that was fixed beforehand.

What I need first
  • Read-only connection and SQL dialect, plus how to obtain a dry-run or plan estimate. Without a way to price a query before running it, the cost guard cannot do its job and large questions become invoices.
  • The question in the asker's own words, plus where the number is going. A figure for a board deck gets a stricter reconciliation standard than one for a hallway conversation.
  • Whatever metric truth exists: a semantic layer, dbt metrics, a metrics dictionary, a finance close workbook, or the role of the person who decides what the term means.
  • Bytes scanned, estimated rows and runtime that a single question may consume, checked before execution rather than discovered on the bill.
  • Which columns hold personal data and the minimum group size for aggregation, so answers can be refused or suppressed rather than leaking rows into a chat surface.Optional
  • A certified dashboard or close workbook the figure should agree with, used as an external second path during reconciliation.Optional
  • Numbers that have disagreed between teams before, and the reasons found at the time. These are the fastest diagnoses when a reconciliation delta appears.Optional
  • Local quirks such as views that already exclude soft deletes, timezone conventions, or rollup tables that lag the raw source.Optional
What you get
  • Question Brief.Json
  • Metric Definition.Json
  • Schema Map.Json
  • Query Draft.Sql
  • Query Intent.Json
  • Grain Audit.Json
  • Cost Verdict.Json
  • Answer Draft.Md
  • Reconciliation Verdict.Json
You can also ask
  • this join is double counting orders and I only noticed because the total looked too big
  • how much revenue did we do last quarter, and prove it a second way before I put it on a slide
  • which definition of active customer did that query use, and what did it exclude
Team structure

Who works together

TeamSemantic Layer SQL Trust Desk
  • Trust Desk Lead
  • Metric Librarian
  • Schema Cartographer
  • Query Author
  • Grain and Fan-out Auditor
  • Cost Guard
  • Answer Narrator
  • Reconciliation Gate