Skip to main content
Glama

Set device

score.set_device
Idempotent

Change a device's params, turn it off or on, or move it in its part's order. Returns the new score_id (edit that one next).

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": {
      "device_id": "<device_id>",
      "score_id": "<score_id>"
    },
    "name": "score.set_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsNoParams to change; others keep their values. A group or list given replaces it whole; null removes a param
enabledNofalse bypasses it
at_indexNoIts new position in the order
score_idYesThe score to edit
device_idYesThe device

Output Schema

NameRequiredDescriptionDefault
parentYesThe version this edit started from
changedYesWhat the edit added, removed or modified
score_idYesThe new version: edit this one next (older ids stay valid)
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare the safety profile (non-destructive, idempotent, not open-world), so the bar is lower. The description adds the genuinely non-obvious behavioral fact that the call yields a NEW score_id rather than mutating in place, which changes how an agent must sequence subsequent edits. It does not discuss auth or failure behavior, keeping it out of 5 territory.

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?

Two short sentences, zero filler, with the core capabilities front-loaded and the return-value workflow note appended after. Every clause carries information the agent needs.

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, so return values need not be spelled out, yet the description still surfaces the key consequence (new score_id) for edit chaining. With five params including a nested free-form object fully described in the schema, the description is sufficient, though it says nothing about error conditions or limits.

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 documents params, enabled, at_index, score_id and device_id, and the baseline is 3. The description adds marginal context only — that at_index is scoped to 'its part's order' — while parameter-level meaning like 'false bypasses it' and null-removal semantics live entirely 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?

Names a specific verb set (change params, enable/disable, reorder) against a specific resource (device), which clearly separates it from score.add_device and score.remove_device. It is concrete about the three operations but never explicitly contrasts itself with siblings, so it stops short of a 5.

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?

The operations imply when to use it (modify an existing device rather than add/remove one), and the parenthetical 'edit that one next' gives workflow guidance for chaining edits. However, there is no explicit when-not-to-use statement or named alternative, leaving the agent to infer boundaries from the operation list.

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.