Skip to main content
Glama
mikimatsub

swsd-mcp

by mikimatsub

swsd_upload_attachment

Upload a file attachment to a SolarWinds Service Desk record such as an incident, problem, or change using base64 content or a local file path.

Instructions

Upload an attachment to a SWSD incident, problem, change, release, solution, hardware asset, other asset, or configuration item. Use content_base64 for hosted/HTTP clients; file_path is allowed only on stdio. WRITE — honors SWSD_WRITE_MODE.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_nameYesFile name to show in SWSD (maximum 255 characters).
file_pathNoLocal filesystem path. Allowed only when SWSD_TRANSPORT=stdio.
parent_idYesSWSD parent record id.
parent_typeYesSWSD parent object type.
content_base64NoBase64-encoded file contents. Use this for HTTP transport.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed4 schema fields changedv2.3.1
    • addedInput schema / properties / content_base64 / maxLength
      Added value: +34952536
    • changedInput schema / properties / file_name / description
      Previous value: -"File name to show in SWSD."New value: +"File name to show in SWSD (maximum 255 characters)."
    • addedInput schema / properties / file_name / maxLength
      Added value: +255
    • addedInput schema / properties / file_path / maxLength
      Added value: +4096
  3. Addedv2.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, and the description adds meaningful context beyond them: 'WRITE — honors SWSD_WRITE_MODE', which tells the agent the operation is gated by a write-mode setting. It does not disclose failure modes, size ceilings, or whether re-uploading duplicates the attachment, but the write-mode signal is real added value.

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?

Two compact sentences, front-loaded with purpose and then the input-selection rule. No filler, no repetition of the schema.

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

Completeness4/5

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

For a write tool with annotations covering the safety profile and no output schema, the description covers the essentials: what it attaches to, which input field to use per transport, and the write-mode gate. It omits return value expectations and any size/format limits, but these are largely inferable from the schema constraints.

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 all five parameters are already documented. The description's transport guidance for content_base64 vs file_path largely restates the schema's own wording, adding little beyond the baseline expected when the schema does the heavy lifting.

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 (upload) plus the resource (attachment) and enumerates every valid parent type, so the agent knows exactly what the tool operates on. No sibling tool performs uploads, so differentiation is implicit but unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Provides conditional guidance on which input to use (content_base64 for hosted/HTTP, file_path only on stdio), which is genuinely useful context. However, it gives no when-to-use vs when-not guidance relative to alternatives, nor prerequisites such as required permissions on the parent record.

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