Grok WorldGrok Build CLI field station

Retrospective edition / TOOLS

Give custom functions a narrow schema

Let the model request a call while authenticated application code validates arguments, executes, and returns a typed result.

01 / DECIDE

Architecture decision

Use it when the model needs private data or a bounded action beyond text generation.

Let the model request a call while authenticated application code validates arguments, executes, and returns a typed result. Map input, output, state, tools, and side effects as one observable path, then name the owner of give custom functions a narrow schema.

02 / OPERATE

Three-step field procedure

  1. 01

    Lock the contract

    Write down the caller, data classification, success condition, timeout, cancellation, and ownership. Use it when the model needs private data or a bounded action beyond text generation.

  2. 02

    Run one bounded path

    Build one end-to-end path with correlation, typed state, and reversible failure handling. Let the model request a call while authenticated application code validates arguments, executes, and returns a typed result.

  3. 03

    Verify the signal

    Turn acceptance into a repeatable fixture, contract test, or browser test. Replay tests prove duplicate calls are safe and every error branch is typed.

03 / BOUND

Operational boundary

Credentials never belong in arguments; high-impact writes need approval and idempotency.

04 / PROVE

Acceptance evidence

Replay tests prove duplicate calls are safe and every error branch is typed.

SOURCE / HTTP

Reproducible source probe

curl -fsSI 'https://docs.x.ai/developers/tools/function-calling' | sed -n '1,5p'