Skip to main content
Glama
CoveoSec
by CoveoSec

widgets_insert

Insert or update widgets in Cortex XSIAM by sending widget data retrieved from the Get widgets API. Directly manage dashboard widgets.

Instructions

Insert or update widgets

Update or add the widgets retrieved by the Get widgets API.

You must have Instance Administrator permissions to run this endpoint.

[POST /public_api/v1/widgets/insert] · Widgets

Example request body:

{
  "request_data": [
    {
      "widgets_data": [
        {
          "widget_key": "xql_1646052681403",
          "title": "Widget A",
          "creation_time": 1653303166334,
          "description": null,
          "data": {
            "phrase": "cold_dataset = endpoints",
            "time_frame": {
              "relativeTime": 86400000
            },
            "viewOptions": {
              "type": "table",
              "commands": []
            }
          },
          "support_time_range": true,
          "additional_info": {
            "query_tables": [
              "endpoints"
            ],
            "query_uses_library": false
          },
          "creator_mail": "user@company.com"
        }
      ]
    },
    {
      "widgets_data": [
        {
          "widget_key": "xql_1346826725701",
          "title": "Widget B",
          "creation_time": 1653302483610,
          "description": null,
          "data": {
            "phrase": "dataset = endpoints ",
            "time_frame": {
              "relativeTime": 86400000
            },
            "viewOptions": {
              "type": "table",
              "commands": []
            },
            "gridRawStorageInfo": {
              "sort": null,
              "coldefs": {},
              "rowHeight": "{\"rowHeight\":\"regular\",\"gridRowsHeight\":\"medium-row\"}",
              "columnWidth": null
            }
          },
          "support_time_range": true,
          "additional_info": {
            "query_tables": [
              "endpoints"
            ],
            "query_uses_library": false
          },
          "creator_mail": "user@company.com"
        }
      ]
    }
  ]
}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
request_dataNo
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses the operation type (insert/update) and the required 'Instance Administrator' permission, and provides an example body. However, it does not describe upsert semantics (whether existing widgets are overwritten or merged), side effects, or the response format.

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?

The prose is concise: two sentences stating purpose and permission, plus the endpoint. The large example body is useful and directly illustrates the input structure, so it earns its place. It is appropriately front-loaded with the purpose.

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

Completeness3/5

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

The description covers the operation, permission, and provides a comprehensive example. However, it lacks information about the response format, error handling, and idempotency/upsert behavior. Given no output schema and no annotations, this is a notable gap.

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?

The schema has one parameter, 'request_data', with no top-level description, but the description includes a detailed example request body showing the structure of request_data and widgets_data with concrete field values. This compensates for the schema's lack of descriptions, though it does not explicitly explain each field.

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?

The description clearly states 'Insert or update widgets' and elaborates with 'Update or add the widgets retrieved by the Get widgets API.' This specifies the action (insert/update) and resource (widgets), and distinguishes it from siblings like widgets_get (read) and widgets_delete (delete).

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?

It provides clear context for when to use the tool: for updating or adding widgets that came from the Get widgets API. It also mentions the required Instance Administrator permission, which adds decision-making context. However, it does not explicitly mention alternative tools or when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CoveoSec/xsiam-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server