Skip to main content
Glama

safari_clear_field

Clears a specified input field in Safari using a CSS selector, resetting forms or search boxes before entering new values.

Instructions

Clear an input field

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": {
      "selector": "<selector>"
    },
    "name": "safari_clear_field"
  }
}

Input Schema

NameRequiredDescriptionDefault
whyNoOptional short purpose of this step, shown to the user in the cursor's status pill (e.g. 'to save the settings'). The page can read it: never put passwords, codes, card numbers or other private data in it.
receiptNoOmit it: Daylight has no tab receipts and refuses a call that passes one
selectorYesCSS selector of the input

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, yet it says nothing about the fact that this mutates live page state. It does not disclose whether input/change events fire (important for frameworks that track value state), whether the field must be visible or enabled, or what happens if the selector matches nothing.

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?

A single short sentence with zero padding, and the verb leads. It is efficient, though the brevity shades into under-specification rather than tight, information-dense writing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a live-DOM mutation tool with no annotations and no output schema, the definition should say what is modified, whether events are dispatched, and how failure surfaces. None of that is present, so an agent cannot predict the side effects of calling it.

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 selector, why, and receipt parameters are already documented in the schema, warranting the baseline 3. The description does not add any meaning on top, such as what selector syntaxes are accepted or how the matched element must be an <input>/<textarea>.

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?

"Clear an input field" states a specific verb (clear) and resource (input field), so an agent knows immediately what it does. It does not, however, distinguish itself from nearby siblings such as safari_fill or safari_fill_form, which operate on the same element type.

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 guidance on when to use this versus safari_fill, safari_fill_and_submit, or safari_click, and no stated prerequisites (e.g. field must exist or be focused). The agent must infer the selection criteria entirely from the name.

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

Deploy Server

Other Tools