# TCE-SP (Audesp) MCP for AI Agents AI Agent Connect

> TCE-SP (Audesp) MCP provides direct access to public transparency data from the São Paulo State Court of Auditors. Use it to query municipal expenses and revenues, allowing you to pull official fiscal records for any city in the state to analyze public spending patterns.

## Overview
- **Category:** data-analytics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_SdsOF0E2D0haJ6jzdAvG1WypBXeo4dV2tflfPuf1/ai-agent-connect
- **Tags:** transparency, public-spending, fiscal-data, auditing, municipal-data, open-data

## Description

The TCE-SP (Audesp) MCP connects you to the official transparency portal for the São Paulo State Court of Auditors. It stops the need to manually hunt through government portals for specific spending records. You can grab detailed expense lists or revenue reports for any city, then ask your agent to spot trends or compare how different towns handle their budgets. It's a huge time saver for anyone who needs to see the raw numbers behind public spending without the headache of navigating complex state websites. Instead of opening dozens of tabs and searching for individual PDF reports, you can just ask your AI client to pull the data for a specific month or fiscal year. This allows for much faster auditing and research, whether you are looking for specific infrastructure costs or just want to see how a city's revenue compares to its neighbors. It makes the process of investigating public funds much more efficient by putting the data directly into your conversation.

By using this connection, you can move from manual data entry to high-level analysis in seconds. You can ask your agent to summarize a year's worth of spending, identify the largest line items in a budget, or find specific revenue streams for a particular municipality. This is a game changer for anyone who works with public data and needs to stay on top of municipal performance. You can find this in the Vinkius catalog to get started with your data analysis.

## Tools

### list_despesas
Fetch detailed expense records for a chosen municipality, year, and month. It lets you see exactly where public funds are spent.

### list_municipios
Get a full list of all cities under TCE-SP jurisdiction. This helps you find the exact slug needed for specific queries.

### list_receitas
Pull revenue data for a specific municipality for a given month and year. Use this to track municipal collections and tax performance.

## Prompt Examples

**Prompt:** 
```
List all the cities available in the TCE-SP system.
```

**Response:** 
```
I've pulled the list of municipalities for you. It includes cities like Santos, Campinas, and Sao Bernardo do Campo. Which one do you want to look into?
```

**Prompt:** 
```
Show me the expenses for Santos in January 2023.
```

**Response:** 
```
I'm pulling the expense records for Santos for January 2023... Here is the breakdown:

| Category | Amount | Notes |
| :--- | :--- | :--- |
| Infrastructure | R$ 450,000 | Road repairs |
| Personnel | R$ 120,000 | Staff salaries |
| Operations | R$ 30,000 | Utilities |

It looks like there were significant costs in infrastructure.
```

**Prompt:** 
```
What were the revenues for Campinas in December 2022?
```

**Response:** 
```
Querying the revenue data for Campinas for December 2022... The total collection for that month was R$ 1,200,000. This includes tax revenues and state transfers.
```

## Capabilities

### List all municipalities
Get a complete list of all cities under the TCE-SP jurisdiction to find the correct slugs for your queries.

### Fetch expense records
Pull detailed spending data for a specific city, filtered by the exact month and fiscal year you need.

### Track municipal revenues
Access revenue data to monitor how much a city is collecting in taxes and state transfers.

### Compare spending patterns
Identify how different cities allocate their budgets by pulling and comparing records from multiple locations.

### Identify fiscal trends
Use your agent to spot shifts in public spending over several years or across different regional jurisdictions.

## Use Cases

### Finding discrepancies in a specific city
A journalist wants to know if a city spent more on infrastructure than promised. They ask the agent to pull `list_despesas` for a specific month and compare it to the budget.

### Comparing regional revenue
A researcher wants to see which cities are collecting the most tax. They have the agent pull `list_receitas` for five different municipalities in the same year to see the distribution.

### Historical spending analysis
A public manager needs to see if expenses are rising. They ask the agent to pull records from three different years to identify trends and plan for the next fiscal cycle.

### Rapid city lookup
A user needs to find the correct ID for a small town. They use `list_municipios` to get the full list and find the right slug instantly, avoiding errors in their queries.

## Benefits

- Stop manual portal navigation. Use `list_municipios` to quickly identify the correct city slug without clicking through multiple pages. This saves you from getting lost in the state's complex directory structure.
- Get instant expense breakdowns. Use `list_despesas` to grab detailed records for any city in a specific month and year. It lets you see exactly where public funds are spent on things like infrastructure or payroll.
- Monitor municipal revenue easily. Use `list_receitas` to see how much a city is actually collecting versus what they planned. This gives you a clear picture of the local tax base and state transfer performance.
- Spot fiscal trends faster. Your agent can compare data from different years to show you how spending habits have shifted over time. This helps you identify long-term patterns in how public money is allocated.
- Audit public spending with precision. Pull raw data directly from the official source to ensure your analysis is based on official records. You can verify government reports against the actual data on file.

## How It Works

The bottom line is you get direct access to official state audit data without the manual searching.

1. Subscribe to the Connector and add your API credentials to your AI client.
2. Ask your agent to find a specific municipality or a specific time frame for fiscal data.
3. Receive a structured list of expenses or revenues for your analysis.

## Frequently Asked Questions

**Can I use TCE-SP (Audesp) to check spending in other states?**
No, this Connector specifically accesses the São Paulo State Court of Auditors. It is designed for municipal data within that state's jurisdiction.

**How does TCE-SP (Audesp) help with investigative journalism?**
It lets you pull raw, official spending and revenue records for any city. You can use this to verify if public funds are being used as reported in local news.

**Does TCE-SP (Audesp) include private company data?**
No, it only provides public transparency data regarding municipal expenses and revenues. It does not contain private corporate financial records.

**Can I compare different cities using TCE-SP (Audesp)?**
Yes. You can pull data for multiple municipalities and have your agent compare their spending patterns or revenue totals to see who is performing better.

**Is the data from TCE-SP (Audesp) updated in real-time?**
It provides access to the official transparency portal data, which is updated by the state. Your agent will pull the most recent records available on the portal at that moment.

**What kind of municipalities can I look up with TCE-SP (Audesp)?**
You can list all municipalities under the TCE-SP jurisdiction to find the specific city you need to audit. This includes major cities and smaller towns alike.

**How do I find the correct name (slug) for a specific city?**
Use the `list_municipios` tool. It returns a complete list of all municipalities under TCE-SP jurisdiction with their respective slugs needed for expense and revenue queries.

**Can I query data for any year and month?**
Yes, using `list_despesas` or `list_receitas`, you can specify the `exercicio` (year) and `mes` (month, 1-12) to get precise historical data for a municipality.

**What is the difference between list_despesas and list_receitas?**
`list_despesas` focuses on how the municipality spent its budget (expenses), while `list_receitas` shows the income and collections (revenues) received by the city.