Skip to main content
Glama

update_cors

Add or remove origins in the cors-dev middleware to control which domains can access local services through the reverse proxy.

Instructions

Add or remove origins from the cors-dev middleware

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "update_cors"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNoOrigins to add (e.g., http://myapp.localhost)
removeNoOrigins to remove

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it says nothing about whether the middleware must already exist, whether changes apply immediately, how duplicate origins are handled, or what happens if the same origin appears in both add and remove. For a mutation tool this leaves important side-effect and failure semantics undisclosed.

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?

The definition is a single front-loaded sentence with no wasted wording. The operation and target are immediately clear.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has only two optional parameters and no output schema, which keeps the requirements modest, but as a mutation with no annotations the description should still cover prerequisites, side effects, and failure behavior. Those gaps are significant enough to leave an agent unsure how safely to invoke it.

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 description coverage is 100%, so the add and remove arrays are already documented with their item formats. The description only restates that origins are added or removed; it adds no clarification about ordering, duplicate handling, URL normalization, or whether both arrays can be used together.

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 pair of operations (add or remove) and the exact resource (origins from the cors-dev middleware), so an agent can tell what it mutates. It does not explicitly distinguish itself from the read-oriented sibling get_cors, which keeps it from 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no exclusion conditions, and no mention of the related get_cors or list_middlewares tools. The verb implies that this is the mutating tool, but an agent must infer all usage conditions.

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