biterp

create_subscription_plan

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

Create Subscription Plan · Assinaturas

Somente leituraDestrutivaIdempotenteMundo aberto
NãoNãoNãoNã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.

Creates a subscription plan for the organization.

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.
product_idstring (UUID) ou nullNãoLinked product UUID
reference_codestring ou nullNãoOptional plan reference code
namestringSimPlan name
descriptionstringNãoPlan description
billing_intervalstringSimBilling interval Valores: day, week, month, year.
billing_interval_countintegerNãoBilling interval count (default 1)
amountdecimal (string ou number)SimPlan amount as decimal string (numeric(18,6), e.g. "1500.000000"); a JSON number with at most 6 decimals is also accepted, must be non-negative
currencystring ou nullNãoISO 4217 currency code
trial_period_daysintegerNãoTrial period in days
is_blockedbooleanNãoWhether the plan is blocked

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
idstring (UUID)—
tenant_idstring (UUID)—
product_idstring (UUID) ou null—
record_numberinteger—
reference_codestring ou null—
namestring—
descriptionstring ou null—
billing_intervalstringValores: day, week, month, year.
billing_interval_countinteger—
amountstring—
currencystring ou null—
trial_period_daysinteger—
is_blockedboolean—
metadataobject—
created_atstring (date-time)—
updated_atstring (date-time)—
deleted_atstring (date-time) ou null—
_tenantobject—
_tenant.idstring (UUID)—
_tenant.slugstring—
_tenant.company_namestring—

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": "create_subscription_plan",
        "arguments": {
            "tenant": "minha-empresa",
            "name": "<name>",
            "billing_interval": "day",
            "amount": "100.00"
        }
    }
}

Nesta página