Skip to main content
Glama

Set service identity requirement

stack_set_service_requirement
Destructive

Set or remove the identity requirement for one connected service. requirement replaces what is set now; requirement null removes it. An identity-layer requirement must set requires_pii true, and requires_pii true needs a lawful_basis. Owner or admin only, and only for a service the account has an active connection to. Returns the requirements now in force.

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": {
      "service_id": "<service_id>",
      "requirement": "<requirement>"
    },
    "name": "stack_set_service_requirement"
  }
}

Input Schema

NameRequiredDescriptionDefault
service_idYesCatalog service id of a connected service
requirementYesThe requirement, or null to remove it
governance_approval_idNoDeprecated and ignored: changing a requirement no longer asks for an approval. Kept so existing callers keep working.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, and the description substantiates that with concrete semantics: the requirement replaces whatever is currently set, and null deletes it. It also discloses authorization requirements (owner or admin), a connection precondition, cross-field validation rules, and the return value — all beyond what annotations provide.

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?

Four dense sentences, front-loaded with the verb and resource, with no filler. The validation sentence compresses three separate rules into one clause chain, which slightly reduces readability but not correctness.

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?

For a destructive, non-open-world mutation with three parameters and no output schema, the description covers replace-vs-remove semantics, authorization, preconditions, validation coupling, and what is returned. Nothing material is missing for correct invocation.

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 baseline would be 3, but the description adds constraints the JSON schema cannot express: an identity-layer requirement must set requires_pii true, and requires_pii true requires a lawful_basis. It does not mention the deprecated governance_approval_id, which the schema already handles.

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 pair ('Set or remove') and an unambiguous resource ('the identity requirement for one connected service'), plus the scope of exactly one service. An agent can distinguish it from read-side siblings such as stack_get_service_requirements, though no sibling is named explicitly to route the choice.

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 clear preconditions and context: owner or admin only, and only for a service the account has an active connection to, plus the null-to-remove path that selects deletion instead of update. It lacks an explicit 'use X instead' pointer to the getter or to stack_set_identity_settings for account-wide settings, so no exclusion is stated.

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.