Skip to main content
Glama
OpenCode Context Optimizer (OCCE)

OpenCode Context Optimizer (OCCE)

by SammySN-car

test_compress

Run pytest, cargo test, go test, or Jest/Vitest commands and return only failures, assertion errors, and clean stack frames, with passed tests summarized in one line.

Instructions

Run test suites (pytest, cargo test, go test, jest/vitest) and output only failing tests, assertion errors, and clean stack frames, collapsing passed tests into a 1-line summary.

Input Schema

NameRequiredDescriptionDefault
commandYesTest command to execute (e.g., 'pytest tests/', 'cargo test', 'go test ./...').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it does disclose the key output-shaping behavior (only failures, assertion errors, clean stack frames, passed tests collapsed to a one-line summary), which is valuable. It says nothing about execution side effects, timeouts, working directory, or exit-code semantics for a tool that clearly shells out to arbitrary commands.

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 front-loaded sentence that leads with the action and then the output contract; no filler or hedging. The framework enumeration is slightly redundant with the schema examples but still earns its place as a scoping signal.

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?

For a one-parameter tool with no output schema and no annotations, the description covers both the input domain (test frameworks) and the return shape (failures plus a collapsed pass summary). Only execution environment details like timeouts or working directory are missing, which are secondary for this tool's core contract.

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?

There is only one parameter and schema coverage is 100%, with concrete example commands already in the schema, so the schema does the heavy lifting. The description's framework list marginally reinforces accepted values but adds no syntax or constraint information beyond what the schema documents.

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 states a specific verb and resource ('Run test suites') and enumerates the exact frameworks supported (pytest, cargo test, go test, jest/vitest), so what it does is unambiguous. It does not, however, distinguish itself from the sibling 'smart_exec', which plausibly also executes commands, leaving overlap for the agent to resolve.

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?

Usage is only implied by the framing around test frameworks; there is no explicit statement of when to prefer this over 'smart_exec' or when it is inappropriate (e.g., non-test commands, interactive suites). The agent can infer intent from the examples but must guess at boundaries.

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