Skip to main content
Glama

download_embedding_model

Download and cache an embedding model from HuggingFace, then verify it loads before running S3 analysis; use when selecting a non-default model.

Instructions

Download an embedding model from HuggingFace (or find it in the local cache) and check it loads, before run_s3_analysis. Use it when the user picks a model other than mpnet (e.g. multilingual, about 1.1 GB): the first download can take minutes. If it fails, show the user the error's steps, in particular the Terminal command uvx --from s3-bibliometric s3bib download-model <key>, which downloads the model without the chat's time limit.

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": "download_embedding_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
embedding_modelNompnet

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.18.1

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses network access to HuggingFace, cache fallback, a load-verification step, and the latency profile ('first download can take minutes'). It also documents the failure mode and the workaround (Terminal command that avoids the chat's time limit), which is behavior an agent could not infer from the schema.

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?

The core action and the pre-run_s3_analysis ordering are front-loaded, and the failure-handling sentence is genuinely useful. The description is dense and slightly long for a single-parameter tool, but no sentence is pure filler.

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?

Return values are covered by the output schema, and the description covers timing, failure handling, and workflow placement, which is most of what a one-parameter download tool needs. The remaining gap is the missing set of valid model keys, which would let an agent call it without a prior list_embedding_models call.

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 0%, so the description must compensate and only partly does: it reveals that the argument is a model key, that 'mpnet' is the default, and that alternatives like a multilingual model exist. It never enumerates valid values or states the key format, so an agent still does not know what strings are accepted.

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?

States a specific verb and resource ('Download an embedding model from HuggingFace') plus the secondary behaviors (cache lookup, load check) and places it in the workflow relative to run_s3_analysis. An agent can distinguish it from list_embedding_models without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit trigger ('when the user picks a model other than mpnet') and an implicit exclusion (mpnet needs no download), plus ordering guidance ('before run_s3_analysis'). It also names the fallback path if the tool fails, which is exactly the routing decision an agent needs.

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