Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HEIDY_BASE_URLNoBackend alternativo (padrão: https://heidy-backend.fly.dev)https://heidy-backend.fly.dev
HEIDY_PASSWORDNoSenha Única para login automático
HEIDY_USERNAMENoNúmero USP para login automático na primeira ferramenta
HEIDY_DOWNLOAD_DIRNoPasta padrão para moodle_download_file (padrão: ./downloads)./downloads

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
usp_loginA

Log in to USP with the USP number and Senha Única.

The password is encrypted to the backend's login key before leaving this process and is never stored. Returns the student's profile.

usp_logoutA

Log out, revoking the current session token.

get_profileA

The logged-in student's profile (name, USP number, email, course).

moodle_coursesB

List the student's current Moodle (e-Disciplinas) courses.

moodle_courseB

A Moodle course's contents: its sections and activities (id, title, kind, url).

moodle_activityA

Open a Moodle activity by URL: page content, links and attached file, if any.

For file activities (PDFs, slides, ...) this returns the file's name, type and size — use moodle_download_file to save the bytes to disk.

moodle_download_fileA

Download a Moodle file activity (PDF, slides, ...) to local disk.

url is the activity URL from moodle_course (kind "Arquivo"/"Resource"). Saves into directory (default: $HEIDY_DOWNLOAD_DIR or ./downloads) and returns the saved path, name, MIME type and size. Files up to 10 MB.

usp_syncA

Start a background sync pulling data from USP systems into the planner.

Sources default to all of schedule, grades, absences and moodle. Returns the sync run; poll usp_sync_status with its id until it succeeds or fails.

usp_sync_statusC

A sync run's status, per-source counts and error, if any.

usp_sync_historyC

Past sync runs, optionally filtered by status.

list_semestersA

The student's semesters (label, start/end dates, which one is active).

get_scheduleC

The weekly class schedule for a semester: day -> time slots with locations.

list_enrollmentsC

The student's enrollments (classes), with meetings, professor and credits.

list_gradesC

Grades recorded for one enrollment (label, score, max score, weight).

grade_summaryC

Weighted average, graded/remaining weight and passing status for an enrollment.

list_absencesC

Absences recorded for one enrollment.

absence_summaryC

Absences used vs. the enrollment's limit, with a risk status.

list_tasksB

The student's tasks (assignments, exams, ...), filterable and sortable.

due_before/due_after are ISO 8601 datetimes.

create_taskC

Create a task in the student's planner. due_at is an ISO 8601 datetime.

update_task_statusB

Move a task between todo, doing and done.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/iDavi/usp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server