Skip to main content
Glama
fastmcp-me

Tenzir MCP Server

by fastmcp-me

Add test to package

package_add_test

Create test cases for Tenzir operators by defining input/output pairs, adding fixtures, and generating test scaffolds for the tenzir-test framework.

Instructions

Add a test to a package.

Use this tool to:

  • Create test cases for your operators

  • Define expected behavior with input/output pairs

  • Set up integration tests with fixtures (e.g., embedded Tenzir nodes)

  • Generate test scaffolds to be populated later with run_test

Tests use the tenzir-test framework. Provide input/output when known, or omit output and use the run_test tool with update=True to generate baselines from actual execution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
testYesTQL code written in the test file
inputNoInput data to feed to the pipeline. Pairs with `output` to define test expectations. Omit when the test generates data inline using TQL operators like `from`.
outputNoExpected output from the pipeline. Pairs with `input` for input/output tests, or used alone when the test generates data inline.
timeoutNoMaximum time in seconds for the test to complete (optional)
fixturesNoList of fixture names (optional)
test_fileNoPath to the test file relative to package tests directory. If not provided, a default name will be generated.
package_dirYesPath to the package directory
Behavior4/5

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

The description adds context beyond the minimal annotations by explaining the tenzir-test framework and the scaffolding workflow. It implies the tool creates test files, but does not explicitly discuss side effects like overwriting existing files or permission requirements. No contradiction with annotations is present.

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 well-structured with a clear first sentence, bullet points for use cases, and a closing note about the framework. It is concise, front-loaded, and all content is relevant to selecting and using the tool.

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?

The description provides sufficient context for a tool with 7 parameters, covering core workflow and linking to run_test. It could be more complete by mentioning what happens if test_file already exists or what the tool returns, but these are not essential for basic invocation.

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?

Although the schema covers all parameters, the description enriches meaning by explaining how input/output pairs define expectations, that fixtures can be embedded Tenzir nodes, and how omitted output can be filled later with run_test. This adds usage context beyond raw parameter descriptions.

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 clearly states the tool adds a test to a package, with specific use cases like creating test cases, defining input/output expectations, and setting up fixtures. It is distinct from siblings like run_test and package_add_operator by focusing on test creation rather than execution or operator packaging.

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?

The description provides explicit guidance on when to use this tool and when to use the alternative run_test: it says to use run_test with update=True to generate baselines from actual execution. It also outlines concrete scenarios (test cases, input/output pairs, fixtures) that clarify the tool's role.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fastmcp-me/mcp-tenzir'

If you have feedback or need assistance with the MCP directory API, please join our Discord server