Skip to main content
Glama

Record consents granted by an end user

fizen_grant_consents
Idempotent

Records and updates the consents an end user actually granted in your product, keeping consent records accurate and limited to what the user agreed to.

Instructions

Records consents an end user granted (updates existing ones). Record only what the end user actually agreed to in your product. In production this tool is off unless FIZEN_ALLOW_CONSENT_CHANGES=true.

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": {
      "userId": "<userId>",
      "consentTypes": "<consentTypes>"
    },
    "name": "fizen_grant_consents"
  }
}

Input Schema

NameRequiredDescriptionDefault
userIdYesYour own id of the end user (up to 40 characters). Consents with the same userId and bank are grouped, which extends how long history can be read.
consentTypesYesConsent types.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Beyond annotations it discloses upsert semantics ('updates existing ones') and a runtime gate requiring the FIZEN_ALLOW_CONSENT_CHANGES flag, both of which materially affect call behavior and are not in the structured fields. The main gap is that it never says whether consents omitted from the call are left untouched or dropped, which matters for an idempotent write on a consent set.

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?

Three short sentences, front-loaded with the action and upsert behavior, then the data-quality rule, then the availability caveat. Nothing repeats the schema or the annotations, and every sentence carries information an agent would otherwise lack.

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 two-parameter mutation with full annotation coverage and no output schema, the description covers purpose, write semantics, data-quality constraint, and the environment-based availability gate. Only the merge-vs-replace behavior is left ambiguous, which is a minor but real omission.

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

Parameters3/5

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

Schema coverage is 100%, with userId grouping and the enum of consent types already documented in the schema, so the baseline applies. The description's only added semantic is that consentTypes must reflect genuine end-user agreement, a data-quality constraint rather than parameter meaning.

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 states a specific verb and resource ('Records consents an end user granted') and adds the upsert nuance ('updates existing ones'), which an agent cannot get from the name alone. It does not explicitly name the contrasting siblings (get/revoke consents), but the resource wording makes the distinction reasonably inferable.

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 a concrete usage rule — 'Record only what the end user actually agreed to in your product' — which constrains when and what to call it with. It also states an availability precondition (off in production unless FIZEN_ALLOW_CONSENT_CHANGES=true), so an agent knows a call may fail. It stops short of explicitly routing to fizen_get_user_consents or fizen_revoke_consents as alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.