---
title: "Agents"
description: "Every tool over local or remote MCP and Pi and OMP and the AI SDK. What they take and what the model reads back"
canonical_url: "https://curves.agntn.dev/guide/agents"
---
# Agents

> Every tool over local or remote MCP and Pi and OMP and the AI SDK. What they take and what the model reads back

## Same tools, every host

The MCP server, the Pi and OMP extensions and `@agntn/curves/ai` all call the same executors. Same arguments, same checks, same text back. This site runs them too, so every full response on it is exactly what a model reads.

<table>
<thead>
  <tr>
    <th>
      Tool
    </th>
    
    <th>
      Does
    </th>
    
    <th>
      Arguments
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        curves_compute
      </code>
    </td>
    
    <td>
      Arithmetic on y² = x³ + ax + b over a prime you give
    </td>
    
    <td>
      <code>
        operation
      </code>
      
      , <code>
        a
      </code>
      
      , <code>
        b
      </code>
      
      , <code>
        p
      </code>
      
      , <code>
        point
      </code>
      
      , <code>
        other
      </code>
      
      , <code>
        scalar
      </code>
      
      , <code>
        order
      </code>
      
      , <code>
        limit
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        curves_secp256k1_compute
      </code>
    </td>
    
    <td>
      Point math on secp256k1 with SEC1 hex, ECDSA sign, verify and recover
    </td>
    
    <td>
      <code>
        operation
      </code>
      
      , <code>
        point
      </code>
      
      , <code>
        other
      </code>
      
      , <code>
        scalar
      </code>
      
      , <code>
        secret
      </code>
      
      , <code>
        x
      </code>
      
      , <code>
        signature
      </code>
      
      , <code>
        digest
      </code>
      
      , <code>
        hash
      </code>
      
      , <code>
        recovery
      </code>
      
      , <code>
        lowS
      </code>
      
      , <code>
        compressed
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        curves_bip340_compute
      </code>
    </td>
    
    <td>
      BIP340 Schnorr keys and signatures with x-only keys
    </td>
    
    <td>
      <code>
        operation
      </code>
      
      , <code>
        secret
      </code>
      
      , <code>
        random
      </code>
      
      , <code>
        publicKey
      </code>
      
      , <code>
        message
      </code>
      
      , <code>
        signature
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        curves_p256_compute
      </code>
    </td>
    
    <td>
      Point math on P-256 with SEC1 hex, ECDSA sign, verify and recover
    </td>
    
    <td>
      <code>
        operation
      </code>
      
      , <code>
        point
      </code>
      
      , <code>
        other
      </code>
      
      , <code>
        scalar
      </code>
      
      , <code>
        secret
      </code>
      
      , <code>
        x
      </code>
      
      , <code>
        signature
      </code>
      
      , <code>
        digest
      </code>
      
      , <code>
        hash
      </code>
      
      , <code>
        recovery
      </code>
      
      , <code>
        lowS
      </code>
      
      , <code>
        compressed
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        curves_p384_compute
      </code>
    </td>
    
    <td>
      Point math on P-384 with SEC1 hex, ECDSA sign, verify and recover
    </td>
    
    <td>
      <code>
        operation
      </code>
      
      , <code>
        point
      </code>
      
      , <code>
        other
      </code>
      
      , <code>
        scalar
      </code>
      
      , <code>
        secret
      </code>
      
      , <code>
        x
      </code>
      
      , <code>
        signature
      </code>
      
      , <code>
        digest
      </code>
      
      , <code>
        hash
      </code>
      
      , <code>
        recovery
      </code>
      
      , <code>
        lowS
      </code>
      
      , <code>
        compressed
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        curves_p521_compute
      </code>
    </td>
    
    <td>
      Point math on P-521 with SEC1 hex, ECDSA sign, verify and recover
    </td>
    
    <td>
      <code>
        operation
      </code>
      
      , <code>
        point
      </code>
      
      , <code>
        other
      </code>
      
      , <code>
        scalar
      </code>
      
      , <code>
        secret
      </code>
      
      , <code>
        x
      </code>
      
      , <code>
        signature
      </code>
      
      , <code>
        digest
      </code>
      
      , <code>
        hash
      </code>
      
      , <code>
        recovery
      </code>
      
      , <code>
        lowS
      </code>
      
      , <code>
        compressed
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        curves_brainpoolp256r1_compute
      </code>
    </td>
    
    <td>
      Point math on brainpoolP256r1 with SEC1 hex, ECDSA sign, verify and recover
    </td>
    
    <td>
      <code>
        operation
      </code>
      
      , <code>
        point
      </code>
      
      , <code>
        other
      </code>
      
      , <code>
        scalar
      </code>
      
      , <code>
        secret
      </code>
      
      , <code>
        x
      </code>
      
      , <code>
        signature
      </code>
      
      , <code>
        digest
      </code>
      
      , <code>
        hash
      </code>
      
      , <code>
        recovery
      </code>
      
      , <code>
        lowS
      </code>
      
      , <code>
        compressed
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        curves_brainpoolp384r1_compute
      </code>
    </td>
    
    <td>
      Point math on brainpoolP384r1 with SEC1 hex, ECDSA sign, verify and recover
    </td>
    
    <td>
      <code>
        operation
      </code>
      
      , <code>
        point
      </code>
      
      , <code>
        other
      </code>
      
      , <code>
        scalar
      </code>
      
      , <code>
        secret
      </code>
      
      , <code>
        x
      </code>
      
      , <code>
        signature
      </code>
      
      , <code>
        digest
      </code>
      
      , <code>
        hash
      </code>
      
      , <code>
        recovery
      </code>
      
      , <code>
        lowS
      </code>
      
      , <code>
        compressed
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        curves_brainpoolp512r1_compute
      </code>
    </td>
    
    <td>
      Point math on brainpoolP512r1 with SEC1 hex, ECDSA sign, verify and recover
    </td>
    
    <td>
      <code>
        operation
      </code>
      
      , <code>
        point
      </code>
      
      , <code>
        other
      </code>
      
      , <code>
        scalar
      </code>
      
      , <code>
        secret
      </code>
      
      , <code>
        x
      </code>
      
      , <code>
        signature
      </code>
      
      , <code>
        digest
      </code>
      
      , <code>
        hash
      </code>
      
      , <code>
        recovery
      </code>
      
      , <code>
        lowS
      </code>
      
      , <code>
        compressed
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        curves_sr25519_compute
      </code>
    </td>
    
    <td>
      Polkadot keys, signatures and HDKD on sr25519
    </td>
    
    <td>
      <code>
        operation
      </code>
      
      , <code>
        seed
      </code>
      
      , <code>
        secret
      </code>
      
      , <code>
        publicKey
      </code>
      
      , <code>
        message
      </code>
      
      , <code>
        encoding
      </code>
      
      , <code>
        signature
      </code>
      
      , <code>
        context
      </code>
      
      , <code>
        chainCode
      </code>
      
      , <code>
        hard
      </code>
      
      , <code>
        random
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        curves_ed25519_compute
      </code>
    </td>
    
    <td>
      Ed25519 keys and signatures, verified with ZIP 215 or strict rules
    </td>
    
    <td>
      <code>
        operation
      </code>
      
      , <code>
        secret
      </code>
      
      , <code>
        publicKey
      </code>
      
      , <code>
        message
      </code>
      
      , <code>
        signature
      </code>
      
      , <code>
        zip215
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        curves_ed448_compute
      </code>
    </td>
    
    <td>
      Ed448 signatures, verified under their context
    </td>
    
    <td>
      <code>
        operation
      </code>
      
      , <code>
        publicKey
      </code>
      
      , <code>
        message
      </code>
      
      , <code>
        signature
      </code>
      
      , <code>
        context
      </code>
    </td>
  </tr>
</tbody>
</table>

## Install

```bash
pi install npm:@agntn/curves
omp install @agntn/curves
```

Any other MCP client takes the stdio server:

```json
{
  "mcpServers": {
    "curves": { "command": "npx", "args": ["-y", "@agntn/curves", "mcp"] }
  }
}
```

No Node at hand? `claude mcp add --transport http curves https://curves.agntn.dev/mcp` gets the same tools from this site, next to its page tools. The arithmetic runs on a Cloudflare worker then, so the public points you send ride along.

## What a model reads

One line of JSON, the same object the harness gets as details:

```text
{"operation":"log","order":"19","scalar":"13"}
```

Why strings for numbers? JSON has no bigint, and a model would round a 77 digit integer without blinking. Integers go in as decimal or `0x` hex and come out as decimal. The point at infinity comes out as `"infinity"`.

`points` says how many there are and whether it stopped short. Infinity is a point of the group too, so a full listing gives it the front seat and `total` agrees with `count`:

```text
{"operation":"points","total":"19","points":["infinity",{"x":"0","y":"6"},{"x":"0","y":"11"}],"truncated":true}
```

Ask for one `order` and infinity turns up only for 1, the one order it has.

## What it refuses

- An argument the operation doesn't take. `count` with a `scalar` is an error, not a shrug.
- A point off the curve, a p that isn't prime, a singular curve.
- Work past the limits in [Orders and logs](https://curves.agntn.dev/math/groups#limits). The error names the limit.
- On secp256k1 and P-256, a sum that lands on infinity. SEC1 has no form for it.

A blank optional string counts as missing. OMP fills every field, and a model loves an empty `""`.

## The scalar is in the transcript

`curves_secp256k1_compute` and `curves_p256_compute` multiply a point by a scalar. Multiply G by a private key and you get its public key. Fine for a puzzle. But the key is now in the chat log, so pass public tweaks or keys you'd happily burn.

The secp256k1 `sign` drops the pretense and takes the private key outright. So do `keypair` and `sign` on the BIP340 and Ed25519 tools. Same rule, burners only.

`curves_sr25519_compute` is worse at keeping secrets, by design. `keypair` and `derive` hand secrets back, and `sign` takes one in. A hard child from a seed returns its seed too. Dev accounts and burners only.


## Sitemap

See the full [sitemap](https://curves.agntn.dev/sitemap.md) for all pages.
