Skip to main content
Glama

app_type

Destructive

Replace the text of a text field of the latest app_snapshot with text (never a password field). Some apps do not count typed text as an edit, so save explicitly. Returns the app's new state with the next snapshotId, so no extra snapshot is needed. If the window changed, or a person used the keyboard or mouse in the app since the snapshot, nothing is done and the error comes with the current state to retry from. A sent action is not proof the task succeeded. Needs ui and process permission (operating apps can run programs).

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": {
      "snapshotId": "<snapshotId>",
      "elementId": "<elementId>",
      "text": "<text>"
    },
    "name": "app_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
deviceIdNoComputer name or id
takeOverNoOnly when the user says so: act even though another conversation is operating this screen, which then holds it no longer.
elementIdYes
snapshotIdYes
workSessionIdNoFrom create_work_session

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id; optional with one computer or a default"New value: +"Computer name or id"
    • removedInput schema / properties / text / maxLength
      Removed value: -10000
  2. Changed2 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id from list_devices. Optional with one computer online or a default set."New value: +"Computer name or id; optional with one computer or a default"
    • changedInput schema / properties / workSessionId / description
      Previous value: -"Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work."New value: +"From create_work_session"
  3. Changed1 schema field changed
    • addedInput schema / properties / takeOver
      Added value: +{
      +  "description": "Only when the user says so: act even though another conversation is operating this screen, which then holds it no longer.",
      +  "type": "boolean"
      +}
  4. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the annotations: it discloses the optimistic-concurrency precondition (window changed or human keyboard/mouse input means nothing is done), that the error carries current state to retry from, that a returned new state plus next snapshotId means no extra snapshot call is needed, that a sent action is not proof of success, and that ui and process permissions are required. That is exactly the mutation-risk context the destructiveHint alone cannot convey.

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?

Front-loaded with the action, then constraints and failure semantics in a logical order with no filler. Sentences are dense and pack several clauses (preconditions, retry state, permissions) which makes it a heavier read than necessary, but nothing is redundant.

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 exists, yet the description explains what comes back (new app state with next snapshotId) and what a failure returns (error plus current state). The main gap is the unaddressed optional parameters (takeOver, workSessionId, deviceId) for a mutation that can contend with other sessions on the same screen.

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 50% and the description only implicitly covers the parameters — 'latest app_snapshot' implies snapshotId, 'text field' implies elementId, and 'with text' implies text. The optional parameters takeOver, workSessionId and deviceId are not addressed at all, so the description neither compensates for the coverage gap nor contradicts the schema.

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: 'Replace the text of a text field of the latest app_snapshot with text.' It also narrows scope (latest snapshot only) and excludes one target class (never a password field), which separates it cleanly from siblings like app_press or app_select that also act on the app.

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 real usage conditions: don't target password fields, and save explicitly because some apps don't count typed text as an edit. It does not explicitly contrast itself with sibling input tools (app_press, app_select, app_show_menu), so the routing guidance is contextual rather than exhaustive.

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