Skip to main content
Glama

Joist MCP Server and API by Cotlet

Drag on the page

cotlet_browser_drag
Destructive

Drags from one element or point to another: a card between columns, a piece on a board, a slider's handle. Answers the page after it (elements and text in view).

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "cotlet_browser_drag"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYeselement, or x and y.
tabNoTab id of the last answer.
fromYeselement, or x and y.
dialogNoA native dialog this step opens. Default: accept an alert.
dialog_textNoPrompt dialog text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • changedInput schema / properties / dialog / description
      Previous value: -"How to answer a native dialog (confirm, prompt, 'leave this page?') this step opens: accept presses OK, dismiss presses Cancel. Default: OK for an alert, Cancel for every other dialog."New value: +"A native dialog this step opens. Default: accept an alert."
    • changedInput schema / properties / dialog_text / description
      Previous value: -"Text for a prompt dialog this step opens; implies accept."New value: +"Prompt dialog text."
    • changedInput schema / properties / from / description
      Previous value: -"An element number, or x and y of the screenshot."New value: +"element, or x and y."
    • changedInput schema / properties / from / properties / element / description
      Previous value: -"The element's number from the last read or step answer."New value: +"Element number from the last answer."
    • changedInput schema / properties / from / properties / x / description
      Previous value: -"Instead of `element`: pixels from the left of the screenshot."New value: +"Screenshot x, instead of element."
    • changedInput schema / properties / from / properties / y / description
      Previous value: -"With `x`: pixels from the top of the screenshot."New value: +"Screenshot y."
    • changedInput schema / properties / tab / description
      Previous value: -"The Tab id of the last answer. The step acts only while that tab is the shown one; if the user or another client showed another tab, it does nothing and answers tab_changed. Leave it out to act on the shown tab."New value: +"Tab id of the last answer."
    • changedInput schema / properties / to / description
      Previous value: -"An element number, or x and y of the screenshot."New value: +"element, or x and y."
    • changedInput schema / properties / to / properties / element / description
      Previous value: -"The element's number from the last read or step answer."New value: +"Element number from the last answer."
    • changedInput schema / properties / to / properties / x / description
      Previous value: -"Instead of `element`: pixels from the left of the screenshot."New value: +"Screenshot x, instead of element."
    • changedInput schema / properties / to / properties / y / description
      Previous value: -"With `x`: pixels from the top of the screenshot."New value: +"Screenshot y."
  2. Changed1 schema field changed
    • addedInput schema / properties / tab
      Added value: +{
      +  "description": "The Tab id of the last answer. The step acts only while that tab is the shown one; if the user or another client showed another tab, it does nothing and answers tab_changed. Leave it out to act on the shown tab.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is largely covered. The description's genuine addition is that the tool answers with the page state afterward (elements and text in view), which explains the observation loop; however it says nothing about partial-failure behavior or whether the drag waits for animations to settle.

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 with no filler: the verb plus concrete examples come first, and the return behavior is folded into a short trailing clause. Every clause carries information an agent would otherwise have to guess.

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?

With no output schema, the description correctly covers what comes back after the drag, which is the key omission risk for a step-based interaction tool. Given the destructive annotation and 100% schema coverage, the remaining gap—what happens on a failed or interrupted drag—is minor but real.

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 description coverage is 100%, so the dual addressing modes (element number vs screenshot x/y) and the dialog/dialog_text handling are already documented in the schema. The phrase 'from one element or point to another' restates the from/to duality but adds no syntax, ordering, or edge-case meaning beyond what the schema provides, so the 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?

Names a specific verb (drags) and the resource pair (element/point to element/point), and the three examples—card between columns, piece on a board, slider handle—make the interaction type unambiguous versus a plain click. It stops short of naming a sibling such as cotlet_browser_click or cotlet_browser_hover to contrast with, so differentiation is left to inference from the verb.

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

Usage Guidelines3/5

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

The examples imply when a drag is the right interaction (reordering, moving a slider, moving a game piece), which is useful implied guidance. There is no explicit statement of when not to use it or which sibling to pick instead (click, hover, select), and no prerequisites or failure guidance.

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.