Skip to main content
Glama

set_legal_basis

DestructiveIdempotent

Set the legal basis and the processing purposes of a lead or contact (Art. 6 GDPR). The purposes matter: a basis only ever covers the purposes recorded with it, so 'vertrag' with purposes ['rechnung'] does NOT permit cold outreach. NULL basis means 'never established' — a defect in the data, not a No from the person, and the send gate treats the two differently. Optional retention_review_at: a date at which a HUMAN should look again. It deletes nothing and triggers nothing (see run_retention_reviews).

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": {
      "legal_basis": "<legal_basis>"
    },
    "name": "set_legal_basis"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoWhy this basis. Shows up in the audit trail.
lead_idNoID of the lead
contact_idNoID of the contact
legal_basisYesLegal basis under Art. 6 GDPR
processing_purposesNoThe purposes this basis covers. Suggested: akquise, bestandskunde, newsletter, terminabstimmung, vertrag, rechnung.
retention_review_atNoISO date for a human review.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / contact_id / description
      Added value: +"ID of the contact"
    • addedInput schema / properties / lead_id / description
      Added value: +"ID of the lead"
    • addedInput schema / properties / legal_basis / description
      Added value: +"Legal basis under Art. 6 GDPR"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and idempotentHint=true; the description goes beyond that by explaining the compliance consequence of the written value (a basis only covers its recorded purposes) and the downstream gate difference between NULL and an explicit No. It also clarifies that retention_review_at deletes nothing and triggers nothing. It never states whether an existing basis/purposes are overwritten by this call, which is the key behavioral question for a destructive write.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, then the two most failure-prone semantics (purpose coupling, NULL basis), then the retention_review_at caveat. Every sentence carries information an agent would otherwise get wrong; there is no filler.

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 adequately covers the write's governance semantics and its non-effects. The remaining gap is operational: nothing says whether lead_id or contact_id is required in practice, nor what happens to a pre-existing basis and purposes on re-set.

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 meaning: it explains the coupling semantics of processing_purposes and the meaning of a NULL legal_basis, neither of which the schema conveys. It does not clarify the lead_id vs contact_id choice, leaving the agent to infer that one identifier must be supplied even though neither is required.

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?

States a specific verb and resource with regulatory scope: 'Set the legal basis and the processing purposes of a lead or contact (Art. 6 GDPR).' An agent immediately knows the object of the write and the domain. It does not, however, distinguish itself from plausible siblings such as set_consent or set_marketing_consent, which is the only reason it stops short of a 5.

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?

Gives concrete operating context: purposes are coupled to the basis, 'vertrag' + ['rechnung'] does not permit cold outreach, and NULL basis means 'never established' rather than a refusal. It also routes the agent away from misreading retention_review_at by naming run_retention_reviews as the tool that actually acts. It lacks an explicit 'use X instead when...' exclusion against the consent-related siblings.

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.