Skip to main content
Glama

Samuelz® Marketing

Beitrag prüfen

prepare_business_profile_draft
Idempotent

Create a new approval request for an existing authored draft, not a draft edit, provider post or approval itself. Copy connectionId/postId and exact previewHash from get_business_profile_draft as expectedPreviewHash; requestKey is one UUID for this unchanged preparation. After explicit user instruction prepare a new human Maps approval card for one unchanged durable manual Google draft. Read its current previewHash first; send expectedPreviewHash and a fresh requestKey UUID. Identical retries recheck the draft and current rights. A changed draft, revoked rights, changed connection or attempted/ambiguous publication blocks preparation. Old cards are never extended. Returns operationId for show_maps_approval; only the human Freigeben click can publish once. This call does not edit, schedule or publish. POST /api/v1/tenant/write/prepare_business_profile_draft.

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": {
      "connectionId": "<connectionId>",
      "postId": "<postId>",
      "expectedPreviewHash": "<expectedPreviewHash>",
      "requestKey": "<requestKey>"
    },
    "name": "prepare_business_profile_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
postIdYesDurable manual draft ID returned by list_business_profile_drafts for the same connection; not a Maps operationId or live provider post ID.
requestKeyYesFresh UUID for this exact draft-to-approval-card preparation; preserve the same inputs on identical retries. It is not permission to replay a publication.
connectionIdYesExisting Google Business Profile connectionId returned by get_maps_setup; keep it with this draft’s postId.
expectedPreviewHashYesExact current previewHash from get_business_profile_draft for this unchanged durable draft. A changed preview requires reread and renewed user intent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / connectionId / description
      Added value: +"Existing Google Business Profile connectionId returned by get_maps_setup; keep it with this draft’s postId."
    • addedInput schema / properties / expectedPreviewHash / description
      Added value: +"Exact current previewHash from get_business_profile_draft for this unchanged durable draft. A changed preview requires reread and renewed user intent."
    • addedInput schema / properties / postId / description
      Added value: +"Durable manual draft ID returned by list_business_profile_drafts for the same connection; not a Maps operationId or live provider post ID."
    • addedInput schema / properties / requestKey / description
      Added value: +"Fresh UUID for this exact draft-to-approval-card preparation; preserve the same inputs on identical retries. It is not permission to replay a publication."
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover safety (readOnly=false, destructive=false, idempotent=true), so the description's added value is the retry and lifecycle semantics: identical retries recheck the draft and current rights, old cards are never extended, and only a human click can publish. It also states what the call is not (no edit, schedule, or publish) and that it returns an operationId for show_maps_approval. Slightly short of a 5 because the response contract beyond operationId is thin, though the key linkage is disclosed.

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

Conciseness3/5

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

The critical scope constraint is front-loaded, but the core requirement is restated three times (unchanged draft / previewHash / fresh requestKey UUID), and the mixed-language 'Freigeben' assumes context the reader may not have. It is dense but not wasteful in content; the redundancy is the main deduction.

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 four-parameter mutation with no output schema, the description covers trigger, prerequisite read, blocking conditions, retry behavior, and the downstream consumer of the returned operationId. Nothing an agent needs in order to call it correctly appears missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds genuine cross-tool meaning the schema cannot: it tells the agent to copy connectionId/postId and the exact previewHash from get_business_profile_draft as expectedPreviewHash, and that requestKey is a single fresh UUID scoped to one unchanged preparation. That source-mapping and reuse rule goes beyond the field-level text.

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?

The opening sentence states a specific verb and resource ('Create a new approval request for an existing authored draft') and explicitly excludes three look-alikes: draft edits, provider posts, and approvals themselves. Combined with the endpoint line and the named sibling get_business_profile_draft, an agent can distinguish this from prepare_business_profile_post or show_maps_approval 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?

It gives both the trigger ('After explicit user instruction prepare a new human Maps approval card for one unchanged durable manual Google draft') and the ordering prerequisite ('Read its current previewHash first'). It also enumerates the blocking conditions that should stop the call: changed draft, revoked rights, changed connection, or attempted/ambiguous publication.

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