Skip to main content
Glama

create_enquiry_source

Destructive

Set up a portal that sends ready-made enquiries by mail (Ofri, Renovero, local.ch, a trade directory). No code needed: the sender and/or subject pattern decide which mails belong to this source, and the target campaign decides where the leads go. At least one of from_pattern / subject_pattern is required — a source with neither would match every mail in the inbox and turn invoices into leads. Cost per enquiry: give cost_amount, or cost_pattern to read it out of the mail (the pattern wins). Left empty it stays UNKNOWN, which is not the same as free.

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": {
      "name": "<name>",
      "portal": "<portal>"
    },
    "name": "create_enquiry_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesHow the tenant calls this source, e.g. 'Portal Dachsanierung'.
formatNo'etikettiert' reads 'Field: value' lines (most portals). 'schadstoffanalyse' is the existing, mail-tested reader for Schadstoffanalyse.ch.
portalYesofri | renovero | localch | schadstoffanalyse | anything else.
campaign_idNoWhere the leads land. Omitted: no campaign, the lead is still created.
cost_amountNoFixed cost per enquiry.
cost_patternNoRegex with ONE group holding the amount, e.g. "Kosten:\\s*CHF\\s*([\\d'.,]+)".
from_patternNoSubstring of the sender address, e.g. '@ofri.ch'.
cost_currencyNoDefault CHF.
subject_patternNoSubstring of the subject, e.g. 'Neue Anfrage'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint false, destructiveHint true, idempotentHint false), and the description adds real behavioral context beyond them: the matching logic, the danger of an over-broad source turning invoices into leads, and the UNKNOWN-vs-free cost distinction. It does not explain the destructiveHint=true implication or what happens on re-creation, leaving a small gap.

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-loads the core purpose, then layers matching logic, the required-pattern constraint, and cost handling. Sentences are dense but each carries information; the only mild drag is the parenthetical portal list and the cost aside, which are still useful.

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 9-parameter creation tool with no output schema, the description covers matching, targeting, and cost adequately. It leaves the format enum and the destructive annotation implications to structured fields, which is acceptable, but a note on what gets created/returned would round it out.

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 the baseline is 3, but the description adds genuine semantics: the from_pattern/subject_pattern requirement and its failure mode, the precedence of cost_pattern over cost_amount, and the meaning of an empty cost. These are cross-parameter interactions the schema cannot express.

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 and resource ('Set up a portal' / enquiry source) and immediately grounds it with concrete portal examples (Ofri, Renovero, local.ch, trade directory). An agent can tell this creates an automated mail-to-lead source, distinct from updating or listing existing sources.

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?

Explains the operating context clearly: the sender/subject pattern decides which mails belong to the source and the campaign decides where leads land. It also states the hard prerequisite (at least one of from_pattern / subject_pattern) with the reason. It does not explicitly name when to use update_enquiry_source or list_enquiry_sources instead, so it stops short of full alternative routing.

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.