> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.credal.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.credal.com/_mcp/server.

# TypeMismatch

GraphQL object

A constraint value's JSON type does not match the type declared by the tool schema.

Reference: https://docs.credal.com/api-reference/types/objects/type-mismatch

## Fields

- `mcpToolName` — The tool whose input schema the rule was checked against.
- `parameter`
- `declaredType` — The JSON Schema type the input server declares for the parameter.
- `suppliedType` — The JSON Schema type of the value the rule constrained it to.

## Definition

```graphql
type TypeMismatch {
  mcpToolName: String!
  parameter: String!
  declaredType: String!
  suppliedType: String!
}
```