# Skill: Query the CollegeAndFees MCP Server

## What This Skill Does

Gives agents structured, JSON access to CollegeAndFees.com's public college
dataset (colleges + quota-wise official fees) through the site's Model Context
Protocol server, instead of scraping HTML.

## Endpoint

- Transport: MCP Streamable HTTP (stateless, JSON responses, no session)
- URL: `https://collegeandfees.com/api/mcp`
- Authentication: none required
- Discovery card: `https://collegeandfees.com/.well-known/mcp/server-card.json`

MCP-native clients can add the server directly. Any other client can speak
plain JSON-RPC 2.0 over POST.

The same two capabilities are also exposed to agent-to-agent clients over
[A2A](https://a2a-protocol.org) at `https://collegeandfees.com/api/a2a`
(agent card: `/.well-known/agent-card.json`, skills `search-colleges` and
`get-college-fees`). Both surfaces share one implementation, so results are
identical.

## Tools

### search_colleges

Resolve a college name to its slug and canonical page URL.

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search_colleges",
    "arguments": { "query": "ramaiah", "city": "Bangalore", "limit": 5 }
  }
}
```

Arguments: `query` (required), `city`, `category` (`engineering` | `medical`),
`limit` (1–25).

### get_college_fees

Quota-wise official fee structure for one college.

```json
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "get_college_fees",
    "arguments": { "slug": "bms-college-of-engineering" }
  }
}
```

Arguments: `slug` (required), `academic_year` (optional, e.g. `2026-27`). Omit
`academic_year` to get each quota's most recent published figures — a college's
government and management rows are not always published for the same year.

Results arrive both as JSON text content and as `structuredContent`. Fee rows
include per-year INR amounts, four-year totals, quota labels, the row's own
`academic_year`, and — where verified — the official `source_url` to cite. The
payload also carries `available_academic_years` and `fee_data_source`
(`fees_table` or `creator_page`).

Reading the numbers correctly:

- Management/NRI-quota fees are often front-loaded (year 1 high, later years
  lower). Never derive a total as year1 × duration.
- A null `year2/3/4_fee_inr` means the college publishes only a year-1 figure.
  A populated `four_year_total_inr` is then the college's own stated total; a
  null one means no total is published — do not compute one.
- Zero rows means no structured fee data is published for that college/year,
  not that the college is free. The payload's `note` says where to look next.
