Skip to main content
Glama

Add phrases to Nightspar

add_phrases
Idempotent

Save 1 to 10 words or short phrases to the user's vocabulary for spaced-repetition learning, in one call. Use when the user wants to remember, learn or save something they came across. Text must be in the target language. Each item may carry the sentence it appeared in (context) and its source URL; collection_id (shared, or per item) also puts it in a collection. Returns one result per item, in order: added, already_saved, rejected (input or limit) or failed (temporary; retry later), with the first meaning and a link.

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": {
      "phrases": "<phrases>"
    },
    "name": "add_phrases"
  }
}

Input Schema

NameRequiredDescriptionDefault
nativeNoNative-language code. Defaults to the primary profile.
targetNoTarget-language code. Defaults to the primary profile.
phrasesYes
collection_idNoCollection id (from list_collections / create_collection) for every item

Output Schema

NameRequiredDescriptionDefault
itemsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Goes beyond the annotations (readOnlyHint=false, idempotentHint=true) by disclosing the 1–10 item cap, the target-language constraint, and the per-item outcome vocabulary including that 'failed' is temporary and should be retried. That retry guidance and the 'already_saved' idempotent outcome are genuinely operational detail an agent cannot get from the hints alone.

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?

Three dense sentences with the core action front-loaded, followed by usage trigger, constraints, and return semantics. No filler, though the packed return-status sentence is long and would read better as a short list.

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?

Covers the action, trigger, item cap, language constraint, optional per-item fields, and outcome statuses. Since an output schema exists, the return-value explanation is bonus rather than required, and it usefully flags the retry-on-failed behavior. Only the native/target defaults are left entirely to the schema.

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 coverage is 75%, so the baseline is 3. The description adds the per-item-vs-shared collection_id relationship and what context/source_url are for, but it never mentions the native and target language parameters, which default to the primary profile and are only documented in the schema.

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 concrete verb and resource ('Save 1 to 10 words or short phrases to the user's vocabulary') plus the underlying purpose (spaced-repetition learning) and the batch scope ('in one call'). It does not explicitly distinguish itself from the sibling add_to_collection, though the mention that collection_id 'also puts it in a collection' partially resolves that overlap.

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?

Gives a clear trigger: 'Use when the user wants to remember, learn or save something they came across.' It also sets a precondition (text must be in the target language). It names no alternatives and no exclusions, so an agent must infer that find_phrases/list_phrases are read-side tools.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources