Skip to main content
Glama

set_form

Idempotent

Add or update a contact form on a site. Describe the fields the visitor should fill (a name, an email, a message, a dropdown, and so on) and this stores them and returns an HTML form to drop into the page with write_files; the form posts to the site's own address, no third-party form service. Submissions are emailed to the owner (pressing Reply answers the visitor), kept for the chat inbox (form_messages), and, on the Pro plan, posted to a webhook (a Slack or Discord webhook, a Zapier catch hook, or any https URL). Hostlo forms are not for passwords or card numbers and refuse such fields. Use the name 'contact' unless the site needs more than one form.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoA short name for the form, used in its address `/_hostlo/forms/<name>`: lowercase letters, digits and underscores, e.g. "contact" or "call_back". Default "contact".
siteYesThe site the form belongs to.
fieldsYesThe fields the visitor fills, in the order they should appear.
email_toNoWhere submissions are emailed. Leave out to use the account's own address (the usual choice).
webhook_urlNoA webhook URL to also POST each submission to (Pro plan): a Slack or Discord incoming webhook, a Zapier catch hook, or any https endpoint. Leave out for email only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond annotations (which only cover readOnly/idempotent/destructive). It discloses where submissions go (email to owner, chat inbox via form_messages, Pro-plan webhook to Slack/Discord/Zapier/https), that the form posts to the site's own address with no third-party service, and that sensitive fields are rejected. This is unusually rich behavioral context.

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?

Front-loaded with the core action, then delivery behavior, then the safety exclusion, then naming. Dense but every sentence carries information. Slightly long, but not padded.

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

Completeness5/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 compensates by explaining what is returned (an HTML form to drop in with write_files) and the full downstream lifecycle of submissions. Nothing an agent needs to invoke it correctly is missing.

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 baseline is 3, but the description adds meaning: it explains the field concept ('describe the fields the visitor should fill'), the default form name, and the purpose of webhook_url (Pro-plan secondary delivery). The email_to 'usual choice' guidance is also clarified prose beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: 'Add or update a contact form on a site.' An agent can immediately distinguish it from siblings like list_forms, remove_form, and form_messages, and the return artifact (an HTML form for write_files) is named.

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 a concrete naming convention ('use the name contact unless the site needs more than one form') and an explicit exclusion (not for passwords or card numbers, which are refused). It implies but does not spell out when to prefer this over list_forms/remove_form, though those are self-evidently different operations.

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