Skip to main content
Glama
grandMA2 MCP
by drohi-r

suggest_skills_for_task

Converts a natural-language intent into ranked skill suggestions from .claude/skills, optionally filtering destructive skills. Use it to select the right skill before running a task.

Instructions

Suggest skills from .claude/skills/ for a natural-language intent (SAFE_READ).

Args:
    intent: What you want to do, e.g. "make me a color picker".
    top_k: Max number of suggestions to return.
    include_destructive: When False, drop un-approved DESTRUCTIVE skills.
    prefer_semantic: When True, attempt embedding-based ranking when a
        ``GITHUB_MODELS_TOKEN`` env var is set. Path A ships keyword only;
        this flag controls the warning message rather than the algorithm.

Returns:
    JSON-encoded SuggestSkillsResponse: ``{intent, method, warning, suggestions}``.

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": {
      "intent": "<intent>"
    },
    "name": "suggest_skills_for_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
top_kNo
intentYes
prefer_semanticNo
include_destructiveNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/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 full burden and mostly delivers: it flags SAFE_READ, explains that include_destructive=False filters un-approved DESTRUCTIVE skills, and candidly discloses that prefer_semantic currently only controls a warning message rather than the ranking algorithm. That last disclosure is exactly the kind of behavior an agent could not guess. It does not cover what "un-approved" means or how approval happens, and states no auth or rate-limit constraints.

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?

Front-loaded with the one-line purpose, then cleanly partitioned into Args and Returns blocks — easy to scan. The prefer_semantic explanation runs three lines, but that detail is genuinely useful rather than filler. Minor docstring-style overhead in repeated type framing ("JSON-encoded SuggestSkillsResponse") keeps it from a 5.

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?

An output schema exists, yet the description still names the response fields ({intent, method, warning, suggestions}), which helps the agent know a warning channel exists. For a 4-param, single-required-argument tool this is close to complete; what's missing is how DESTRUCTIVE skills get approved and the relationship to suggest_tool_for_task.

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?

Schema description coverage is 0%, so the description must compensate, and it documents all four parameters with meaning beyond the schema titles: a concrete intent example, top_k as a max count, include_destructive's filter behavior, and prefer_semantic's env-var (GITHUB_MODELS_TOKEN) dependency. The only gap is that it doesn't spell out the defaults or the interplay between top_k and filtering.

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 ("Suggest skills from .claude/skills/") plus the input modality ("natural-language intent"). The SAFE_READ tag signals the operation class, but the definition never distinguishes this from the sibling suggest_tool_for_task, so the agent must infer the skills-vs-tools split from names alone.

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 implied by the example intent ("make me a color picker") and by the presence of an intent parameter, but there is no explicit "use this when... / not when..." guidance. In particular, nothing says when to pick this over suggest_tool_for_task, which is the most likely confusion point given the near-identical naming.

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

Deploy Server

Other Tools