Skip to main content
Glama

set_marketing_consent

DestructiveIdempotent

Record whether this lead agreed that the quality of their enquiry may be reported back to the advertising platform it came from. Nothing is ever reported without this. Three states: true (given), false (refused), null (never asked — behaves like refused when sending, but is a different fact). Always say where the consent came from (source), e.g. 'meta_lead_form' or 'web_form' — a consent without a provenance is worth nothing if it is ever disputed.

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": {
      "lead_id": "<lead_id>"
    },
    "name": "set_marketing_consent"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceNoWhere the consent was given, e.g. 'meta_lead_form'.
consentNotrue | false | null (never asked).
lead_idYesID of the lead

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / lead_id / description
      Added value: +"ID of the lead"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false; the description adds genuine value by explaining the three-state semantics and the downstream consequence (nothing is reported without consent). It stops short of the behavior an agent most needs for a destructive, idempotent write: what happens to a previously recorded consent and its source when the tool is called again, and whether the overwrite is reversible.

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 the core meaning and then the state semantics and the provenance rule. The closing clause ('a consent without a provenance is worth nothing if it is ever disputed') is motivational rather than operational, but it is short enough to earn its place as justification for the source requirement.

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 three-parameter mutation with no output schema and partial annotation coverage, the description supplies the missing semantics: state meanings, the reporting consequence, and the provenance obligation. The one loose end is that source is not marked required in the schema while the description demands it 'always', and overwrite behavior under idempotency is left unstated.

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 goes beyond the schema by explaining that null 'behaves like refused when sending, but is a different fact' — a distinction with real downstream effect — and by elevating source from an optional field to a normative requirement with example values. It adds no format or validation detail for lead_id beyond the schema's own label.

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

Purpose4/5

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

The description names a specific verb ('Record') and a precise resource ('whether this lead agreed that the quality of their enquiry may be reported back to the advertising platform'), which is far more informative than the tool name alone. It does not, however, differentiate itself from likely siblings such as set_consent or set_legal_basis, so an agent cannot tell from the text which consent tool applies here.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: 'Nothing is ever reported without this' conveys why the tool matters and 'Always say where the consent came from' gives a calling precondition for the source argument. There is no explicit when-to-use / when-not-to-use rule and no named alternative for setting other kinds of consent.

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.