Skip to content

pm_prompt

Vanguard

The pm_prompt tool manages the prompt library — the markdown instruction files that capabilities and agents reference. Prompts have a role, tags, and agent bindings.

Actions

create, get, list, list_with_content, update, delete, help

Roles

Every prompt has one of five roles:

RolePurpose
systemCore system prompt — agent identity and top-level instructions
guideWorkflow guide — step-by-step instructions for a task or process
checklistChecklist-style constraints and verification steps
policyPolicies, rules, and constraints the agent must follow
contextBackground context, domain knowledge, or reference material
Context-sensitive listing. list returns metadata only (id, key, role, name, tags, agentCount) to keep agent context windows small. Use get when you need one known prompt’s actual content, or list_with_content when you specifically need content for multiple matching prompts.

create

Create a new prompt.

Parameters

FieldTypeRequiredNotes
keystringYesUnique prompt key (max 120 chars)
rolestringYessystem, guide, checklist, policy, or context
namestringYesDisplay name (max 200 chars)
contentstringYesPrompt content (max 20,000 chars)
tagsstring[]NoFreeform tags

Example

pm_prompt {
  action: "create",
  key: "reviewer.system",
  role: "system",
  name: "Reviewer System Prompt",
  content: "You are a code reviewer. Your job is to...",
  tags: ["review", "core"]
}

get

Fetch a prompt by ID or key. Returns full content.

Parameters

FieldTypeRequired
idstringOne of
keystringOne of

list

Metadata-only list. Returns prompt records without content — just id, key, role, name, tags, and agentCount (how many agents bind to this prompt).

Parameters

FieldTypeRequiredNotes
rolesstring[]NoFilter by roles array
searchstringNoSearch query
limitnumberNoMax results (1–500)

Use this for discovery — an agent can list available prompts without blowing out its context window.

Example

pm_prompt {
  action: "list",
  roles: ["system"],
  search: "reviewer",
  limit: 20
}

list_with_content

Same filters as list, but each returned prompt includes full content. Use this only when metadata-only discovery is not enough, such as scanning the bodies of several prompts at once. For one known prompt key or id, prefer get.

Parameters

Same as list: roles, search, and limit.


update

Update an existing prompt.

Parameters

FieldTypeRequired
idstringYes
keystringNo
rolestringNo
namestringNo
contentstringNo
tagsstring[]No

delete

Delete a prompt by ID.

Parameters

FieldTypeRequired
idstringYes

help

pm_prompt { action: "help" }

help returns structured, read-only guidance for prompt registry calls.

FieldContents
actionsCurrent accepted action names: create, get, list, list_with_content, update, delete, and help
whenToUseGuidance that list is metadata-only, list_with_content is content-bearing with the same filters, and get loads full content by id or key
examplesRepresentative calls for metadata discovery, loading a known prompt by key, and creating a prompt
cautionsGuardrails such as generated prompt ids, content omitted from list, and delete clearing related bindings or capability references
compatibilityNotes that structured help is additive and existing action names and non-help result shapes are unchanged

Use the help payload to pick the smallest prompt call that fits the context budget: list for discovery, get for one known prompt, and list_with_content for batch content inspection.

Related