Skip to main content
Glama

fill

Replaces text in a selected iOS field found from a screenshot or element list, optionally submits, and verifies the field value afterward; clipboard input requires approval.

Instructions

Replace text at a target from take_screenshot or list_elements, with optional submit. Check the actual field value after sending. Clipboard paste requires approval.

Input Schema

NameRequiredDescriptionDefault
textYes
submitNo
targetYes
device_idNo
timeout_msNo
input_methodNokeyboard
field_contextNo
keyboard_layoutNo
frame_validationNoCompatibility declaration. Physical input never compares screen frames before sending, so both values behave the same on a physical device. text_target requires ordinary_app and no submit. Simulator supports exact only.exact

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations declare a non-read-only, open-world, non-idempotent, non-destructive operation; the description usefully adds that the approval gate exists for clipboard input and that the result must be verified, implying the write may not take effect silently. However, it never explains what submit=true actually does (e.g. pressing Enter / submitting a form, which may navigate or transmit data), nor timeout or coordinate-target behavior, which are the riskier traits for a mutating tool.

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?

Three short sentences, front-loaded with the core action and target provenance, then the safety/verification caveats. Every sentence carries actionable information with no filler.

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 9-parameter mutating tool with conditional schema constraints, an open-world hint, and no output schema, the description is thin: it omits submit side effects, timeout semantics, coordinate-space targeting, and the field_context/keyboard_layout coupling enforced by the schema. The agent can attempt a call but cannot predict consequences or reason about most parameters from the description alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 11% across 9 parameters, so the description must carry parameter meaning and largely does not: text, target's two shapes (ref+snapshot_id vs x/y/observation_id), device_id, timeout_ms, field_context and keyboard_layout are unaddressed. "Optional submit" and the clipboard-approval clause give partial signal on submit and input_method, but the conditional allOf constraints are left entirely to 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 ("Replace text at a target") and, unusually, pins the target's provenance to take_screenshot or list_elements, which lets an agent distinguish it from raw input tools like press_key or double_tap. It stops short of naming an explicit alternative for non-text-input interactions, so it is clear but not fully sibling-differentiated.

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 concrete preconditions and workflow guidance: the target must come from take_screenshot or list_elements, the agent should verify the field value after sending, and clipboard usage needs approval. No explicit when-not-to-use guidance or named alternative is given, which is the only gap.

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