Skip to main content
Glama

Comandă publicarea (cheltuiește)

order_publication
Destructive

Trimite un articol spre publicare pe unul sau mai multe site-uri. Rezervă bani sau credite din cont. Merge doar dacă organizația a pornit „asistenții AI pot comanda și publica".

Use when the user has explicitly confirmed publishing a specific draft on specific sites, with the total shown. Spends credits or money. Do not use when the user has not confirmed, or to estimate costs: use plan_budget or get_site.

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": {
      "articleId": "<articleId>",
      "siteIds": "<siteIds>"
    },
    "name": "order_publication"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdsYesSite-urile pe care se publică, din search_catalog sau plan_budget.
articleIdYesArticolul, din list_articles sau create_article.
promoCodeNoCod de reducere, dacă există
campaignTypeNoImplicit SEO
packageTypeIdNoPachetul din care se plătește, când sunt mai multe

Output Schema

NameRequiredDescriptionDefault
publicationsNoarray of {id, siteId, status, amountCents, paymentSource}. One per ordered site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / articleId / description
      Previous value: -"Id-ul articolului (UUID), din list_articles sau create_article."New value: +"Articolul, din list_articles sau create_article."
    • removedInput schema / properties / articleId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / packageTypeId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • changedInput schema / properties / siteIds / description
      Previous value: -"Id-urile site-urilor pe care se publică (UUID), 1–50, din search_catalog sau plan_budget."New value: +"Site-urile pe care se publică, din search_catalog sau plan_budget."
    • removedInput schema / properties / siteIds / items / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "publications": {
      +      "description": "array of {id, siteId, status, amountCents, paymentSource}. One per ordered site."
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / articleId / description
      Added value: +"Id-ul articolului (UUID), din list_articles sau create_article."
    • addedInput schema / properties / siteIds / description
      Added value: +"Id-urile site-urilor pe care se publică (UUID), 1–50, din search_catalog sau plan_budget."
  3. Changed4 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / articleId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • addedInput schema / properties / packageTypeId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • addedInput schema / properties / siteIds / items / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  4. First observed

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly=false, destructive=true, openWorld=true, idempotent=false, so the safety profile is largely covered. The description adds genuinely non-structured context: it reserves money or credits, and it only works when the organization has enabled "AI assistants can order and publish" — a prerequisite an agent cannot infer. It stops short of explaining failure behavior (insufficient balance, partial publish across sites, refunds), which is the remaining gap for a destructive spending tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with what the tool does, then the prerequisite, then the when/when-not guidance. Slight redundancy between "Rezervă bani sau credite" and the later "Spends credits or money", but the repetition reinforces a high-stakes fact rather than wasting space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and annotations cover the mutation/idempotency profile. Given that this is a money-spending, non-idempotent, destructive operation, the description supplies the critical gating and cost context; what is missing is post-call semantics (partial failure across multiple sites, refund behavior).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter is already documented, including provenance hints (siteIds from search_catalog or plan_budget, articleId from list_articles or create_article). The description adds only the high-level notion of one-or-more sites and a specific draft; it does not clarify how packageTypeId/promoCode interact with the reserved amount. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Trimite un articol spre publicare"), the fan-out scope ("pe unul sau mai multe site-uri"), and a gating prerequisite (org must have enabled AI ordering). It also names the sibling tools (plan_budget, get_site) that cover the cases this tool does not, so an agent can separate it from cost-estimation tools without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit positive condition (user has explicitly confirmed a specific draft on specific sites, with the total shown) and explicit negative conditions (not confirmed; cost estimation → use plan_budget or get_site). Both when-to-use and when-not-to-use plus named alternatives are present.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.