Skip to main content
Glama
robot-structural-mcp

robot-structural-mcp

by brdz4

Asignar sección a barras

robot_assign_section
DestructiveIdempotent

Assigns an existing section to specified bars, replacing their current sections. Use dry-run first to validate the plan and preview affected bars before applying.

Instructions

Asigna una sección existente a las barras indicadas, reemplazando la que tuvieran.

Devuelve {dry_run, applied, results_status_before, invalidates_results, section, bars_count, not_found, current_sections:{nombre: nº de barras}, bars_changing, next_step? | assigned, results_status_after}. current_sections es lo que tienen hoy esas barras: muéstralo al usuario antes de aplicar, porque la asignación anterior se pierde.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "selection": "<selection>",
      "section": "<section>"
    },
    "name": "robot_assign_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNotrue (por defecto) = solo valida y describe lo que haría, sin modificar nada. false = aplica el cambio. Haz siempre primero el ensayo y muestra el plan al usuario.
sectionYesSección existente (ver robot_list_sections con only_used=false).
selectionYesBarras a modificar: '1to8', '9 12 15'. Obligatorio.
discard_resultsNoObligatorio true para aplicar un cambio que invalida resultados vigentes del modelo (habrá que recalcular). Ponlo solo si el usuario lo aceptó.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructive=true and idempotent=true, but the description adds the non-obvious fact that the existing section assignment is overwritten and that the operation invalidates live results. It mentions next_step and current_sections in the return, which helps the agent plan the confirmation dialogue; it does not discuss error modes or partial failure beyond not_found.

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?

Purpose is front-loaded in one sentence, followed by the two response variants and the confirmation rule. Return-field enumeration is somewhat dense but maps to the two branches (dry-run vs applied), so it is efficient rather than padded.

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?

Output schema exists (return fields enumerated in prose are redundant but not wrong), and four parameters with required=2 are fully schema-documented. An agent can call it safely; only alternatives (when to use define_section instead) are left implicit in the description.

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 dry_run, discard_results, section and selection are all already ddescribed in the schema with their semantics, including the 'acepta el usuario' condition. The description itself adds no syntax or format detail for selection (e.g. '1to8') beyond what the schema states, so the baseline of 3 applies.

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?

Precise verb+resource: 'Asigna una sección existente a las barras indicadas, reemplazando la que tuvieran.' The word 'existente' plus the schema pointer to robot_list_sections separates it from a section-definition tool, and it names the exposure (bars) and the side effect (replacement) in the same sentence.

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?

Gives a concrete workflow rule: show current_sections to the user before applying, because the prior assignment is lost; the schema adds 'do the dry run first'. It does not name alternatives (e.g. define_section for new sections) or exclusions, so it stops short of a 5.

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