Skip to main content
Glama

Samuelz® Sales

Auftragsentwurf aus qualifizierter Verkaufschance vorbereiten

prepare_sales_service_order
Idempotent

For an explicitly requested order preparation: read the opportunity with get_sales_learning and its bindingRevision with get_sales_outcome_sources first. Creates or reuses exactly one incomplete existing service-order draft for the established customer and atomically records its sales-learning relationship. Copies the pinned internal offer title/scope only; never treats hypothesis prices or terms as approved contract data. Requires current CRM read/write, Operations read, business:write consent and owner Operations write authority at commit. An existing source link blocks a new preparation; use link_sales_outcome for an intentional correction. Reuse requestKey and identical revisions on retry. Returns the existing order even after it progressed; never reopens it or restores a later corrected link. Review and complete the returned source order through the existing offer workflow. No message, offer acceptance, payment link, invoice or capacity reservation. No tenant selector.

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": {
      "opportunityId": "<opportunityId>",
      "expectedLearningRevision": "<expectedLearningRevision>",
      "expectedBindingRevision": "<expectedBindingRevision>",
      "requestKey": "<requestKey>"
    },
    "name": "prepare_sales_service_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestKeyYesNew UUID for a new preparation. Reuse the same UUID and identical inputs on retry; prior orders and later link corrections are never replayed as new effects.
opportunityIdYesExisting opportunity ID from get_sales_learning; its customer must already be established.
expectedBindingRevisionYesCurrent bindingRevision from get_sales_outcome_sources. A new preparation requires an unlinked source; existing links are never replaced.
expectedLearningRevisionYesExact current opportunity revision; a changed or archived opportunity blocks a new draft.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (which only declare non-readonly, idempotent, non-destructive, closed-world) by naming the exact consent and authority needed at commit (CRM read/write, Operations read, business:write consent, owner Operations write authority), spelling out idempotent retry semantics via requestKey and identical revisions, and enumerating what is explicitly NOT produced (message, offer acceptance, payment link, invoice, capacity reservation). It also discloses post-condition behavior: it returns an order even after it progressed, never reopens it, and never restores a later corrected link.

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 the action, then preconditions, effects, and exclusions in a logical order with no filler sentences. It is dense to the point of repetition in the negative-constraint clauses, but each sentence carries a distinct constraint required to call it safely.

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

Completeness5/5

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

For a non-idempotent-looking mutation with no output schema, it supplies everything an agent needs: prerequisites, atomicity of the relationship write, permission/authority requirements, idempotent retry behavior, return semantics, and an explicit hand-off to the offer workflow for completion. Nothing material is missing.

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 the schema already documents requestKey, both revision pins and opportunityId, and the description largely restates those semantics rather than adding new ones. It does tie expectedBindingRevision to the 'unlinked source' precondition and pins scope to the internal offer title/scope, but the schema carries most of the load.

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+resource (creates or reuses exactly one incomplete service-order draft) plus the side effect (records the sales-learning relationship) and names the sibling tools it depends on. An agent can distinguish this from link_sales_outcome or the prepare_* siblings without opening a schema.

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?

Explicitly scopes usage to 'an explicitly requested order preparation', mandates reading get_sales_learning and get_sales_outcome_sources first, and gives the exclusion rule with the alternative named: an existing source link blocks preparation, use link_sales_outcome for an intentional correction. That is when/when-not/alternative in one place.

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.

Resources