Matrix identity

matrix-identity · version 1.0.0 · Vectors & matrices · free, no key needed

Construct the NxN identity matrix for a given size.

Use when you need to: identity matrix · construct an identity matrix.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "size": 3
}

Response:

{
  "result": {
    "result": [
      [
        1,
        0,
        0
      ],
      [
        0,
        1,
        0
      ],
      [
        0,
        0,
        1
      ]
    ]
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "matrix-identity",
  "version": "1.0.0",
  "input": {
    "size": 3
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/matrix-identity/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"size":3}'

The machine-readable contract is at /v1/tools/matrix-identity/versions/1.0.0.

CLI

node cli.mjs run matrix-identity 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.