Skip to main content
Glama

search_files

Locate files by filename across enrolled Moodle courses and return matching file details with download URLs. Use a result limit to control output.

Instructions

Search for files by filename across all enrolled courses. Returns file details including download URLs.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (default: 50, max: 200)
queryYesSearch query to match against filenames

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It usefully reveals that the search spans all enrolled courses (no course scoping) and that results include download URLs, but it says nothing about matching semantics (exact vs. substring), permissions/authentication, or pagination beyond the limit parameter.

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 short sentences, front-loaded with the core action and scope, with the return-value note second. Nothing is wasted, though the definition is thin enough that a bit more structure around matching behavior would have earned its place.

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?

For a simple two-parameter read-only search with no output schema, the definition covers what it searches, over what scope, and roughly what comes back. The main gap is search-semantics detail, which matters for an agent deciding between this and the sibling search tools.

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 both parameters are already documented with defaults and max values. The description's "by filename" phrase reinforces what the query matches, but adds no syntax or format detail beyond the schema; baseline 3 applies.

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?

States a specific verb and resource ("Search for files") plus scope ("by filename across all enrolled courses"). It implicitly separates itself from siblings like search_resources and get_course_documents, but never names them explicitly, so differentiation stops short of the top tier.

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?

Usage is only implied: it's clear you would use this when you know part of a filename, and the scope note hints there is no per-course filtering option. There is no explicit when-to-use/when-not guidance and no named alternative such as search_resources for non-filename queries.

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