Skip to main content
Glama
vizro-mcp

vizro-mcp

Official
by mckinsey

get_model_json_schema

Retrieve the JSON schema for a specified Vizro model, such as Card, Dashboard, or Page, to validate structure and configure components accurately.

Instructions

Get the JSON schema for the specified Vizro model. Server Vizro version: 1.0.1

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "model_name": "<model_name>"
    },
    "name": "get_model_json_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
model_nameYesName of the Vizro model to get schema for (e.g., 'Card', 'Dashboard', 'Page')

Output Schema

NameRequiredDescriptionDefault
model_nameYes
json_schemaYes
additional_infoYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.0
    • addedInput schema / properties / model_name / description
      Added value: +"Name of the Vizro model to get schema for (e.g., 'Card', 'Dashboard', 'Page')"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "additional_info": {
      +      "title": "Additional Info",
      +      "type": "string"
      +    },
      +    "json_schema": {
      +      "additionalProperties": true,
      +      "title": "Json Schema",
      +      "type": "object"
      +    },
      +    "model_name": {
      +      "title": "Model Name",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "model_name",
      +    "json_schema",
      +    "additional_info"
      +  ],
      +  "title": "ModelJsonSchemaResults",
      +  "type": "object"
      +}
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden. It does add genuinely useful context by disclosing the serving Vizro version (1.0.1), which tells the agent which schema dialect to expect. However, it says nothing about behavior on an unknown or misspelled model_name, whether names are case-sensitive, or whether the call is a pure read with no side effects. Return values need not be covered given the output schema exists.

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?

Two short sentences with the core action front-loaded; nothing is padded. The trailing version sentence is slightly tangential to the action but earns its place by telling the agent which schema version is being served.

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 read tool with full schema coverage and an output schema, the definition supplies what an agent needs in order to call it correctly. The remaining gap is failure behavior for invalid model names, which is minor given the low complexity and the discoverability of model names through the schema examples.

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 input schema already documents the single parameter at 100% coverage, including example model names ('Card', 'Dashboard', 'Page'). The description's phrase 'specified Vizro model' adds no syntax, case-sensitivity, or accepted-value detail beyond that. Baseline 3 applies when the schema does the heavy lifting.

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 names a specific verb and resource: 'Get the JSON schema for the specified Vizro model.' An agent can immediately tell this is a schema-lookup tool rather than a validator or data loader. It does not explicitly contrast itself with the sibling validation/planning tools, keeping it just below top marks.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no stated when-to-use guidance, no mention of prerequisites, and no routing to or from alternatives such as validate_dashboard_config. The intended use (fetch a model's schema before writing or validating model code) must be inferred entirely from the tool name and parameter.

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