list_quotes
Referência da tool list_quotes do MCP Server do bitERP (Orçamentos).
List Quotes · Orçamentos
| Somente leitura | Destrutiva | Idempotente | Mundo aberto |
|---|---|---|---|
| Sim | Não | Sim | Não |
Descrição
A descrição abaixo é a que o servidor publica, em inglês, e é o texto que o agente lê para decidir quando usar a tool.
Lists quote records for one organization with customer and line-item details.
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
tenant | string | Sim | Defines which tenant will have data read or changed. Use list_tenants first and prefer the returned tenant slug. Writes are permanent, so when the user has more than one tenant you must confirm the tenant before any write and never assume or reuse a previous choice without confirmation. UUID is accepted only when already known safely. |
search | string | Não | Optional search term to filter quotes by reference code, customer name, salesperson, description, or the record code (ORC-1042 for Brazilian companies; prefix depends on the tenant country; older QUOT-1042 still matches, or just 1042) |
product_type | string | Não | Optional filter by document product type Valores: goods, service, mixed. |
status | string | Não | Optional filter by quote status Valores: pending, approved, rejected, expired. |
customer_id | string (UUID) | Não | Optional filter by customer UUID |
cursor | string | Não | Cursor for pagination. Use next_cursor/previous_cursor from previous response. |
limit | integer | Não | Max results per page (default 10, max 100) |
Resposta
O structuredContent da resposta traz os campos abaixo (até dois níveis; o schema completo está no outputSchema publicado no tools/list).
| Campo | Tipo | Descrição |
|---|---|---|
data | array de objetos | — |
data[].id | string (UUID) | — |
data[].tenant_id | string (UUID) | — |
data[].record_number | integer | — |
data[].reference_code | string ou null | — |
data[].product_type | string | Valores: goods, service, mixed. |
data[].status | string | Valores: pending, approved, rejected, expired. |
data[].customer_id | string (UUID) | — |
data[].quote_date | string (date) | — |
data[].valid_until | string (date) ou null | — |
data[].salesperson_name | string ou null | — |
data[].estimated_delivery_date | string (date) ou null | — |
data[].description | string ou null | — |
data[].tax_notes | string ou null | — |
data[].payment_notes | string ou null | — |
data[].subtotal | string | — |
data[].discount_amount | string | — |
data[].discount_rate | string | — |
data[].total_discount | string | — |
data[].total | string | — |
data[].metadata | object | — |
data[].created_by_user_id | string (UUID) ou null | — |
data[].updated_by_user_id | string (UUID) ou null | — |
data[].deleted_by_user_id | string (UUID) ou null | — |
data[].created_at | string (date-time) | — |
data[].updated_at | string (date-time) | — |
data[].deleted_at | string (date-time) ou null | — |
data[].customer | object ou null | — |
data[].items | array de objetos | — |
has_next_page | boolean | — |
has_previous_page | boolean | — |
next_cursor | string ou null | — |
previous_cursor | string ou null | — |
Exemplo de chamada
Requisição tools/call com os parâmetros obrigatórios. Os valores são ilustrativos: troque minha-empresa pelo tenant devolvido por list_tenants e cada <...> por um valor real.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_quotes",
"arguments": {
"tenant": "minha-empresa"
}
}
}
