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

Notion · LLMReleased 2025-12-22

How to Use GLM-4.7 in Notion

GLM-4.7 suits code repairs, web UI work, and tasks that require several tool calls. Compared with GLM-4.6, it improves multilingual coding and terminal tasks and adds control over thinking on each turn.

Prompts to try with GLM-4.7 in Notion

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

Every weekday, use GLM-4.7 to compare the release announcements collected since the previous run. Summarize changes, cite sources, and separate confirmed details from unanswered questions.

GLM-4.7Notion
Try asking
  • Each morning, use GLM-4.7 to extract action items from newly received meeting transcripts. Return JSON with action, owner, due date, and evidence; use null when details are missing.

  • Each Friday, use GLM-4.7 to consolidate the week’s research notes into a 600-word brief. Identify conflicting claims and include the source for each conclusion.

  • Every night, use GLM-4.7 with thinking enabled to analyze new build-failure messages. Rank possible causes by supporting evidence and suggest the next diagnostic check.

  • Every Monday, use GLM-4.7 to draft six HTML slides from the approved weekly update text. Keep slide structure consistent and list any missing information.

How to set up GLM-4.7 in Notion

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

Use the Spiral skill

  1. Send Notion 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 Spiral's MCP server

  1. Allow custom MCP servers

    A workspace owner opens Settings › Connections, then the Manage tab, and turns on Enable custom MCP servers. Where members may install only approved connections, also add Spiral under Approved connections › Add approved connection › Custom MCP server with the URL below.

  2. Add Spiral to a custom agent

    Open the custom agent (or create one), then Settings › Tools & Access › Add connection › Custom MCP server. Paste this URL, name it Spiral, keep OAuth and click Connect.

    https://api.spiral.ai/mcp
  3. Sign in to Spiral and approve

    Spiral opens: sign in, pick the organization and click Authorize. No API key. Spiral gives the connection its own key; Notion never sees it, and you can remove it under Settings › Connected apps in the console.

  4. Run GLM-4.7 in a workflow step

    Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds GLM-4.7, prices it and runs it each time the step fires.

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-4.7

    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-4.7",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: Notion finds GLM-4.7 on Spiral, shows the price and runs it.

GLM-4.7 providers and prices

Spiral runs GLM-4.7 through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
Z.ai: GLM 4.7
z-ai/glm-4.7

Settings you can ask for

Ask Notion for any of these in your prompt.

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

The most output tokens to generate.

Temperature0 to 2
Presence penalty-2 to 2
Frequency penalty-2 to 2
Repetition penalty0 to 2

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

What can you do with GLM-4.7 in Notion?

GLM-4.7 can produce recurring research summaries and structured records from incoming text. Define the evidence required for each conclusion and a consistent output format.

Repair a reproducible bug

Give GLM-4.7 the failure, relevant code, and expected behavior. Request a focused patch and a test that reproduces the problem.

Build an interface from a written brief

Ask GLM-4.7 for responsive interface code with explicit layout, content, and interaction requirements.

Diagnose terminal failures

Have GLM-4.7 investigate build or test failures, use command results to revise its diagnosis, and report what remains unresolved.

Draft presentation code

Turn an outline into HTML slides with GLM-4.7. Specify dimensions, slide count, and a consistent heading hierarchy.

Consolidate research

Ask GLM-4.7 to compare supplied source text, identify disagreements, and produce a brief with evidence attached to each conclusion.

Extract records from text

Give GLM-4.7 an explicit JSON structure and request records extracted from messages or descriptions, with missing values marked consistently.

Develop interactive fiction

Use GLM-4.7 to draft dialogue and branching scenes from a character brief, then revise against stated continuity rules.

Questions about GLM-4.7 in Notion

Can Notion use GLM-4.7?

Yes. Add Spiral to Notion as an MCP server, and Notion can find and run GLM-4.7 like any built-in tool.

How much does GLM-4.7 cost in Notion?

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

Do I need an OpenRouter account to use GLM-4.7 in Notion?

No. Spiral runs GLM-4.7 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-4.7 in Notion?

About two minutes: allow custom MCP servers, then add Spiral to a custom agent, then sign in to Spiral and approve.

Does Notion wait while GLM-4.7 runs?

GLM-4.7 runs in the background. Notion starts the run, checks on it and gives you the text, json when it's ready.

What is GLM-4.7 good at?

GLM-4.7 is a useful choice for coding tasks that involve several steps, generated interfaces, and research synthesis. Give it a concrete deliverable and explicit acceptance criteria.

How much text can GLM-4.7 handle?

Z.ai documents a 200K-token context window and up to 128K output tokens. Treat those as ceilings and request only the output your task needs.

Can GLM-4.7 read screenshots or generate images?

Its documented input and output are text. For visual work, provide a written design specification and ask for interface or slide code.

When should I ask GLM-4.7 to use thinking?

Use thinking for debugging, planning, and decisions that depend on tool results. GLM-4.7 supports switching thinking on or off for individual turns.

Which sampling settings should I try for coding?

A concrete starting point is Z.ai’s coding evaluation configuration: temperature 0.7, top-p 1.0, and a 16,384-token generation limit. These are published test settings, so compare them against your own tasks.

Get started

Start using GLM-4.7 in Notion

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

Paste this into Notion:

Set up Notion

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