Skip to main content
Glama

get_priority

Read-onlyIdempotent

Read a thread's dispatch-priority record, including its integer priority, set_by, and set_at, to see how urgently claim_next_thread will dispatch it. Returns null when unset, treated as priority 0.

Instructions

Read a thread's dispatch-priority record: priority (an integer, higher is more urgent), set_by and set_at. Returns null when no priority was ever set, which dispatch treats as the default priority 0. claim_next_thread orders by this priority aged up with waiting time. Change it with set_priority. Requires workspace:read and read access to the thread's channel.

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>"
    },
    "name": "get_priority"
  }
}

Input Schema

NameRequiredDescriptionDefault
thread_idYesUUID of the thread whose priority record to read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv479.0.2
    • addedInput schema / properties / thread_id / description
      Added value: +"UUID of the thread whose priority record to read."
  2. First observedv479.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), yet the description still adds real context: null return when unset and how dispatch interprets it as priority 0, plus the exact auth requirements (workspace:read and channel read access). It stops short of return shape details, but the behavioral edges an agent needs are covered.

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 payload leads with the purpose and fields, then the null semantics, then the relation to other tools and the auth requirement – a sensible front-loaded order. It is a touch dense for a single-parameter getter, but no sentence is filler.

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 no output schema, the description carries return-value duty and does so by naming the three returned fields and the null case. Combined with the stated permissions and the note on default priority, an agent has everything needed to call and interpret it.

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 100% and the single thread_id parameter is fully documented as a UUID in the schema. The description never mentions thread_id or adds format/constraint meaning beyond the schema, so the baseline of 3 applies.

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 gives a specific verb and resource ('Read a thread's dispatch-priority record') and enumerates the returned fields (priority, set_by, set_at). It is clearly distinguishable from the sibling getters and from set_priority/claim_next_thread, which are named for contrast.

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 routes the reader explicitly: use set_priority to change the value, and it explains that claim_next_thread consumes this ordering. It doesn't spell out a when-not-to-use case beyond that, but for a narrow read tool the guidance is clear and actionable.

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