Skip to main content
Glama

Set embed allowed origins

set_embed_allowed_origins
Idempotent

Set or modify the allow-listed origins for a project's embed widget — the write counterpart to get_embed_snippet's allowed_origins. Each origin is normalized to scheme+host (path and default-port duplicates removed; a bare host gets https://). mode=replace (default) sets the list, add unions with the current list, remove subtracts. An empty resulting list means NO origin restriction is enforced. Returns the resulting list. Identify the project by project_id, or project_name (+ customer_name to disambiguate). Requires a full-access (non-customer) role.

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": {
      "origins": "<origins>"
    },
    "name": "set_embed_allowed_origins"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoreplace (default) sets the list to exactly these origins; add unions them with the current list; remove subtracts them.
originsYesOrigins to apply, e.g. ["https://book-ai-ze.de"]. A bare host like "book-ai-ze.de" is treated as https://. Empty array with mode=replace clears all restrictions.
project_idNoProject UUID
project_nameNoProject name (case-insensitive, partial match) — used if project_id is omitted
customer_nameNoCustomer name to disambiguate when project_name matches more than one project

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the supplied annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false) the description discloses normalization rules (scheme+host, path and default-port duplicates dropped, bare host gets https://), the three mutation semantics, the security-relevant empty-list outcome, the return value, and a role requirement. That is materially more than the annotations carry.

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?

Four tight sentences, each carrying distinct information — identity/relationship to the read tool first, then normalization, then mutation modes, then the empty-list warning, then identification and role. No filler and the most consequential constraint is not buried.

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 5-parameter mutation tool with no output schema, the description covers what an agent needs: how to identify the target project, authorization requirements, normalization of inputs, the effect of each mode, the edge case where all restrictions are cleared, and the fact that the resulting list is returned.

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 description coverage is already 100%, so the baseline is 3; the description still adds value by restating the replace-default and the empty-array-clears behavior, the bare-host normalization rule, and the customer_name disambiguation for ambiguous project_name matches. It does not add format details beyond the schema's own example, so it sits just above baseline.

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?

States a specific verb+resource ('Set or modify the allow-listed origins for a project's embed widget') and explicitly positions itself as the write counterpart to the sibling get_embed_snippet's allowed_origins, so an agent can separate the read and write paths without opening either schema.

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 operating context: mode=replace is the default, add unions, remove subtracts, and 'An empty resulting list means NO origin restriction is enforced' warns about the consequential case. It also names project-identification paths (project_id, or project_name + customer_name) and the full-access role prerequisite. It stops short of an explicit when-not-to-use statement or an alternative write tool, so it is strong but not exhaustive.

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.

Resources