Skip to main content
Glama

listar_modulos

Read-only

Lista os módulos (pastas de primeiro nível) da pasta de estudos e, dentro de cada um, as subpastas com nome de módulo ou aula (como num repositório de curso).

Instructions

Lista os módulos (pastas de primeiro nível) da pasta de estudos e, dentro de cada um, as subpastas com nome de módulo ou aula (como num repositório de curso). Para buscar ou fazer quiz de uma subpasta, use o caminho completo "modulo/subpasta".

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "listar_modulos"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.4.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "modulos": {
      -      "description": "Nomes das pastas de módulos",
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "submodulos": {
      -      "additionalProperties": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "description": "Subpastas com nome de módulo ou aula, por módulo",
      -      "propertyNames": {
      -        "type": "string"
      -      },
      -      "type": "object"
      -    }
      -  },
      -  "required": [
      -    "modulos",
      -    "submodulos"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Changed2 schema fields changedv1.3.0
    • addedOutput schema / properties / submodulos
      Added value: +{
      +  "additionalProperties": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "description": "Subpastas com nome de módulo ou aula, por módulo",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "modulos"
      -]New value: +[
      +  "modulos",
      +  "submodulos"
      +]
  3. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds useful shape information — that results are modules with their subfolders, and that subfolder names encode 'módulo' or 'aula' — but does not address ordering, depth limits, or behavior on an empty/uninitialized study folder.

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

Conciseness4/5

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

Two sentences, both front-loaded with the core action before the usage hint. The parenthetical explanation and course-repository analogy are mildly redundant but aid interpretation rather than padding.

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?

With no output schema, the description must convey the return shape, and it does: first-level module folders, each with lesson/module subfolders. Given a zero-parameter read tool, this is nearly sufficient; only edge cases (empty folder, depth, sort order) are unstated.

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

Parameters4/5

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

The tool takes zero parameters, so the baseline is 4; there is nothing for the description to disambiguate at the input level. Its mention of path format applies to consuming the output, not to inputs.

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

Purpose4/5

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

The description gives a specific verb and resource — 'Lista os módulos (pastas de primeiro nível)' — and clarifies the returned hierarchy, giving an analogy ('como num repositório de curso'). It distinguishes itself from search/quiz operations but does not explicitly contrast with listar_arquivos, so it stops short of full sibling differentiation.

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

Usage Guidelines3/5

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

It states a downstream usage rule: to search or quiz a subfolder, use the full 'modulo/subpasta' path. However, it never says when to prefer this tool over listar_arquivos or ver_estudos, so the choice between listing tools is left implicit.

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