Skip to main content
Glama

audit_csv_labels

Read-onlyIdempotent

Audit a text-and-label CSV to flag conflicting or likely incorrect labels; returns counts, observed labels, supporting text excerpts, and weighted neighbour votes for human review.

Instructions

Flag conflicting and likely incorrect labels in one text-and-label CSV.

Returns counts, observed labels, supporting text excerpts and weighted neighbour votes. Exact-text conflicts come first. Suggestions require human review. The input limit is 2 MiB and 5,000 records. Processing uses local character TF-IDF.

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": {
      "path": "<path>"
    },
    "name": "audit_csv_labels"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesRelative path to a user-selected UTF-8 CSV inside CLARITY_DATA_DIR.
max_findingsNoMaximum number of findings to return. Summary counts cover the full file.

Output Schema

NameRequiredDescriptionDefault
findingsYes
embeddingYes
neighborsYes
input_recordsYes
distinct_textsYes
min_similarityYes
min_vote_shareYes
total_findingsYes
findings_returnedYes
records_for_reviewYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

The annotations already establish that this is a safe, read-only, idempotent operation. Beyond that, the description discloses the return contents (counts, labels, excerpts, weighted votes), ordering behavior, the human-review caveat, input limits, and the local TF-IDF processing approach.

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 front-loaded with the purpose, then efficiently adds output behavior, review requirements, limits, and processing context. Every sentence contributes useful information without repetition.

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 read-only audit tool with a complete input schema and an output schema, this is sufficiently complete. The description covers the operation, limitations, review requirement, output shape, and processing method, leaving no material ambiguity for invocation.

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?

The schema fully documents both parameters, including the path constraints and max_findings default/maximum, so the schema does the heavy lifting. The description adds useful constraints about file size and record count but does not add parameter-level meaning beyond what the schema already provides.

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 opens with a specific verb and resource: flag conflicting and likely incorrect labels in one text-and-label CSV. It makes the scope unmistakable, including the single-CSV limitation, and does not rely on the tool name alone.

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?

It clearly contextualizes use by naming the audit target, stating that suggestions require human review, and documenting the 2 MiB / 5,000-record limits. There are no sibling alternatives to route between, but it does not explicitly say when this tool should not be used beyond the input limits.

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

This server cannot be deployed

Other Tools