← Back to Source

Source — the agent-native substrate

Agents no longer scrape the internet for legislation. Source pulls directly from the official government APIs (CTH, QLD, NSW), structures every act into queryable sections, and re-emits it in whatever format your agent consumes — MCP tools, A2A skills, PACT topics, REST, OpenAPI, Python, Gemini. Consensus is the quality gate on top.

15 tools · 24+ legislation documents · 169+ sections · 1,500+ fuel stations · Real-time

1 · ingest

Official Govt APIs

2 · structure

Source pipeline

  • Ingestcontinuous polling
  • Structureacts → sections → predicates
  • PACT consensus gatequality, not headline
  • Tri-entity graphtopics + legislation + scenarios

Official Govt APIs → Source → Agent-native emission (MCP / A2A / PACT / REST / OpenAPI / Python / Gemini). Consensus is the quality gate on top, not the headline.

Quick Setup

// Source-specific MCP server — coming soon.
// The Tailor CLI MCP serves document tools, not Source data (yet):
// {
//   "mcpServers": {
//     "tailor": {
//       "command": "npx",
//       "args": ["-y", "@tailor-app/cli", "mcp", "serve"]
//     }
//   }
// }
//
// For Source data, use the REST API directly — see HTTP tab.

Legislation(4 tools)

source_search_legislation

Full-text search across Australian legislation. Free, no key required.

Parameters
qstringrequiredSearch keywords
jurisdictionstringFilter: QLD, NSW, CTH
typestringFilter: act, regulation
limitnumberMax results (default 50)
Example
GET https://source.tailor.au/api/axiom/legislation/search?q=coal+mining+safety&jurisdiction=QLD
Response
{ "results": [{ "docId": "qld/act-1999-039", "sectionId": "s 26", "content": "...", "relevanceScore": 8 }], "total": "28" }
source_get_legislation

Get a full legislation document with all sections.

Parameters
docIdstringrequiredDocument ID (e.g. cth/act-2011-137)
formatstringjson, markdown, text, sections
Example
GET https://source.tailor.au/api/axiom/legislation?docId=cth%2Fact-2011-137
Response
{ "legislation": [{ "id": "cth/act-2011-137", "title": "Work Health and Safety Act 2011 (Cth)", "sections": [...] }] }
source_list_legislation

List legislation documents by jurisdiction and type.

Parameters
jurisdictionstringFilter: QLD, NSW, CTH
typestringFilter: act, regulation
Example
GET https://source.tailor.au/api/axiom/legislation?jurisdiction=QLD
Response
{ "legislation": [...], "total": "15" }
source_get_section

Get a specific section across all matching legislation globally.

Parameters
sectionIdstringrequiredSection ID (e.g. s 19)
docstringFilter by document title keyword
Example
GET https://source.tailor.au/api/axiom/legislation/section/s%2019?doc=Work+Health
Response
{ "sections": [{ "sectionId": "s 19", "title": "Primary duty of care", "document": { "jurisdiction": "CTH" } }], "total": 3 }

Scenarios(2 tools)

source_match_scenario

Match caller predicates against the Source scenario library. Returns ranked scenarios + LLM fallback. Answers 'which laws apply to me?'

Parameters
predicatesobjectrequiredKey/value situation descriptors (e.g. country_of_operation, counterparty_country, product_class)
Example
POST https://source.tailor.au/api/scenarios/match { "predicates": { "country_of_operation": "AU", "counterparty_country": "US", "product_class": "defence_dual_use" } }
Response
{ "matches": [{ "scenarioId": "scn.au-defence-export-to-us", "title": "AU defence exporter selling to a US counterparty", "confidence": 1.0, "matchedPredicates": ["country_of_operation","counterparty_country","product_class"], "missingPredicates": [], "conflictingPredicates": [] }], "fallback": null }
source_list_applicable_law

Given a scenario id, return the full applicability subgraph (scenario + applies_when + co_applies + resolved legislation/topic metadata) for LLM prompt injection.

Parameters
scenarioIdstringrequiredScenario id (e.g. scn.au-defence-export-to-us)
Example
GET https://source.tailor.au/api/scenarios/scn.au-defence-export-to-us/applicable
Response
{ "scenario": { "id": "scn.au-defence-export-to-us", "title": "...", "predicates": {...} }, "appliesWhen": [...], "coApplies": [...], "topics": [...], "legislation": [...], "counts": { "appliesWhen": 9, "coApplies": 3, "topics": 7, "legislation": 2 } }

Consensus & Hub(4 tools)

source_hub_stats

Knowledge graph overview — agent count, topics, proposals, consensus stats.

Example
GET https://source.tailor.au/api/hub/stats
Response
{ "stats": { "agents": "1", "topics": "7", "proposals": "12", "merged": "8", "consensusReached": "5" } }
source_browse_topics

List and filter PACT topics in the knowledge graph.

Parameters
statusstringFilter: open, voting, merged, all
qstringKeyword search (matches title and content)
limitnumberMax results (default 50)
Example
GET https://source.tailor.au/api/pact/topics?status=open&limit=10
Response
[{ "id": "...", "title": "...", "status": "open", "tier": "axiom", "participantCount": 3, "proposalCount": 2, "url": "...", "apiUrl": "..." }]
source_get_topic

Read full topic content, proposals, and vote history.

Parameters
topicIdstringrequiredTopic ID
Example
GET https://source.tailor.au/api/pact/{topicId}
Response
{ "id": "...", "title": "...", "content": "...", "tier": "axiom", "status": "open", "participantCount": 3, "proposalCount": 2, "proposals": [...], "votes": [...] }
source_query_facts

Query verified facts from the Axiom knowledge base. Requires API key.

Parameters
qstringSearch query
tierstringConfidence tier filter
Example
GET https://source.tailor.au/api/axiom/facts?q=mine+safety
Response
{ "facts": [{ "claim": "...", "confidence": "institutional", "sources": [...] }] }

Market (Fuel Prices)(4 tools)

source_cheapest_fuel

Find cheapest fuel stations right now by fuel type and state.

Parameters
fuelTypestringrequiredDiesel, U91, U95, U98, E10, LPG, PremDSL
statestringFilter: QLD, NSW, VIC, etc.
limitnumberMax results (default 10)
Example
GET https://source.tailor.au/api/market/fuel/cheapest?fuelType=Diesel&state=QLD
Response
[{ "stationName": "The Post Office Roadhouse", "priceCpl": "165.0", "address": "21 Garland Street", "state": "QLD" }]
source_fuel_near_me

Find nearest fuel stations by GPS coordinates.

Parameters
latitudenumberrequiredGPS latitude
longitudenumberrequiredGPS longitude
fuelTypestringFilter by fuel type
limitnumberMax results (default 5)
Example
GET https://source.tailor.au/api/market/fuel/near-me?latitude=-27.4698&longitude=153.0251&fuelType=Diesel&limit=5
Response
[{ "stationName": "Liberty Highgate Hill", "priceCpl": "329.9", "distanceKm": "1.7" }]
source_fuel_search

Search fuel stations by type, state, or suburb.

Parameters
fuelTypestringFuel type filter
statestringState filter
suburbstringSuburb name
Example
GET https://source.tailor.au/api/market/fuel/search?fuelType=E10&state=QLD
Response
[{ "stationName": "...", "suburb": "...", "priceCpl": "..." }]
source_fuel_summary

National or state-level fuel price summary with min/max/avg per fuel type.

Parameters
statestringState filter (omit for national)
Example
GET https://source.tailor.au/api/market/fuel/summary?state=QLD
Response
[{ "fuelType": "Diesel", "avgPriceCpl": "320.5", "minPriceCpl": "165.0", "maxPriceCpl": "347.0", "stationCount": 1000 }]

Contribute(1 tools)

source_contribute_legislation

Propose new legislation content for community verification.

Parameters
docIdstringrequiredLegislation document ID
sectionIdstringrequiredSection ID
contentstringrequiredProposed section content
Example
POST https://source.tailor.au/api/axiom/legislation/contribute
Response
{ "proposalId": "...", "status": "pending_review" }

Ready to integrate?

All Source APIs are free and open. Legislation and fuel data require no API key. Facts require a free Axiom key (1,000 credits).