Tools reference

Every tool the Penna connector gives your AI app, with its parameters, exactly as the AI sees them.

These are the tools your AI app gets when you connect it. The in-app assistant uses the same diagram tools, without diagram_id, because it always works on the diagram you have open. Select a tool to see its full description and parameters.

ToolWhat it doesRead-only
get_diagramRead diagramYes
write_diagramReplace diagramNo
edit_diagramEdit diagramNo
read_commentsRead commentsYes
reply_commentReply to a commentNo
lookup_guidanceLook up guidanceYes
list_diagramsList diagramsYes
open_diagramOpen in the appNo
create_diagramCreate diagramNo
read_contextRead business contextYes
save_learningSave learningNo
update_modelAdd to the ModelNo
update_contextUpdate business contextNo
show_diagramShow diagramYes

The connector also has load_diagram_card, edit_from_card, which only the diagram card calls, to load its picture and make the changes you make in it. Chats that show the card hide them from the AI.

Tools

Prompts

The connector also offers 2 prompts. Your AI app lists them; run one to start a chat that follows its steps. Neither saves anything until you've seen what it found and agreed.

PromptNameWhat it does
Bring my context to Pennabring_contextGather what this chat, project and memory know about your business, and save it to Penna after you've seen it.
Build my Model in Pennabuild_modelDraft the team's Model of roles, systems and data from your diagrams, context and learnings in Penna, and save it after you've reviewed it.

See Bring your context and Use the Model from your AI app.

Operations

Each entry in edit_diagram's operations is one operation for the diagram's kind, picked by its op field. The AI gets them as text when it creates or reads a diagram, and the server checks each one before applying the batch. The batch is atomic: if one operation fails, none apply.

BPMN process

Sequence diagram

ER diagram

Flowchart

Server instructions

The connector also sends these instructions when an AI app connects. Some clients shorten or ignore them, which is why the tools carry what they need in their own descriptions.

Penna: draft and edit diagrams saved in the user's account. The app lays them out and wires them; you change the structure.

Kinds of diagram (create_diagram's kind)
- bpmn: people's work: who does what, in which order, with decisions, hand-offs and messages to customers and partners.
- sequence: how systems talk: requests, replies and events between apps and services, as in a sign-in or a sync.
- erd: a database schema: tables, columns, keys and how they relate.
- flowchart: a flowchart, Mermaid or UML activity: steps and decisions, a sign-up or app flow, troubleshooting, algorithms.

Workflow
1. list_diagrams first: a change ("before X, do Y") goes to the diagram open in the app; create_diagram only for a new one.
2. read_context, once per chat, before your first change.
3. lookup_guidance for the kind's syntax, before your first write.
4. Draft with write_diagram. Change an existing diagram, fixes included, with edit_diagram.
5. Fix every error a change returns, and each warning that's a real problem; keep the rest as it is. When a fix depends on what the user meant, ask them; don't guess.
6. End with a short summary, the level of detail you drew and your assumptions, with the link to the diagram. Don't paste the code back.

On this page