Skip to main content
Glama

Expensify MCP Server and API by Cotlet

Fill in a form

cotlet_browser_fill_form
Destructive

Fills several fields in one step: text fields take text, drop-downs an option's label, checkboxes, radios and switches true or false. Stops at the first field that fails and names those filled. Does not send the form: click its button after. 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": {
      "fields": "<fields>"
    },
    "name": "cotlet_browser_fill_form"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNoLeave out. Only an app slug cotlet_app_guide names.
tabNoTab id of the last answer.
dialogNoA native dialog this step opens. Default: accept an alert.
fieldsYesThe fields in the order a person fills them.
dialog_textNoPrompt dialog text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / app / description
      Previous value: -"Leave it out: the step runs in the user's web browser. Only when cotlet_app_guide names an app's own Cloud Browser, that app's slug, e.g. milanote."New value: +"Leave out. Only an app slug cotlet_app_guide names."
    • 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 / fields / items / 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 / 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."
  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

A4.2/5.0
Behavior5/5

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

Annotations say destructiveHint=true, idempotentHint=false and readOnlyHint=false, and the description adds genuinely non-obvious behavior on top: it halts at the first failing field, reports which fields were actually filled (partial-success semantics matter a lot for a non-idempotent write), and never submits. It also discloses the return payload (elements and text in view), which is critical since there is no output schema.

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?

Four dense sentences with no filler, and the value-type mapping plus the no-submit warning are front-loaded where an agent will read them. The closing sentence ("Answers the page after it") is terse to the point of being slightly cryptic.

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?

For a five-parameter destructive, non-idempotent write with no output schema, the definition covers failure behavior, submission responsibility, and return shape. It leaves the app/tab/dialog mechanics entirely to the schema and says nothing about permissions or what happens to fields already populated.

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

Parameters4/5

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

Schema coverage is 100%, so 3 is the baseline, but the description adds real meaning to the polymorphic value parameter by mapping field types to expected values (text for text fields, option label for drop-downs, true/false for checkboxes, radios, switches). The remaining params (app, tab, dialog, dialog_text) get nothing beyond the schema's own text.

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 ("Fills several fields in one step") and immediately clarifies the per-field-type value mapping, which lets an agent see this is the batch equivalent of the single-field type/select siblings. It never names those siblings explicitly, so the differentiation is inferred rather than stated.

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 clear operational context: use it to fill multiple fields at once, it deliberately does not submit, and the agent must click the submit button afterwards. That post-step instruction is unusually actionable. It stops short of explicitly contrasting with cotlet_browser_type or cotlet_browser_select for single-field edits.

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