Skip to main content
Glama

Grok Image HQ

grok-image-hq

Grok Image HQ — Generate exactly 1 higher-quality image from a text prompt. Powered by xAI. Not affiliated with or endorsed by xAI. (20 MESH/call, a tool · media)

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": {
      "input": "<input>"
    },
    "name": "grok-image-hq"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesPayload for grok-image-hq

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / input / additionalProperties
      Added value: +false
    • changedInput schema / properties / input / description
      Previous value: -"Capability-specific payload, e.g. agent-brain: {think:'...'}; agent-memory: {action:'store'|'recall', content|query}"New value: +"Payload for grok-image-hq"
    • addedInput schema / properties / input / properties
      Added value: +{
      +  "aspect_ratio": {
      +    "description": "Optional output aspect ratio. Anything outside this list is rejected by the provider.",
      +    "enum": [
      +      "1:1",
      +      "3:4",
      +      "4:3",
      +      "9:16",
      +      "16:9",
      +      "2:3",
      +      "3:2",
      +      "9:19.5",
      +      "19.5:9",
      +      "9:20",
      +      "20:9",
      +      "1:2",
      +      "2:1",
      +      "21:9",
      +      "5:2",
      +      "auto"
      +    ],
      +    "type": "string"
      +  },
      +  "n": {
      +    "description": "Optional — must be 1. Exactly 1 image per call, as the listing promises.",
      +    "enum": [
      +      1
      +    ],
      +    "type": "integer"
      +  },
      +  "prompt": {
      +    "description": "REQUIRED — the text prompt to generate the higher-quality image from. Trimmed server-side; empty rejected.",
      +    "maxLength": 4000,
      +    "minLength": 1,
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / input / required
      Added value: +[
      +  "prompt"
      +]
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true, idempotentHint=false and destructiveHint=false, so the safety profile is covered. The description adds genuinely new context beyond them: per-call cost (20 MESH), a hard output cardinality of exactly 1 image, and a non-affiliation disclaimer. It does not mention failure modes such as prompt rejection or moderation.

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?

Front-loaded with purpose and compact overall — the verb and constraint lead. The non-affiliation sentence and the parenthetical '(a tool · media)' metadata are not about invocation behavior and dilute slightly, but total length stays small.

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 single-payload, single-parameter tool with full schema coverage, existing annotations and no output schema, the description supplies the essentials an agent needs: what it produces, how many, cost, and provider. Missing only failure/error behavior and any sibling comparison.

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?

Schema description coverage is 100%, so prompt, n and aspect_ratio are all documented in the schema, including enum values and length limits. The description adds nothing beyond 'from a text prompt', so baseline 3 applies.

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?

States a specific verb and resource — 'Generate exactly 1 higher-quality image from a text prompt' — plus the provider. It does not explicitly contrast itself with the sibling 'grok-image', so an agent must infer the premium-vs-standard distinction from the 'higher-quality' qualifier alone.

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 '20 MESH/call' price and 'higher-quality' framing imply this is the costlier premium path relative to grok-image, but that tradeoff is never stated as guidance. No when-to-use or when-not-to-use instruction is given, and no alternative is named.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.