# `cli.call_arguments`

A `jadpo call` command names no query or action, one the project doesn't declare, input that isn't a JSON object, or a user `--as` can't sign in as.

Area 14, [Tools](/docs/tooling.md); not declinable; the next step is usually the agent's.

## Why Jadpo refuses it

`jadpo call` runs one query or action, which may write, so it runs the one you name and never a guess at another. Its input is one JSON object, each member a parameter by name, and `--as` signs in as a user who is in the database, as a route would sign them in.

## What it looks like

A project whose one action is `add_note`:




```jadpo
use notes/entities { Note }
use notes/types { NoteBody }

/// Writes a note down.
action add_note(body: NoteBody) -> Note {
    return Note.create {
        set: {
            body: body
        }
    }
}
```

The name is mistyped:

```sh
jadpo call add_notes --input '{"body":"Buy milk"}'
```

```text
error: `add_notes` isn't a query or action
  reason: `jadpo call` runs a query or action the project declares, by its name.
  next: Use `add_note` instead of `add_notes` (agent)
  rule: cli.call_arguments
  help: https://jadpo.dev/docs/errors/cli.call_arguments
```

`(agent)` at the end of the `next:` line means your coding agent can make the fix itself.

## How to fix it

**If the name is mistyped**, use the one the project declares, with its domain when two domains share it:

```sh
jadpo call add_note --input '{"body":"Buy milk"}'
```

The call runs `add_note` and prints the note it wrote, as JSON.

**If `--input` was refused**, give it one JSON object, quoted for the shell, its members the parameters by name:

```sh
jadpo call add_note --input '{"body":"Book the dentist"}'
```

Each member is read as a request's body is, so a value of the wrong type answers `invalid_input`, naming the field.

## Related

- [Running a query or action: `jadpo call`](/docs/running-a-query-or-action-jadpo-call.md)
- [`jadpo call`](/docs/commands-for-the-database-settings-and-translations.md#jadpo-call)
