Skip to main content
Glama

Add single sign-on domain

stack_add_sso_domain

Claim an e-mail domain, such as corp.example.com, for the account's single sign-on. Some identity providers (Microsoft Entra ID among them) do not say that a person's address is verified; once the account has proved the domain, an address at exactly that domain counts as verified for a first sign-in when the provider's ID token has no email_verified claim at all. Returns the DNS TXT record to publish (record.name, record.value); nothing counts until stack_verify_sso_domain finds it. The exact domain only: a subdomain is a domain of its own. Needs an owner or admin session. A person approves it in a browser: the call fails first with approval_id and approval_url and the chat never approves it. Send the same domain with governance_approval_id once they have. A domain another account has verified is refused with a message that does not say who holds it.

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": {
      "domain": "<domain>"
    },
    "name": "stack_add_sso_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesThe e-mail domain, such as corp.example.com: a name, with no address, port or path
governance_approval_idNoApproval id (gvr_*) from a GOVERNANCE_APPROVAL_REQUIRED response, once the person approved it in their browser

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and destructiveHint=false; the description goes well beyond that by explaining the return payload (a DNS TXT record with record.name and record.value) and the two-stage governance approval flow with approval_id and approval_url. It also discloses the inter-account refusal behavior and warns that the error message will not reveal who holds the domain. The only gap is that reversibility is not stated for the claim itself, though the sibling stack_remove_sso_domain implies it.

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, then behavior, then prerequisites, then failure modes, in a logical order with no filler sentences. It is dense and slightly long, and the clause about the chat never approving is a bit indirect, but every sentence carries operational information.

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?

There is no output schema, and the description compensates by describing the returned DNS TXT record fields. With only two parameters, both fully specified, and annotations covering the safety profile, nothing an agent needs to call this correctly and handle the approval loop is missing.

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 real meaning: it clarifies the domain must be the exact registrable domain with a subdomain counting as its own domain, and it explains the governance_approval_id lifecycle (obtained from a GOVERNANCE_APPROVAL_REQUIRED response first, then resent with the same domain after browser approval). That workflow context is not captured in the schema's terse field description.

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 and resource ("Claim an e-mail domain ... for the account's single sign-on") plus a concrete example (corp.example.com), leaving no ambiguity about the operation. It also explicitly names stack_verify_sso_domain as the follow-up step, which separates it from the nearest sibling without needing the 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?

States prerequisites (owner or admin session), the required next step ("nothing counts until stack_verify_sso_domain finds it"), and the disqualifying conditions (subdomains are separate domains; domains verified by another account are refused). It even describes the expected failure path and the retry with governance_approval_id, so an agent knows exactly when to proceed and when to stop.

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.