Skip to content

Expose and implement investigate_database includeCardinality #85

Description

@jstirnaman

Problem

investigate_database accepts includeCardinality in its Zod schema, but the MCP JSON schema does not advertise the property and disallows additional properties. The handler also never reads the value or returns cardinality data.

Schema-driven MCP clients therefore cannot request cardinality, while direct callers receive no cardinality data either.

Expected behavior

Make includeCardinality an advertised, functional investigation option:

  • include it in the MCP input JSON schema;
  • conditionally collect/return cardinality data when requested;
  • document any product-specific availability, limits, or warnings.

Acceptance criteria

  • Protocol/schema coverage confirms the property is advertised.
  • Handler coverage proves false omits cardinality work and true returns the defined data/warnings.
  • Product-specific unsupported cases are structured and non-fatal.

Release assessment

Fixable in 1.4.0 if cardinality is still part of the advertised investigation contract. It is not critical; alternatively, remove the unused option from the Zod schema and documentation for this release.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority: P2High release priority

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions