Skip to main content
Glama

get_analytics_learning_activity

Read-onlyIdempotent

Retrieve analytics for a specific learning activity in a course by providing course ID and activity ID. Use to monitor performance and report on individual activities without modifying data.

Instructions

๐ŸŸข READ-ONLY ยท GET /v2/courses/{id}/units/{uid}/analytics

Get analytics for a learning activity. Returns analytics about a learning activity of a course specified by the provided course id and learning activity id.

Behavior: read-only lookup against the live school; creates, changes and deletes nothing. Auth (admin API token + Lw-Client id) is injected server-side, never by the model; calls are throttled to stay under LearnWorlds' 30-per-10s cap and retried on 429/5xx. Returns: HTTP <status> followed by the LearnWorlds JSON response body. A non-2xx reply surfaces as a tool error with that status and the API error payload โ€” 401 bad/expired token, 403 not permitted, 404 no such record, 422 rejected input. Use when: safe to call speculatively for lookups and reporting. Not for changing anything โ€” use the matching ๐ŸŸก write tool. Related Reporting tools: get_analytics_course, get_user_progress, get_user_progress_per_course.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesCourse title Id
uidYesLearning activity id

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description goes well beyond the readOnlyHint and destructiveHint annotations by disclosing that auth is injected server-side, calls are throttled under LearnWorlds' 30-per-10s cap and retried on 429/5xx, and non-2xx responses surface as tool errors with specific status meanings. This gives the agent rich context about rate limits, error handling, and operational safety.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is structured into clear sections โ€” purpose, Behavior, Returns, Use when โ€” with front-loaded read-only status and endpoint path. Each sentence carries useful information, and there is no redundant filler despite the moderate length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description comprehensively covers behavioral, auth, throttling, and error semantics, which is strong for a tool with only two simple parameters. However, since there is no output schema, the return value description ('LearnWorlds JSON response body') is vague and does not explain what analytics fields will be present; a bit more detail about the payload shape would make it fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters ('Course title Id' and 'Learning activity id'). The description merely repeats the concept of 'course id and learning activity id' without adding format constraints, examples, or clarification of the ambiguous 'Course title Id' label, so it adds no real value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Get analytics for a learning activity' and clarifies the scope by specifying the course id and learning activity id. It also distinguishes itself from related reporting tools like get_analytics_course and get_user_progress, so an agent can identify what this tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit guidance: 'safe to call speculatively for lookups and reporting' and 'Not for changing anything โ€” use the matching ๐ŸŸก write tool.' It names related reporting tools as alternatives, but does not explain when to prefer this tool over get_analytics_course, get_user_progress, or get_user_progress_per_course, so the selection criteria between these siblings remains implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/ohneben/Learnworlds-MCP'

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