Spiral gives your agent every tool with one account. Browse the tools →

Gemini CLI · LLMReleased 2026-11-02

How to Use GLM 5.3 FlashX Legal in Gemini CLI

Use GLM 5.3 FlashX Legal to review contracts, compare documents, and prepare legal drafts. It specializes GLM 5.3 FlashX for legal work, including research and clause revisions.

Prompts to try with GLM 5.3 FlashX Legal in Gemini CLI

Copy an example into Gemini CLI, or ask in your own words.

Use GLM 5.3 FlashX Legal to review the agreement text in this project's legal directory from the customer's position. Return clause references, source quotations, concerns, and proposed wording; list missing context separately.

GLM 5.3 FlashX LegalGemini CLI
Try asking
  • Use GLM 5.3 FlashX Legal to compare the two contract drafts in this project. Create a Markdown table of substantive changes, their practical effect, and questions for counsel, citing both versions.

  • Use GLM 5.3 FlashX Legal to check the agreement, amendments, and schedules in this repository for inconsistent definitions and dates. Report both source locations for each conflict.

  • Use GLM 5.3 FlashX Legal with maximum reasoning effort to prepare a research memo from this project's supplied legal authorities. Separate quoted authority, analysis, and unresolved questions; do not add uncited authorities.

  • Use GLM 5.3 FlashX Legal to review the contract text in this project and return JSON containing a clause reference, source quotation, issue, proposed revision, and unanswered questions for each finding. Use null for missing information.

How to set up GLM 5.3 FlashX Legal in Gemini CLI

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Or add it to ~/.gemini/settings.json yourself:

    gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start gemini and run:

    /mcp auth spiral
  3. Check it

    In Gemini CLI, run /mcp. From your shell:

    gemini mcp list

Use the Spiral skill

  1. Send Gemini CLI this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run GLM 5.3 FlashX Legal

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "openrouter",
        "model": "z-ai/glm-5.3-flashx-legal",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: Gemini CLI finds GLM 5.3 FlashX Legal on Spiral, shows the price and runs it.

GLM 5.3 FlashX Legal providers and prices

Spiral runs GLM 5.3 FlashX Legal through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
Z.ai: GLM 5.3 FlashX Legal
z-ai/glm-5.3-flashx-legal

Settings you can ask for

Ask Gemini CLI for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Top ka whole number from 0
Top p0 to 1
Max tokens1 to 131072

The most output tokens to generate.

Temperature0 to 2
Reasoning effortlow, high, or maxmax

How much the model reasons.

Every API field of Z.ai: GLM 5.3 FlashX Legal is on its tool page: open its card above.

What can you do with GLM 5.3 FlashX Legal in Gemini CLI?

Turn project contracts and legal reference text into review tables and proposed revisions with GLM 5.3 FlashX Legal. Use explicit source references and structured findings to make each proposed change easier to inspect.

Contract risk review

Ask GLM 5.3 FlashX Legal to review an agreement from a stated negotiating position and return clause references, concerns, and proposed revisions.

Negotiation revision comparison

Compare two contract drafts with GLM 5.3 FlashX Legal. Request a table of changed wording, its practical effect, and questions for the next negotiation round.

Agreement and amendment checks

Use GLM 5.3 FlashX Legal to compare an agreement with its amendments and schedules. Ask it to flag conflicting definitions, dates, and obligations with supporting passages.

Source-based research memo

Give GLM 5.3 FlashX Legal a legal question and retrieved authorities. Request a memo that separates source statements, analysis, and unanswered questions.

First draft of a legal document

Ask GLM 5.3 FlashX Legal to draft from supplied facts, instructions, and reference language. Require explicit gaps wherever the materials lack necessary information.

Clause revision proposals

Use GLM 5.3 FlashX Legal to propose revised clauses against a supplied negotiation checklist, with an explanation connecting each change to the stated objective.

Questions about GLM 5.3 FlashX Legal in Gemini CLI

Can Gemini CLI use GLM 5.3 FlashX Legal?

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run GLM 5.3 FlashX Legal like any built-in tool.

How much does GLM 5.3 FlashX Legal cost in Gemini CLI?

Up to $0.006673 per run at the default inputs. $0.481 per 1M input tokens, $1.625 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.

Do I need an OpenRouter account to use GLM 5.3 FlashX Legal in Gemini CLI?

No. Spiral runs GLM 5.3 FlashX Legal on its own OpenRouter account. You sign in to Spiral once and never paste a key.

How long does it take to set up GLM 5.3 FlashX Legal in Gemini CLI?

About two minutes: add the server, then sign in, then check it.

Does Gemini CLI wait while GLM 5.3 FlashX Legal runs?

GLM 5.3 FlashX Legal runs in the background. Gemini CLI starts the run, checks on it and gives you the text, json when it's ready.

What is GLM 5.3 FlashX Legal best suited for?

Use it for contract review, legal research, document consistency checks, and legal drafting. Give it the relevant source material and a concrete deliverable, such as a clause comparison or draft revision.

How does it differ from GLM 5.3 FlashX?

GLM 5.3 FlashX Legal specializes the base model for legal work. Its stated focus includes reviewing contracts and drafting or revising legal documents.

How much material can it handle?

Z.ai documents a 1M-token context window and up to 128K output tokens. Ask for a focused deliverable even when supplying a large document collection.

Does it supply current laws and court decisions by itself?

Z.ai's recommended workflow uses external services to supply laws and cases. Provide authoritative sources or retrieved passages, and request citations that you can check against the originals.

Which settings are a useful starting point?

Z.ai recommends temperature 1, top-p 0.95, and maximum reasoning effort. Thinking cannot be turned off.

Get started

Start using GLM 5.3 FlashX Legal in Gemini CLI

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Gemini CLI:

Set up Gemini CLI

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options