Skip to main content
Glama

search_degrees

Search Spanish university degree offerings by free text and filters, ranked with BM25, to find degree IDs, university, region, branch, and cut-off grades.

Instructions

Search degree offerings by free text and filters, ranked with BM25.

Returns degree ids, university, region, branch and the latest cut-off grade (over 14). Use the ids with get_degree, compare_degrees or admission_check.

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_degrees"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results.
queryYesFree text, e.g. 'informatica en Madrid' or 'medicina'. Accent- and case-insensitive. May be empty if filters are set.
branchNoKnowledge branch: ciencias, ciencias_salud, ingenieria_arquitectura, artes_humanidades, ciencias_sociales_juridicas.
regionNoAutonomous community, e.g. 'Madrid', 'Cataluña', 'Andalucia'.
max_cutoffNoOnly degrees whose latest cut-off is at or below this grade (over 14).
universityNoUniversity id, acronym (e.g. 'UCM') or part of its name.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the behavioral burden reasonably well: it discloses the ranking algorithm, the exact fields returned (ids, university, region, branch, latest cut-off grade on a 0-14 scale) and the downstream consumption pattern. It does not mention result-set exhaustiveness, total counts, or any rate/permission constraints, which are the remaining gaps for an unannotated tool.

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?

Three short lines: purpose with ranking, then the return shape, then the downstream usage. Front-loaded with the operation and no filler; the only repetition is the 0-14 grade scale, which is minor.

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

Completeness5/5

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

An output schema exists, so return-value explanation is optional, yet the description still summarizes the fields usefully. All six parameters are documented in the schema, required/optional split is clear, and the tool's role in the broader flow is stated — nothing an agent needs in order to call it is missing.

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 defines query, region, branch, university, max_cutoff and limit with examples. The description adds only the 'over 14' grade scale, which is also in the schema, so the baseline of 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?

The description opens with a specific verb and resource ('Search degree offerings by free text and filters') and adds the ranking method (BM25), which tells an agent exactly what kind of operation this is. It positions itself as the discovery step whose ids feed get_degree, compare_degrees and admission_check, though it never explicitly contrasts itself against a sibling alternative.

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?

It gives clear workflow context: call this first, then pass the returned ids to get_degree, compare_degrees or admission_check. That is real when-to-use guidance for a search entry point, but there are no exclusions or 'use X instead when...' statements, so it stops short of the 5 bar.

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