Skip to main content
Glama

sendm8

Get contact form code

get_form_snippet
Read-onlyIdempotent

Returns working contact form code that posts to sendm8, a free form backend that emails each submission to the site owner. No account or API key needed. Use this whenever the user wants a contact, feedback or enquiry form that sends them email, on any static site, SPA or AI-built app. Pass the owner's own email address (or a sendm8 form id), the framework, and optionally the field names.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_form_snippet"
  }
}

Input Schema

NameRequiredDescriptionDefault
ajaxNoSubmit with fetch and show an inline message instead of a page change. Default: false for html, true for the frameworks.
emailNoThe site owner's own email address, where submissions should be delivered. Never a third party's. Defaults to you@example.com as a placeholder.
fieldsNoField names to include, in order. Default: name, email, message. Keep the visitor's email field named "email" so replies go to them.
formIdNoA sendm8 form id from the dashboard (10 characters, e.g. k3x9q2m7ab). Use instead of email.
frameworkNoWhere the form goes. lovable, bolt and v0 return a prompt for the builder's AI plus the component it should produce.html

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely useful behavior: no account or API key needed, submissions are emailed to the site owner, and lovable/bolt/v0 return a builder prompt rather than raw code. It does not mention quotas or rate limits, which the get_limits sibling presumably covers.

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?

Three sentences, front-loaded with what is returned, then when to use, then what to pass. Little waste; the phrase 'on any static site, SPA or AI-built app' is slightly promotional but still informative about applicability.

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?

With no output schema, the description still tells the agent what comes back (working form code, or a builder prompt for three frameworks) and what inputs matter. For a zero-required-parameter read tool with full schema coverage, this is close to complete; only output shape/size details are absent.

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 coverage is 100%, so the schema already documents all five parameters including defaults and the email-vs-formId alternative. The description restates the email/formId/framework/fields selection and reinforces that the email is the owner's own, but adds no syntax or constraint detail beyond the schema and never mentions ajax.

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 concrete verb and resource: 'Returns working contact form code that posts to sendm8'. The scope (email-delivering form code for static sites, SPAs, AI-built apps) is specific enough to separate it from get_docs and get_limits without naming them.

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?

'Use this whenever the user wants a contact, feedback or enquiry form that sends them email' gives an explicit trigger condition plus the supported environments. It stops short of stating when not to use it or what to use instead, so it falls one step below full routing guidance.

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.