Skip to main content
Glama

consents_create

Record that a person consented to business email from this workspace. Give email or lead (sqid); the record is matched to the workspace lead with that address. Required: when (obtained_at, in the past), how (method), the wording shown (consent_text).

Contacts from the Sellvance database (leads found through discovery, saved searches or Find Email) are cold by definition: consent for them is accepted only one record at a time, with evidence (evidence_url), and is queued for spot-check review. Bulk endpoints refuse such rows.

Attestation. Every upload must carry attestation_version="1", which confirms: "I confirm that each person in these records gave consent to receive business email from us, that the consent was obtained lawfully, and that I can produce the evidence on request. I understand that uploading a record that is not true breaks the Acceptable Use Policy." Show this text to the user and get their confirmation first. A record of the confirmation (user, time, IP) is kept with the upload.

Method: POST /api/v1/workspaces/{workspace_sqid}/consents/

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": {
      "attestation_version": "<attestation_version>",
      "consent_text": "<consent_text>",
      "method": "<method>",
      "obtained_at": "<obtained_at>"
    },
    "name": "consents_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
leadNoSqid of the workspace lead the consent belongs to (alternative to `email`).
emailNoThe address the consent is for. Optional when `lead` is given; the record is matched to the workspace lead with this address.
methodYesHow consent was collected: web_form, double_opt_in, contract, in_person, other. * `web_form` - Web form * `double_opt_in` - Double opt-in * `contract` - Contract / order form * `in_person` - In person (event, call) * `other` - Other
obtained_atYesWhen the person gave consent: ISO 8601 date or datetime, in the past (2025-03-31 or 2025-03-31T14:00:00Z).
consent_textYesThe exact wording the person agreed to (checkbox label, contract clause).
evidence_urlNoLink to the evidence (form submission, signed document). Required for leads that came from the Sellvance database.
evidence_fileNoEvidence file (multipart uploads only; agents use `evidence_url`).
attestation_versionYesMust be "1": by sending it you confirm, for every record in this request: "I confirm that each person in these records gave consent to receive business email from us, that the consent was obtained lawfully, and that I can produce the evidence on request. I understand that uploading a record that is not true breaks the Acceptable Use Policy." Ask the user to confirm this text; never send it on their behalf without asking.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and delivers real behavioral context: Sellvance-sourced records are queued for spot-check review, an attestation version is mandatory, and the confirmation (user, time, IP) is retained with the upload. It omits idempotency/duplicate handling (what happens if consent already exists) and the response shape, which keeps it from a 5.

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 bold section headers separating the routing rule from the attestation requirement. It loses a point for duplicating the attestation text verbatim from the `attestation_version` schema description, though for a compliance gate that repetition is defensible.

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 an 8-parameter write tool with no annotations and no output schema, it covers the critical operational details: input alternatives, required fields, evidence requirements for cold leads, and the attestation gate. It is missing only the return value and duplicate-consent behavior, which the absent output schema leaves to the description.

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 matching semantics not in the schema: 'the record is matched to the workspace lead with that address' and that consent_text must be the wording actually shown. It also flags obtained_at must be in the past. Minor gap: it never mentions `evidence_file` or the `other` method's usage.

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?

The first sentence gives a specific verb and resource ('Record that a person consented to business email from this workspace'), and the description also names the endpoint. It distinguishes itself from bulk consent creation by stating that bulk endpoints refuse Sellvance-sourced rows, so an agent can route correctly without opening another schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit routing guidance: for contacts from the Sellvance database, consent is accepted 'only one record at a time, with evidence' and bulk endpoints refuse such rows, which effectively tells the agent when not to use a bulk path. It also names the input alternative (`email` vs `lead` sqid) and the required fields, leaving little to inference.

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.