D2lbrightspace Integration for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with D2lbrightspace MCP or direct API to fetch course rosters, send announcements, manage assignments, and automate grading through natural language.
D2lbrightspace Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Supported Tools

Tools
Copy RoleCreates a new role copied from an existing role in d2l brightspace.
Create Course OfferingCreates a new course offering in d2l brightspace.
Create Course TemplateCreates a new course template in d2l brightspace.
Create Grade ObjectCreates a new grade object for a particular org unit.
Create QuizCreates a new quiz in d2l brightspace.
Create Quiz CategoryCreates a new quiz category in d2l brightspace.
Create UserCreates a new user entity in d2l brightspace.
Delete Course TemplateDeletes a course template from d2l brightspace.
Delete CourseDeletes a course offering from d2l brightspace.
Delete Grade ObjectDeletes a specific grade object from an org unit.
Delete QuizDeletes a quiz from d2l brightspace.
Delete Quiz CategoryDeletes a quiz category from d2l brightspace.
Delete UserDeletes a user entity from d2l brightspace.
Delete User DemographicsDeletes one or more of a particular user's associated demographics entries.
Get Course OfferingRetrieves a specific course offering from d2l brightspace.
Get Course TemplateRetrieves a course template from d2l brightspace.
Get Course SchemaRetrieves the list of parent org unit type constraints for course offerings.
Get Course Template SchemaRetrieves the list of parent org unit type constraints for course offerings built on this template.
Get Current User InformationRetrieves the current user context's user information from d2l brightspace.
Get Enrolled RolesRetrieves a list of all enrolled user roles the calling user can view in an org unit.
Get Grade AccessRetrieves a list of users with access to a specified grade.
Get Grade ObjectRetrieves a specific grade object for a particular org unit.
Get Grade ObjectsRetrieves all current grade objects for a particular org unit.
Get Grade SetupRetrieves the grades configuration for an org unit.
Get Grade StatisticsRetrieves statistics for a specified grade item.
Get Org Unit DemographicsRetrieves all demographics entries for users enrolled in a particular org unit.
Get QuizRetrieves a specific quiz from an org unit.
Get Quiz AccessRetrieves a list of users with access to a specified quiz.
Get Quiz AttemptRetrieves a specific quiz attempt.
Get Quiz AttemptsRetrieves a list of attempts for a quiz.
Get Quiz CategoriesRetrieves all quiz categories belonging to an org unit.
Get Quiz CategoryRetrieves a specific quiz category from an org unit.
Get Quiz QuestionsRetrieves all questions in a quiz.
Get QuizzesRetrieves all quizzes belonging to an org unit.
Get Role by IDRetrieves a particular user role from d2l brightspace by its id.
Get RolesRetrieves a list of all known user roles in d2l brightspace.
Get User by IDRetrieves data for a particular user from d2l brightspace.
Get UsersRetrieves data for one or more users from d2l brightspace.
Update Course OfferingUpdates an existing course offering in d2l brightspace.
Update Course TemplateUpdates an existing course template in d2l brightspace.
Update Grade ObjectUpdates a specific grade object.
Update Grade SetupUpdates the grades configuration for an org unit.
Update QuizUpdates an existing quiz in d2l brightspace.
Update Quiz CategoryUpdates an existing quiz category in d2l brightspace.
Update UserUpdates an existing user entity in d2l brightspace.

Connect D2lbrightspace MCP Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to D2lbrightspace tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Create a new quiz in the Introduction to Python course')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Connect D2lbrightspace API Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio_openai
Install the Composio SDK

Initialize Composio and Create Tool Router Session

python
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
openai = OpenAI()
session = composio.create(user_id='your-user-id')
Import and initialize Composio client, then create a Tool Router session

Execute D2lbrightspace Tools via Tool Router with Your Agent

python
tools = session.tools
response = openai.responses.create(
  model='gpt-4.1',
  tools=tools,
  input=[{
    'role': 'user',
    'content': 'Create a new quiz for Introduction to Biology course'
  }]
)
result = composio.provider.handle_tool_calls(
  response=response,
  user_id='your-user-id'
)
print(result)
Get tools from Tool Router session and execute D2lbrightspace actions with your Agent

Why Use Composio?

AI Native D2lbrightspace Integration

  • Supports both D2lbrightspace MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your D2lbrightspace data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke D2lbrightspace access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access D2lbrightspace
  • Scoped, least privilege access to D2lbrightspace resources
  • Full audit trail of agent actions to support review and compliance

Frequently Asked Questions

Do I need my own developer credentials to use D2lbrightspace with Composio?

Yes, D2lbrightspace requires you to configure your own OAuth credentials. Once set up, Composio handles token storage, refresh, and lifecycle management for you.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.