Skip to main content
Glama

Get Mac command status

get_mac_job
Read-onlyIdempotent

Returns a command's state (running, exited or failed) and exit code, and once it has ended its stdout and stderr (first 64 KiB each, with a cursor when more follows). stream with cursor reads a chunk from any point, also while it runs. wait_seconds (up to 40) waits for it to end, so one call replaces a polling loop. It never runs the command again. Read-only.

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": {
      "job_id": "<job_id>"
    },
    "name": "get_mac_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorNoByte offset to read from: next_cursor of the last read (default 0)
job_idYesCommand job ID (job_…) returned by exec_mac.
streamNoRead this stream as a chunk from cursor, also while the command runs
session_idNoMac session ID (ses_…). Optional: without it, the account's running Mac.
wait_secondsNoWait up to this long (0-40) for a running command to finish.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / wait_seconds / description
      Previous value: -"Wait up to this long (0-40) for a running command to finish, instead of polling."New value: +"Wait up to this long (0-40) for a running command to finish."
  2. Changed2 schema fields changed
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "Byte offset to read from: next_cursor of the last read (default 0)",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / stream
      Added value: +{
      +  "description": "Read this stream as a chunk from cursor, also while the command runs",
      +  "enum": [
      +    "stdout",
      +    "stderr"
      +  ],
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / session_id / description
      Previous value: -"Mac session ID (ses_…) returned by start_mac or list_mac_sessions."New value: +"Mac session ID (ses_…). Optional: without it, the account's running Mac."
    • changedInput schema / required
      Previous value: -[
      -  "session_id",
      -  "job_id"
      -]New value: +[
      +  "job_id"
      +]
  4. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": {},
      -  "description": "The JSON response of the NoMac API for this operation",
      -  "properties": {
      -    "error": {
      -      "additionalProperties": {},
      -      "description": "Present only when the call failed",
      -      "properties": {
      -        "code": {
      -          "description": "Stable machine-readable error code, for example insufficient_credit",
      -          "type": "string"
      -        },
      -        "message": {
      -          "description": "What went wrong and what to do next",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "code",
      -        "message"
      -      ],
      -      "type": "object"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  5. Changed1 schema field changed
    • addedInput schema / properties / wait_seconds
      Added value: +{
      +  "description": "Wait up to this long (0-40) for a running command to finish, instead of polling.",
      +  "maximum": 40,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  6. First observed

TDQS

A4.3/5.0
Behavior5/5

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

The annotations already establish the read-only, idempotent, non-destructive profile, but the description adds substantial behavior: output is only available once the command ends, each stream is capped at the first 64 KiB, a cursor indicates when more follows, and reads are non-re-executing. These details go well beyond what the annotations declare and prevent incorrect assumptions about polling or re-running.

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 definition is front-loaded: the return value comes first, then the stream and cursor mechanics, then the wait_seconds shortcut. It is dense but each sentence carries information; the final 'Read-only' merely repeats the annotation, which is minor waste.

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?

There is no output schema, so the description carries the full burden of describing return values, and it does: state enumeration, exit code, stdout and stderr, truncation limits, and the cursor for continuation. For a five-parameter status tool with this complexity, nothing an agent needs in order to call it correctly is missing.

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 100%, so the baseline is 3, but the description adds meaning the schema cannot: the 64 KiB per-stream cap and the idea that a cursor is returned when more output follows clarify how 'cursor' should be used across calls. It also frames 'wait_seconds' as replacing a polling loop, which is semantic value beyond the raw bounds 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?

States a specific verb and resource: returns a command's state (running, exited, failed), exit code, and stdout/stderr. It also implicitly separates itself from exec_mac by saying 'It never runs the command again.' However, it never names adjacent tools such as cancel_mac_job or phone_job_status, so the differentiation is inferred rather than explicit.

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?

Gives clear usage context: use 'stream' with 'cursor' to read a chunk from any point, including while the command runs, and use 'wait_seconds' (up to 40) instead of looping to poll. These are concrete guidance on how to use the tool correctly, though it never states when not to use it or names an explicit alternative tool.

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