Skip to main content
Glama
davidf9999
by davidf9999

add_expectation

Add a data-quality expectation to an existing suite or create a new one, specifying the expectation type and parameters like column and value set.

Instructions

Add a single expectation to an existing suite (or create it).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kwargsYesParameters for the expectation (e.g., {"column": "status", "value_set": ["active", "inactive"]})
suite_nameYesName of the expectation suite
expectation_typeYesType of expectation (e.g., "expect_column_values_to_be_in_set")

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYes
successYes
Behavior2/5

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

With no annotations, the description carries the full burden. It reveals that the tool may create a suite, but does not disclose whether expectations are appended or overwritten, how errors are handled, or any side effects. This leaves significant ambiguity.

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 a single, clear sentence with no wasted words. It front-loads the primary action and includes the key behavioral nuance about creating the suite.

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?

Given the low complexity, rich schema, and presence of an output schema, the description addresses the core purpose and the create-if-missing behavior. It is slightly thin on edge cases but sufficient for a tool of this simplicity.

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 covers all three parameters with descriptions and an example for kwargs. The tool description adds no additional parameter detail, so it meets the baseline but does not exceed it.

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 verb 'add' and the resource 'expectation to a suite', and even clarifies the behavior when the suite doesn't exist ('or create it'). This distinguishes it from siblings like create_suite, which would only create the suite.

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 description implies the tool is used to add an expectation and optionally create the suite, but does not explicitly contrast with alternatives or provide when/when-not guidance. The context is implied rather than stated.

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/davidf9999/gx-mcp-server'

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