Skip to main content
Glama

Get a Wiro model schema

get_model_schema
Read-onlyIdempotent

Retrieve a model’s typed parameters, options, defaults, required fields, pricing, and workflow utility output ports before running it or answering price questions.

Instructions

Get one model’s typed parameters, options, defaults, required fields, and pricing. Catalog fields such as session_id and previousTaskToken must be discovered here: a chat continues with the same session_id and the next prompt, and previousTaskToken with toolOutputs continues a turn that ended with tool calls. Fill required parameters and follow the returned run_model next action once when the user wants a run; for a price question, the price here is the answer. A price set when the run ends, or turn by turn in a live session, gives the rates, and the charge is known after the run. "No fixed price" means the run is charged for the time it takes. It also describes the built-in workflow utilities (workflow-utilities/output-filter, workflow-utilities/merge-text, workflow-utilities/split-text): their parameters and the output ports other workflow steps reference.

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": "<model>"
    },
    "name": "get_model_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesModel slug in "owner/model" format, e.g. "google/veo3-1", "black-forest-labs/flux-2-pro", or a workflow utility such as "workflow-utilities/output-filter".

Output Schema

NameRequiredDescriptionDefault
modelYes
nextActionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.5.3
    • addedOutput schema / properties / model / properties / parameters / items / properties / items / items / properties / jsonSchema / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / nextAction / properties / arguments / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. Changed8 schema fields changedv1.4.1
    • changedInput schema / properties / model / description
      Previous value: -"Model slug in \"owner/model\" format, e.g. \"openai/sora-2\", \"black-forest-labs/flux-2-pro\"."New value: +"Model slug in \"owner/model\" format, e.g. \"google/veo3-1\", \"black-forest-labs/flux-2-pro\", or a workflow utility such as \"workflow-utilities/output-filter\"."
    • addedOutput schema / properties / model / properties / discountPercent
      Added value: +{
      +  "description": "Your discount on this model, in percent. It comes off the part of a charge paid from deposits; coupon credit and store revenue pay first, at the list price in pricing.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / model / properties / dynamicOutputs
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / model / properties / estimatedCostUsd / description
      Added value: +"Estimated USD cost of one run: the average of past runs for a model billed by run time, or the listed estimate of a price set when the run ends. Null when there is no such estimate, as for a model priced by its options: see pricing."
    • addedOutput schema / properties / model / properties / outputs
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "id": {
      +        "type": "string"
      +      },
      +      "label": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "label",
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / model / properties / parameters / items / properties / items / items / properties / default / description
      Added value: +"What a run uses when the parameter is left out."
    • addedOutput schema / properties / model / properties / parameters / items / properties / items / items / properties / sample
      Added value: +{
      +  "description": "The value from the model's page. A workflow step that leaves the parameter out gets it. A run does not: it leaves an optional parameter empty (a seed is picked at random) and refuses a required one that is left out.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / model / properties / pricingNotes
      Added value: +{
      +  "description": "Notes from the model's price list, as its page shows them, such as the rates behind a price or the setting it applies to.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. Changed3 schema fields changedv1.3.0
    • addedOutput schema / properties / model / properties / parameters / items / properties / items / items / properties / advanced
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / model / properties / parameters / items / properties / items / items / properties / jsonSchema
      Added value: +{
      +  "additionalProperties": {},
      +  "type": "object"
      +}
    • changedOutput schema / properties / model / properties / parameters / items / properties / items / items / required
      Previous value: -[
      -  "id",
      -  "type",
      -  "label",
      -  "required",
      -  "options"
      -]New value: +[
      +  "id",
      +  "type",
      +  "label",
      +  "required",
      +  "options",
      +  "advanced"
      +]
  4. Changed2 schema fields changedv1.2.3
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  5. Changed2 schema fields changedv1.2.1
    • changedInput schema / properties / model / description
      Previous value: -"Model slug in \"owner/model\" format, e.g. \"openai/sora-2\", \"black-forest-labs/flux-2-pro\""New value: +"Model slug in \"owner/model\" format, e.g. \"openai/sora-2\", \"black-forest-labs/flux-2-pro\"."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "model": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "categories": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "description": {
      +          "type": "string"
      +        },
      +        "estimatedCostUsd": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "parameters": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "items": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "default": {
      +                      "type": "string"
      +                    },
      +                    "description": {
      +                      "type": "string"
      +                    },
      +                    "id": {
      +                      "type": "string"
      +                    },
      +                    "label": {
      +                      "type": "string"
      +                    },
      +                    "max": {
      +                      "type": "number"
      +                    },
      +                    "min": {
      +                      "type": "number"
      +                    },
      +                    "note": {
      +                      "type": "string"
      +                    },
      +                    "options": {
      +                      "items": {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "label": {
      +                            "type": "string"
      +                          },
      +                          "value": {
      +                            "type": "string"
      +                          }
      +                        },
      +                        "required": [
      +                          "label",
      +                          "value"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      "type": "array"
      +                    },
      +                    "placeholder": {
      +                      "type": "string"
      +                    },
      +                    "required": {
      +                      "type": "boolean"
      +                    },
      +                    "step": {
      +                      "type": "number"
      +                    },
      +                    "type": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "id",
      +                    "type",
      +                    "label",
      +                    "required",
      +                    "options"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "title": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "title",
      +              "items"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "pricing": {
      +          "type": "string"
      +        },
      +        "slug": {
      +          "type": "string"
      +        },
      +        "title": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "slug",
      +        "title",
      +        "categories",
      +        "parameters"
      +      ],
      +      "type": "object"
      +    },
      +    "nextAction": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "arguments": {
      +          "additionalProperties": {},
      +          "type": "object"
      +        },
      +        "reason": {
      +          "type": "string"
      +        },
      +        "tool": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "tool",
      +        "arguments",
      +        "reason"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "model",
      +    "nextAction"
      +  ],
      +  "type": "object"
      +}
  6. First observedv1.1.4

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), so the description earns credit for adding genuinely new behavior: how pricing is determined ('charged for the time it takes' when 'no fixed price'), when the charge is known, and the session/turn continuation protocol. The pricing sentences are somewhat tangled but do disclose facts an agent could not infer from annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in sentence one, but the body packs pricing, session continuation, and workflow utilities into dense run-on clauses ('A price set when the run ends, or turn by turn in a live session, gives the rates...'), which takes rereading. Content is largely relevant but the structure could be split into clear bullets without losing meaning.

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?

An output schema exists, so return values need no explanation, and the description still covers the non-obvious pieces an agent needs: pricing semantics, required-field filling, continuation tokens, and the workflow-utility variant. Only a clearer pointer to where post-run price questions go is missing, which is a minor gap for a single-parameter read tool.

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?

With a single parameter at 100% schema description coverage, the schema already documents the `model` slug format, examples, and the workflow-utility variant. The description adds little parameter-level meaning beyond repeating that utilities can be requested; its 'catalog fields such as session_id and previousTaskToken' line concerns returned data, not the input. Baseline 3 is appropriate.

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 opening sentence names a specific verb and resource plus the exact payload: 'typed parameters, options, defaults, required fields, and pricing' for one model. It also carves out a distinct scope (workflow utility schemas), so an agent can tell it apart from run_model or recommend_model without opening any schema.

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

Usage Guidelines4/5

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

It gives concrete next-step routing: fill required parameters then follow the returned `run_model` next action, and 'for a price question, the price here is the answer.' It also explains the continuation case (reuse `session_id`, or `previousTaskToken` with `toolOutputs`), which is real when-to-use guidance. It stops short of explicitly naming a sibling to avoid (e.g. get_task_price) for post-run pricing, so it is not a full 5.

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