biterp

list_subscription_plans

Referência da tool list_subscription_plans do MCP Server do bitERP (Assinaturas).

List Subscription Plans · Assinaturas

Somente leituraDestrutivaIdempotenteMundo aberto
SimNãoSimNã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 subscription plans for the current organization with cursor-based pagination.

Parâmetros

ParâmetroTipoObrigatórioDescrição
tenantstringSimDefines 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.
searchstringNãoOptional search term, including the record code (PLN-1042; older PLAN-1042 still matches, or just 1042)
cursorstringNãoCursor for pagination
limitintegerNãoMax 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).

CampoTipoDescrição
dataarray de objetos—
data[].idstring (UUID)—
data[].tenant_idstring (UUID)—
data[].product_idstring (UUID) ou null—
data[].record_numberinteger—
data[].reference_codestring ou null—
data[].namestring—
data[].descriptionstring ou null—
data[].billing_intervalstringValores: day, week, month, year.
data[].billing_interval_countinteger—
data[].amountstring—
data[].currencystring ou null—
data[].trial_period_daysinteger—
data[].is_blockedboolean—
data[].metadataobject—
data[].created_atstring (date-time)—
data[].updated_atstring (date-time)—
data[].deleted_atstring (date-time) ou null—
has_next_pageboolean—
has_previous_pageboolean—
next_cursorstring ou null—
previous_cursorstring 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_subscription_plans",
        "arguments": {
            "tenant": "minha-empresa"
        }
    }
}

Nesta página