Skip to main content
Glama
rad-security

RAD Security

Official
by rad-security

get_widget_template

Retrieve detailed widget template information for security dashboards in Kubernetes and cloud environments using the RAD Security MCP server.

Instructions

Get detailed information about a specific widget template

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
widget_template_idYesID of the widget template

Implementation Reference

  • Handler function that executes the tool logic: fetches widget template details via API using the provided ID.
     */
    export async function getWidgetTemplate(
      client: RadSecurityClient,
      widget_template_id: string
    ): Promise<any> {
      return client.makeRequest(
        `/accounts/${client.getAccountId()}/dashboards/widget_templates/${widget_template_id}`
      );
    }
  • Zod schema for input validation: requires widget_template_id string.
    // Schema for get_widget_template
    export const GetWidgetTemplateSchema = z.object({
      widget_template_id: z.string().describe("ID of the widget template"),
    });
  • src/index.ts:663-668 (registration)
    Tool registration in listTools response: defines name, description, and converts schema to JSON schema for MCP.
      name: "get_widget_template",
      description:
        "Get detailed information about a specific widget template",
      inputSchema: zodToJsonSchema(dashboards.GetWidgetTemplateSchema),
    },
    {
  • src/index.ts:1614-1627 (registration)
    Tool invocation handler in CallToolRequest switch: parses input with schema, calls the handler, returns JSON response.
    case "get_widget_template": {
      const args = dashboards.GetWidgetTemplateSchema.parse(
        request.params.arguments
      );
      const response = await dashboards.getWidgetTemplate(
        client,
        args.widget_template_id
      );
      return {
        content: [
          { type: "text", text: JSON.stringify(response, null, 2) },
        ],
      };
    }
Behavior2/5

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

With no annotations provided, the description carries full burden but only states it 'gets' information without disclosing behavioral traits like read-only nature, error handling, authentication needs, or rate limits. It lacks details on what 'detailed information' includes or how it behaves, leaving gaps for a tool with no structured safety hints.

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 description is a single, efficient sentence that gets straight to the point without unnecessary words. It's appropriately sized for a simple tool, though it could be more front-loaded with key details. No waste, but slightly under-specified.

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?

Given no annotations and no output schema, the description is incomplete for a tool that presumably returns data. It doesn't explain what 'detailed information' includes, potential response formats, or error cases. For a retrieval tool with no structured output, more context is needed to guide the agent effectively.

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 input schema fully documents the 'widget_template_id' parameter. The description adds no meaning beyond this, as it doesn't explain parameter usage, format, or examples. Baseline 3 is appropriate since the schema handles parameter documentation adequately.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Get detailed information about a specific widget template' clearly states the action (get) and resource (widget template), but it's vague about what 'detailed information' entails and doesn't differentiate from siblings like 'list_widget_templates' or 'get_dashboard_template'. It avoids tautology but lacks specificity.

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?

No guidance is provided on when to use this tool versus alternatives. It doesn't mention prerequisites, context, or exclusions, such as when to choose 'get_widget_template' over 'list_widget_templates' for a single item versus multiple items. The description offers no usage context.

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/rad-security/mcp-server'

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