Skip to main content
Glama
Secil Canary Historian MCP Server

Secil Canary Historian MCP Server

by eins53740

write_test_dataset

Writes manual entry samples into approved Test datasets via Canary SAF, validating records and capturing audit metadata with optional dry-run support.

Instructions

Write manual entry samples into approved Test/* datasets via Canary SAF.

Args: dataset: The Test dataset to target (e.g., "Test/Maceira"). records: List of objects with keys tag, value, and optional timestamp/quality. original_prompt: Natural-language instruction captured for auditing. role: Caller role; must match one of CANARY_TESTER_ROLES (default: "tester"). dry_run: When True, validate payload but skip the actual Canary API call.

Returns: Dict summarising the write attempt, including recorded prompt and role metadata.

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": {
      "dataset": "<dataset>",
      "records": "<records>",
      "original_prompt": "<original_prompt>",
      "role": "<role>"
    },
    "name": "write_test_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYes
datasetYes
dry_runNo
recordsYes
original_promptYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure. It does add real context: the role must match CANARY_TESTER_ROLES (default 'tester'), and dry_run validates the payload without making the API call, which is a meaningful safety behavior. However, it never says whether existing samples are overwritten, whether the operation is idempotent, what permissions are required, or what failure looks like, and for a mutation tool with zero annotation coverage those gaps matter.

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?

The definition is front-loaded with a one-line purpose, and each Args entry earns its place. The 'Args:' boilerplate label and the 'Returns:' block are minor waste; the Returns block also restates what the output schema already provides.

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 the returns description is optional overhead rather than a needed disclosure. That said, this is a five-parameter mutation tool with no annotations, and the definition is silent on side effects, overwrite semantics, and failure modes; it therefore covers calling it correctly but not the consequences of calling it.

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 description coverage is 0%, so the description must compensate, and it largely does: it documents all five parameters, gives an example dataset path, names the record keys (tag, value, optional timestamp/quality), and explains original_prompt as an audit capture. The remaining gap is that CANARY_TESTER_ROLES is referenced but its allowed values are never enumerated, and the record object's full shape is not closed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource: 'Write manual entry samples into approved Test/* datasets via Canary SAF.' That is clearly distinct from the sibling read tools (get_*, read_*, search_*), but the domain terms 'SAF' and 'Canary' are never explained, and 'manual entry samples' is somewhat opaque without a schema description.

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?

The restriction to 'approved Test/*' datasets is implied usage guidance: the tool writes only to test datasets. However, it never says when to choose this over other write paths, what 'approved' means, what happens if the target is a non-Test dataset, or when to use dry_run instead of a real write. No alternative is mentioned.

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