Skip to main content
Glama
ryanmat

io.github.ryanmat/logicmonitor

by ryanmat

update_datasource

Replace a LogicMonitor DataSource definition entirely, blanking any omitted fields. Requires confirm=true to prevent accidental data loss; use update_logicmodule for safe partial edits.

Instructions

RAW UPDATE -- full-replace semantics. Any field omitted from definition is BLANKED on the server. Two prior production incidents wiped Groovy scripts via this tool. PREFER update_logicmodule(type='datasource', id, changes, mode='preview') for partial updates with diff preview. Requires confirm=true to proceed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNoMust be true to proceed. Defaults to false to prevent accidental field-blanking. Use update_logicmodule for safe partial updates.
definitionYesFULL DataSource definition with all fields (will replace)
datasource_idYesDataSource ID to update

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.2.0

TDQS

A4.1/5.0
Behavior1/5

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

The description warns of destructive behavior (field blanking, production incidents) but the annotation destructiveHint=false contradicts this. This is a serious inconsistency, so the description's behavioral disclosure is undermined by the annotation.

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 description is concise, front-loaded with the most critical warning ('full-replace semantics'), and packs essential safety and alternative guidance into a few sentences without fluff.

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 tool with destructive potential, the description covers the replacement semantics, the confirm requirement, historical incidents, and the safer alternative. It is complete for safe usage, aside from the annotation contradiction.

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 coverage is 100%, but the description adds the crucial clarification that omitted fields are blanked, which is not fully explicit in the schema. This goes beyond the schema's 'will replace' phrasing, adding valuable semantic detail.

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 states a specific verb ('update'), resource ('datasource'), and the critical semantics ('full-replace'). It explicitly differentiates from the sibling tool update_logicmodule, making the purpose unambiguous.

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

Usage Guidelines5/5

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

Explicitly directs the agent to prefer update_logicmodule for partial updates with diff preview, and states the requirement for confirm=true. This provides clear when-to-use and when-not-to-use guidance.

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

Deploy Server

Other Tools