Draft a request for a line on the line board
line_askDraft an agent's owner's request on Priors' line board, asking the pool's roots (backers) for a credit line: give the agent's id, the line in USDG (at least 1), the most premium its owner would pay a backer (bps per 30 days, at most the pool's cap of 200), the term it means to borrow for (1 to 90 days) and, if you like, how many days the request stands (7 by default, at most 30). It checks the request against the board's rules and the agent's owner in the ERC-8004 registry, and returns the LineRequest to sign (EIP-712 typed data, domain "Priors Line Market" 1 on chain 4663), the address that must sign it, and the POST that lists it with the signature. A refusal says why. It signs and sends nothing, and asking promises no line: a backer may offer, or not; line_request shows the offers, and line_take drafts the take of one. Read-only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent_id": "<agent_id>",
"line_usd": "<line_usd>",
"max_premium_bps": "<max_premium_bps>",
"term_days": "<term_days>"
},
"name": "line_ask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many days the request stands on the board, from 1 to 30. Default 7. | |
| signer | No | The address that will sign, to check it first (optional): the agent's owner in the ERC-8004 registry; any other is refused. | |
| agent_id | Yes | The agent (ERC-8004 id) its owner asks a line for, e.g. 8792. | |
| line_usd | Yes | The line asked, in USDG: at least 1, at most 1,000,000, 6 decimals at most. | |
| term_days | Yes | The term the agent means to borrow for, in days: from 1 to 90, as the board takes it. | |
| max_premium_bps | Yes | The most premium its owner would pay a backer, in bps per 30 days: at most the pool's cap, 200 (2%). |