Skip to main content
Glama

set_priority

DestructiveIdempotent

Set or update a thread's dispatch priority so urgent work is claimed sooner while aging prevents long-waiting tasks from starving.

Instructions

Set (upsert) a thread's dispatch priority (G3 fair dispatch). Higher = more urgent (default 0). claim_next orders by an effective rank = this priority aged up the longer the thread waits, so priority jumps the queue without starving long-waiting tasks. Requires thread:transition.

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": {
      "thread_id": "<thread_id>",
      "priority": "<priority>"
    },
    "name": "set_priority"
  }
}

Input Schema

NameRequiredDescriptionDefault
priorityYeshigher = more urgent; default 0
thread_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.2/5.0
Behavior3/5

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

Adds genuinely useful non-schema context: the upsert nature (creates the setting if absent), the permission prerequisite 'Requires thread:transition', and the aging interaction with claim_next. However, annotations already declare non-read-only, idempotent, and destructive, and the description never explains the destructive dimension — that an existing priority value is overwritten and what value applies if unset beyond the 'default 0' hint.

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 sentences, front-loaded with the action and effect, then the rationale and the permission requirement. No filler; the clause about aging without starving tasks is the justification an agent needs to set a value confidently.

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?

No output schema, so the description carries the return burden implicitly, and it does cover mutation effect, permission, default, and dispatch interaction — enough to call correctly with two required params. Remaining gaps (allowed numeric range, behavior for a nonexistent thread_id) are minor for this complexity level.

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 50% — priority is documented in the schema (higher = more urgent, default 0), while thread_id has only a uuid format. The description reinforces priority semantics and, more importantly, explains how the value is interpreted downstream (effective rank aged over wait time), adding meaning beyond the numeric field. It gives no range bounds or validation notes for priority.

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 ('Set (upsert) a thread's dispatch priority'), names the dispatch subsystem (G3 fair dispatch), and gives the value semantics (higher = more urgent, default 0). An agent can immediately tell this mutates a per-thread dispatch rank rather than, say, a task schedule or delegation policy.

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?

Explains the operational effect via 'claim_next orders by an effective rank = this priority aged up the longer the thread waits, so priority jumps the queue without starving long-waiting tasks' — clear guidance for when raising priority is appropriate. It stops short of naming alternatives or exclusions (e.g., when to adjust scheduling knobs instead), so it is context rather than full routing guidance.

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