Skip to main content
Glama

consents_bulk

Bulk version of consents_create for leads the customer uploaded (CSV, CRM, API). Each record: email, obtained_at, method, consent_text, evidence_url (optional). Rows are checked one by one: the response lists the created sqids and, per refused row, {row, email, errors} (row is 1-based). One bad row never stops the others.

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/bulk/

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>",
      "records": "<records>"
    },
    "name": "consents_bulk"
  }
}

Input Schema

NameRequiredDescriptionDefault
recordsYesUp to 1000 objects with email, obtained_at, method, consent_text and optionally 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.9/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and does so: partial-failure semantics ('One bad row never stops the others'), the exact per-refused-row error shape with 1-based row numbering, the queuing of database-sourced consents for spot-check review, and the fact that a confirmation record (user, time, IP) is stored with the upload. It also discloses the endpoint and the safety-critical attestation obligation.

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 purpose and the single-vs-bulk rule, then bolded sections for the database exclusion and attestation, which is good structure. The attestation paragraph is reproduced almost verbatim from the schema's `attestation_version` description, so some duplication costs it a point, though the instruction to show the text and get confirmation is genuinely additive.

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 and no annotations, the description still explains the return payload (created sqids plus per-row `{row, email, errors}`), partial-success behavior, and the 1000-record cap implied by the request shape. An agent has everything needed to call it correctly and to interpret the response.

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

Parameters5/5

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

Schema coverage is 100%, so baseline would be 3, but the description adds conditional meaning the schema cannot: `evidence_url` is optional in general yet required for database-sourced contacts, and `attestation_version` is not a mere string but a legal attestation that must be read to the user and confirmed before sending. That reframes both parameters as behavioral obligations rather than data fields.

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?

Opens with a specific verb+resource framing ('Bulk version of `consents_create`') and immediately scopes it to leads the customer uploaded via CSV, CRM, or API. That scoping is exactly what separates it from `consents_create`, so an agent can choose between them without opening either 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?

Gives an explicit exclusion: contacts sourced from the Sellvance database (discovery, saved searches, Find Email) are cold and must go through the single-record endpoint with evidence, and 'Bulk endpoints refuse such rows.' The prerequisite (attestation must be shown to and confirmed by the user) is stated as a gating condition rather than left implicit.

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.