Skip to main content
Glama

fill

Clears a target input and enters supplied text, or pulls a vault secret and writes it only to the secret's matching HTTPS site; refuses cross-site secret entry.

Instructions

Clear an input and fill it with text. With use_secret, value comes from the encrypted vault — and is only written into a page on the secret's own site (https, same host or a subdomain, or the entry's origins); otherwise refused.

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": {
      "target": "<target>"
    },
    "name": "fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoText to fill (or use use_secret).
indexNoFill the Nth match (0-based, document order) when the target matches several elements.
leaseNoOptional lease token to present if the target session is leased (0.7.0). Threaded per-call; never read from the server's env.
targetYes@eN ref or selector.
sessionNoOptional session name to target (omit for the shared 'default'). On a daemon shared with other agents, pass a UNIQUE name for stateful multi-step work (go→click→fill) so you don't collide on 'default'.
timeout_msNoTimeout in ms.
use_secretNoVault reference 'site:key' (or 'site:totp'). Origin-bound: the target must be on that site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.21.0
    • changedInput schema / properties / index / description
      Previous value: -"Fill the Nth match (0-based, from `candidates`) when the target is ambiguous."New value: +"Fill the Nth match (0-based, document order) when the target matches several elements."
    • changedInput schema / properties / use_secret / description
      Previous value: -"Vault reference 'site:key' (or 'site:totp')."New value: +"Vault reference 'site:key' (or 'site:totp'). Origin-bound: the target must be on that site."
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does valuable work on the risky path — secret values are pulled from an encrypted vault and refused unless the page is https and on the secret's host, subdomain or declared origins — but says nothing about whether input/change events fire, focus requirements, or what a successful call returns.

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?

Two sentences, no filler, and the core action is front-loaded before the conditional secret behavior. The security clause is a long parenthetical run-on that takes a second pass to parse, which costs it the top mark.

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

Completeness3/5

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

For a mutating tool with no annotations and no output schema, the description covers the highest-stakes aspect (secret origin enforcement) well. It is still thin on side effects — clearing existing content, event dispatch, and failure modes other than the secret refusal are unstated.

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 baseline is 3. The description adds meaning only for the text/use_secret pair, clarifying that value comes from the vault and spelling out the origin-binding and refusal rule; index, lease, session and timeout 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 concrete verb pair and resource: 'Clear an input and fill it with text.' That is specific enough to call, but it never distinguishes itself from siblings like type, keys or select, so an agent must guess whether fill clears-then-writes while type appends.

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?

Usage conditions are only implied — 'Clear an input' hints at replacing existing content rather than appending, and use_secret implies a vault workflow. There is no explicit when-to-use-this-vs-type guidance, no mention of prerequisites such as focusing the element first, and no exclusions.

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