Skip to main content
Glama

Get Workorder History

getWorkorderHistory
Read-onlyIdempotent

Retrieve immutable workorder change history, newest first, to audit status updates and task changes. Use it only when full history is needed; standard retrieval is more compact.

Instructions

Return immutable workorder history, newest first.

Use only when change history is needed; normal retrieval is more compact.

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": {
      "workorder_id": "<workorder_id>"
    },
    "name": "getWorkorderHistory"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum history events to return.
offsetNoNumber of history events to skip.
workorder_idYesPublic workorder ID such as A-1.

Output Schema

NameRequiredDescriptionDefault
countYes
itemsYes
totalYes
offsetYes
has_moreYes
next_offsetYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds real value beyond that: the records are immutable (a read cannot alter them) and results are ordered newest-first, which an agent needs to interpret the sequence. No pagination or permission behavior described, but the schema covers paging.

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, zero filler, with the core behavior front-loaded and the usage constraint following. Nothing to trim.

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?

For a simple read-only history endpoint with a full schema, full annotations, and an output schema, this is nearly complete — ordering, immutability, and when-to-use are all stated. Minor remaining gap: it does not say how far back history extends or whether access differs from the normal retrieval path.

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%, so limit, offset, and workorder_id are already documented in the schema with formats and bounds. The description adds only the ordering convention, which is useful context but not parameter-level meaning. Baseline 3 applies when the schema does the heavy lifting.

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 specific verb and resource — 'Return immutable workorder history' — plus the sort order ('newest first'). It implicitly separates itself from the compact normal retrieval path, though it never names the sibling tool (getWorkorder) that serves that role, so differentiation requires a small inference.

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?

Explicitly scopes usage: 'Use only when change history is needed,' and supplies a when-not signal ('normal retrieval is more compact'). Strong guidance; the only gap is that the preferred alternative is described by role rather than by tool name.

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