Skip to main content
Glama

Update languages

update_languages
Idempotent

Replace the profile's whole languages list with the names given; languages not passed are removed and an empty array clears the list. Read the current list with get_profile_section (section "languages"). Returns the saved languages array.

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": {
      "id": "<id>",
      "items": "<items>"
    },
    "name": "update_languages"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesProfile id, from list_profiles.
itemsYesThe complete new list of language names, e.g. ["English", "German"].

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, it discloses the crucial replace-not-merge semantics, that unspecified entries are dropped, that an empty array clears the list, and what the call returns. These are exactly the behavior traits an agent needs to avoid accidentally wiping a user's languages, and they go well past readOnlyHint/idempotentHint.

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 compact clauses, front-loaded with the replace semantics, then the read-before-write pointer, then the return value. No filler sentences and nothing repeated from the schema.

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?

With only two required parameters, no output schema, and full annotation coverage, the description supplies everything missing: destructive-replacement warning, empty-array behavior, prerequisite read step, and the return shape. Nothing an agent needs to invoke it safely is absent.

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 coverage is already 100%, so the baseline is 3, but the description adds meaning the schema only hints at: 'items' is a complete replacement set, not an additive delta, and an empty array is a valid clearing value. That distinction is the single most important semantic for this parameter and the description makes it explicit.

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?

The description uses a precise verb ('Replace') on a specific resource ('the profile's whole languages list') and immediately defines the scope of the operation. It is trivially distinguishable from siblings such as update_skills or get_profile_section because it names both the field and the read counterpart.

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 an explicit prerequisite path: read the current list with get_profile_section (section "languages") before replacing. It also warns that omitted languages are removed, which steers the agent away from partial updates. It stops short of naming when a different update tool (e.g., update_profile) should be preferred, so it is clear context rather than a full when/when-not map.

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