Skip to main content
Glama

back

Go back one screen. The result starts with 'Change: none | content changed | new screen | scrolled'.

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": {
      "session": "<session>"
    },
    "name": "back"
  }
}

Input Schema

NameRequiredDescriptionDefault
settleNoWait until the screen stops changing (two equal reads 100 ms apart), up to timeout_ms. Use after any action that starts work. A slow result can still follow a pause, so prefer wait_for when you know the expected text.
compactNoWhen the change is 'content changed', the result lists only the lines that changed (+ added, - removed, ~ changed), with refs as on the full screen. This is the default. Pass false to get the whole screen.
sessionYesSession from open_app
wait_forNoUse after any action that starts work. Wait until this appears (a ref, a text, or role+name), or disappears with gone: true. The result says Waited: matched or timed out.
timeout_msNoHow long wait_for and settle may take, in ms (default 2000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / compact / description
      Previous value: -"When the change is 'content changed', return only the added/removed lines, not the whole screen"New value: +"When the change is 'content changed', the result lists only the lines that changed (+ added, - removed, ~ changed), with refs as on the full screen. This is the default. Pass false to get the whole screen."
  2. Changed1 schema field changed
    • changedInput schema / properties / wait_for / properties / ref / pattern
      Previous value: -"^e\\d+$"New value: +"^(?:p\\d+|f\\d+)?e\\d+$"
  3. Changed4 schema fields changed
    • addedInput schema / properties / compact
      Added value: +{
      +  "description": "When the change is 'content changed', return only the added/removed lines, not the whole screen",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / settle
      Added value: +{
      +  "description": "Wait until the screen stops changing (two equal reads 100 ms apart), up to timeout_ms. Use after any action that starts work. A slow result can still follow a pause, so prefer wait_for when you know the expected text.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / timeout_ms
      Added value: +{
      +  "description": "How long wait_for and settle may take, in ms (default 2000)",
      +  "maximum": 30000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / wait_for
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Use after any action that starts work. Wait until this appears (a ref, a text, or role+name), or disappears with gone: true. The result says Waited: matched or timed out.",
      +  "properties": {
      +    "gone": {
      +      "type": "boolean"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "ref": {
      +      "pattern": "^e\\d+$",
      +      "type": "string"
      +    },
      +    "role": {
      +      "type": "string"
      +    },
      +    "text": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  4. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so safety is covered. The description adds genuinely useful behavioral detail by naming the result prefix 'Change: none | content changed | new screen | scrolled', which tells the agent how to interpret the outcome. It stops short of saying what happens when there is no history to go back to, which is the main failure mode for this kind of action.

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, front-loaded with the action and then the result format. Nothing is wasted and no reading is required before the agent knows what the tool does.

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 5-parameter tool with a nested wait_for object and no output schema, the description covers the action and the shape of the return value while the schema handles all parameter detail. The only gap is behavior at the edge of the navigation stack, which matters somewhat for a state-changing tool but is a modest omission.

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 settle, compact, wait_for, timeout_ms and session parameters are all richly documented in the schema itself. The description adds no parameter-level meaning beyond that, so baseline 3 applies.

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?

"Go back one screen" gives a concrete action and a scope (one screen) that an agent can act on immediately. It doesn't differentiate itself from navigation-adjacent siblings like browser_back or screen, so the agent must infer which back-navigation applies in the current context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance. The description never mentions the alternative browser_back, nor does it state a prerequisite such as an active session with navigation history, leaving routing entirely to inference.

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.