Skip to main content
Glama

validate_rows

Read-onlyIdempotent

Checks Shopee product rows against an Excel template or draft-v1 schema to catch spreadsheet errors before bulk-ad file generation.

Instructions

With template_path validate Excel column rows; otherwise validate draft-v1 products.

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": {
      "rows": "<rows>"
    },
    "name": "validate_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsYes
template_pathNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered. The description adds real value beyond that by disclosing the mode switch on template_path, which the annotations do not convey. It says nothing about what happens when validation fails or what constitutes a passing vs. failing row.

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?

A single sentence with the conditional front-loaded and no wasted words; both clauses carry semantic weight. The terseness borders on cryptic ("draft-v1 products") but the structure itself is efficient.

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?

An output schema exists, so return values need not be explained, and with only two parameters the surface area is small. Still, the definition leaves the row object format and the practical difference between the two validation modes unstated, which an agent would need in order to call this correctly.

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 0%, so the description must carry the semantic load. It does explain the pivotal role of template_path (mode switch), which is meaningful beyond the schema's bare string/null type. The required `rows` parameter — an array of free-form objects with additionalProperties true — receives no explanation of expected shape or content, leaving the primary input underspecified.

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 names a specific verb ("validate") and a resource ("rows"), and it hints at two distinct validation modes. However, the phrase "validate draft-v1 products" is opaque jargon that an agent cannot resolve without outside knowledge, so the purpose is only partly clear even though it is distinct from siblings like fill_workbook or inspect_template.

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?

It gives an explicit conditional: supply template_path to validate Excel column rows, omit it to validate draft-v1 products. That is genuine when-to-use guidance for the two branches. It offers no exclusions or comparison to sibling tools (e.g., inspect_template for reading a template), so the routing picture is incomplete.

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