Tools reference
Every tool on Lineout's MCP server, with its inputs and behavior.
Overview#
| Tool | What it does | Annotation |
|---|---|---|
list_workspace | Lists teams, projects and diagrams | read-only |
list_team_members | Lists a team's members and roles | read-only |
create_team | Returns the link to buy a team | read-only |
rename_team | Renames a team | destructive |
create_project | Creates a project | additive |
rename_project | Renames a project | destructive |
delete_project | Deletes a project and its diagrams | destructive |
get_diagram | Reads a diagram's live pages | read-only |
create_diagram | Creates a diagram from JSON or Mermaid | additive |
rename_diagram | Renames a diagram | destructive |
duplicate_diagram | Copies a diagram | additive |
move_diagram | Moves a diagram to another project | destructive |
delete_diagram | Deletes a diagram | destructive |
add_page | Adds a page from JSON or Mermaid | additive |
rename_page | Renames a page | destructive |
delete_page | Deletes a page | destructive |
replace_page | Replaces a page's content | destructive |
edit_page | Adds, replaces and removes items on a page | destructive |
get_cost_estimate | Prices a page | read-only |
get_pricing_inputs | Describes a node's pricing inputs | read-only |
set_pricing | Changes a node's pricing | destructive |
set_cost_stages | Sets a page's cost stages | destructive |
get_share_link | Reads a diagram's share link | read-only |
share_diagram | Creates or changes the share link | destructive |
revoke_share_link | Deletes the share link | destructive |
get_format_guide | Returns the diagram format guide | read-only |
search_icons | Finds icon names | read-only |
The annotation is what the server tells clients: readOnlyHint for read-only tools, and destructiveHint of false for additive and true for destructive ones. Clients such as Claude use it to decide when to ask you first.
Conventions#
- Every call acts as you and checks your access. Ids come from
list_workspace, and pages are indexes from 0, in the orderget_diagramlists them. - Names are trimmed and can't be empty: teams up to 80 characters, projects up to 80, diagrams up to 200 and pages up to 100.
- Content is JSON in the diagram format, as an object or a string.
get_format_guidegives clients the same rules. - When a client connects, the server's instructions tell it to find ids with
list_workspace, readget_format_guideand usesearch_iconsbefore writing content, and preferedit_pageafter reading the page withget_diagram.
Editing pages#
add_page, rename_page, delete_page, replace_page, edit_page, set_pricing and set_cost_stages write straight into the live diagram.
Everyone who has the diagram open sees each change at once, and the changes
aren't in anyone's undo history, so they can't be undone in the editor.
delete_page, delete_diagram and delete_project are permanent.
- Content is validated as a whole before anything is written. On an error nothing changes, and the message gives the path of the problem, such as
Invalid diagram: nodes[2].position.x must be a number. - These tools need edit access. They fail with
You can only view this diagramon a diagram shared with you for viewing, and with the reason on a read-only diagram. - Synced and locked pages refuse
replace_page,edit_pageandset_pricing, and the error names the file to change instead.rename_pageanddelete_pagestill work.
Mermaid content#
create_diagram and add_page also take the text of a Mermaid flowchart, sequence, state or use case diagram, and lay it out on the server, so clients describe the structure without computing positions. See Mermaid diagrams.
- Mermaid ids become node ids, and links named like
e1@-->keep their id, so later calls can address them, such asset_pricingon the nodefn. - An icon name Lineout doesn't have fails the call with its line, where the editor would draw a rounded rectangle.
replace_pageandedit_pagetake JSON only.
Image nodes#
get_diagram lists image nodes with their picture's id in image. Clients can move, resize, keeping the proportions, and remove them, but can't upload new pictures. Writing image nodes whose images belong to another diagram you can open copies those images in, and the copies count toward the team's image storage. See Image nodes.
Plan limits#
A call that would go over a limit fails, and nothing is created, copied, moved or written:
| Limit | Tools |
|---|---|
| Diagrams in a personal team on the Free plan | create_diagram, duplicate_diagram, and move_diagram into the team |
| Shapes per diagram, on the Free plan: all nodes on all pages, not arrows | create_diagram, duplicate_diagram, add_page, replace_page, edit_page |
| Image storage per team, on every plan but Enterprise | create_diagram, duplicate_diagram, move_diagram, and page tools that copy images |
The error starts with the limit, such as "The Free plan allows 3 diagrams at a time.", names the plan that lifts it and links to the team's Plan and billing page. On the Pro and Team plans, image errors suggest removing images instead. list_workspace gives each team's plan, and for a personal team on Free its diagramLimit and shapeLimit.
Read-only diagrams#
A diagram is read-only when its personal team holds more than the Free plan allows, or when its shared team has no plan. See Over a limit and Teams without a plan.
| Tool | Behavior |
|---|---|
list_workspace | Marks diagrams that are read-only on the Free plan locked: true, and teams without a plan viewOnly: true. |
get_diagram | Works, with role: "viewer". |
| Page tools | Fail with This diagram is read-only while its personal team is over the Free plan's limits, or This diagram is read-only while its team has no plan. |
rename_diagram | Fails with This diagram is read-only while its personal team is over the Free plan's diagram limit. |
| Project, diagram and sharing tools in a team without a plan | Fail with This team has no plan, so its diagrams are read-only until its owner buys seats. |
delete_diagram and move_diagram still work on a diagram that's read-only on the Free plan.
Workspace and teams#
list_workspace#
No inputs. Lists every team you belong to with its projects and diagrams, plus the diagrams shared with you, and creates your personal team if you don't have one yet.
| Object | Fields |
|---|---|
| Team | id, name, personal, role (owner, admin or member), plan (free, pro, team or enterprise), projects. A personal team on free also has diagramLimit and shapeLimit, and a shared team without a plan has plan: "free" and viewOnly: true. |
| Project | id, name, updatedAt, diagrams |
| Diagram | id, name, pages (page names), updatedAt, url, and locked: true when it's read-only on the Free plan or, in shared, its team has no plan |
shared | Diagrams shared with you, with your role (viewer or editor) and their team |
notice | Only when the Claude Code plugin calling it is out of date |
Page names and times can lag a little behind the live diagram, which get_diagram always reads.
list_team_members#
Input: teamId. Returns each member's id, name, email and role.
create_team#
No inputs. Shared teams are bought, so it creates nothing and returns the url of your account's Plan and billing page, at /settings/billing#teams, where New team in the settings sidebar or the team switcher names the team, chooses its seats and pays. The team appears in list_workspace once Checkout is complete. See Buy a team.
rename_team#
Inputs: teamId, name. For the owner and admins only, otherwise it fails with Only the team's owner and admins can rename it. A personal team can't be renamed.
Projects#
create_project#
Inputs: teamId, name. Returns the new project's id.
rename_project#
Inputs: projectId, name.
delete_project#
Input: projectId. Permanently deletes the project and every diagram in it, and returns how many diagrams were deleted.
Diagrams#
get_diagram works on every diagram you can open. The other diagram tools need you to be a member of the diagram's team.
get_diagram#
| Input | Description |
|---|---|
diagramId | The diagram's id. |
page (optional) | A page index. Leave it out for every page. |
Returns name, projectId, your role (editor or viewer), updatedAt, url and pages, each with its index, name, nodes and arrows. Icons are short names, such as AWS-Lambda.
A synced page also has a source: provider (github, gitlab or bitbucket), repository, branch, path, url, commit, syncedAt, and status (synced, failed or paused) with an error when it isn't synced. A locked page has locked: true.
create_diagram#
| Input | Description |
|---|---|
projectId | The project to create it in. |
name | The diagram's name. |
document (optional) | { "pages": [...] }, where every page has a name; a single page, which becomes "Page 1"; or Mermaid text. Leave it out for one empty page. |
Returns the diagram's id, page names and url. Invalid content is rejected with the path of the problem, or for Mermaid its line, and nothing is created.
rename_diagram#
Inputs: diagramId, name.
duplicate_diagram#
Input: diagramId. Copies the diagram's current content and images into the same project, named like "Network copy", and returns the copy's id and url.
move_diagram#
Inputs: diagramId, projectId. Moves the diagram, with its images, to another project in any of your teams.
delete_diagram#
Input: diagramId. Permanently deletes the diagram and all its pages.
Pages#
These tools behave as described in Editing pages. A page index that doesn't exist fails with the diagram's page count.
add_page#
| Input | Description |
|---|---|
diagramId | The diagram's id. |
name | The page's name. |
content (optional) | { "nodes": [...], "arrows": [...] }, or Mermaid text. Leave it out for an empty page. |
Adds the page after the last one and returns its index.
rename_page#
Inputs: diagramId, page, name.
delete_page#
Inputs: diagramId, page. Returns how many pages are left, and the pages after it move down one index. A diagram's last page can't be deleted.
replace_page#
Inputs: diagramId, page, content, which is JSON only.
Replaces every node and arrow on the page. Items are matched by id and only real differences are written, so unchanged items stay put for everyone watching, and items missing from content are removed. The page keeps its cost stages unless content has stages. Returns how many nodes and arrows were added, modified and removed. For small changes, use edit_page.
edit_page#
| Input | Description |
|---|---|
diagramId, page | The page to change. |
nodes (optional) | Nodes to add or replace. |
arrows (optional) | Arrows to add or replace. |
remove (optional) | Ids of nodes and arrows to delete. |
nodes and arrows are upserts: an item whose id exists replaces that item
entirely. Send the whole object, including fields you don't change such as
style and cost, or they're lost. Change pricing with set_pricing
instead.
- Items with new ids are added on top of the others.
- Removing a node also removes the arrows attached to it, but not the nodes inside a removed group.
- A node's
cost.stagescan only name the page's stages, whichset_cost_stageschanges. - Errors name the item, such as
Invalid page: node "fn".position.x must be a number.
Returns how many nodes and arrows were added, modified and removed.
Cost estimates#
These tools work like the cost summary and the Pricing panel: AWS services inside an AWS Cloud group, priced in US dollars, in the region of the innermost Region group around them or else the AWS Cloud's.
On a page with stages, get_cost_estimate, get_pricing_inputs and set_pricing take an optional stage, a stage's id or name, which defaults to the first stage. On a page without stages, leave it out.
get_cost_estimate#
Inputs: diagramId, page, stage (optional). Works for viewers too.
| Field | Description |
|---|---|
monthly, upfront | The page's totals. |
services | One row per service: node, label, cloud, service (the calculator's code), name, region, count, monthlyEach (one copy), monthly and upfront (all copies). |
issues | The cost summary's notes, such as services outside the AWS Cloud, with their nodes. |
stage, stages, projectTotal | With stages: the stage priced, every stage's id, name, months, monthly, upfront and total, and the project's total when every stage has months. |
A row with excluded: true or an error doesn't count toward the totals, and missing: true marks an empty field the calculator requires. The EC2 per region fee is in the monthly of the one EC2 service per region that carries it, shown in its regionFee with hours and monthly, and isn't in monthlyEach.
get_pricing_inputs#
| Input | Description |
|---|---|
diagramId, page | The page. |
nodeId | An AWS service icon, or an AWS Cloud or Region group. |
search (optional) | Filters the EC2 instance types listed, such as m7g. |
stage (optional) | The stage to describe. |
For a group, returns its region and the regions to choose from. For a service, returns its region, count, excluded, the cost of one copy, the service choices of an icon such as Amazon RDS, the subServices of a service such as Amazon S3, and parts, one per sub-service, each with its templates, its inputs grouped in cards, its alerts and its cost lines.
Each input has an id, label, kind and value:
| Kind | Value |
|---|---|
amount | A number, with a unit from units when it has them. limits gives the range and whether decimals are allowed. |
dropdown, choice | The id of one of its options. |
checkbox | true or false. |
picker | An object of row keys and values from its rows, such as an instance type and a pricing model. |
transfer | A list of transfers, each with a direction from directions, an amount, a unit and, inbound or outbound, a region code or External. |
instance | An EC2 instance type from instances, which lists up to 40. search narrows them. |
workload, strategy | An object shaped as its format describes: EC2's usage pattern, or its pricing model with term and payment. |
- An input the calculator's rules flag has a
problem. A requiredamountwithout a value also hasrequired: true. - An EC2 service with Dedicated Instances tenancy adds
regionFeeHoursandregionFeeNote. - With stages, the result names its
stageand lists the stages that include the service inincludedIn, andownSettingssays whether a later stage has settings of its own. - A service outside the AWS Cloud is described with
kind: "outside".
set_pricing#
| Input | Description |
|---|---|
diagramId, page, nodeId | The node to change. |
region (optional) | Groups only: a region code. null resets an AWS Cloud to the default, and a Region group to its AWS Cloud's region. |
service (optional) | Icons with choices only: the service to price. Resets the service's other settings. |
subServices (optional) | Services with subServices only: the codes to include, in order. |
part (optional) | The part that template and values apply to. Defaults to 0. |
template (optional) | The id of one of the part's templates. |
values (optional) | Input ids mapped to { "value": ..., "unit": ... }, or to null to reset an input. |
count (optional) | Copies, from 1 to 100. null resets it to 1. |
excluded (optional) | true leaves the service out of the estimate. |
stage (optional) | The stage to change. |
inherit (optional) | true makes the stage use the previous stage's settings again. Not with other settings, nor on the first stage. |
Returns the node's new cost and its estimate. Every value is checked as the Pricing panel checks it, and when anything is wrong nothing changes and the error lists every problem. On a page with stages, a change reaches the later stages that use this stage's settings, while region and service apply to every stage. A service outside the AWS Cloud can be set up too, and returns a monthly of 0 and a note.
Cost stages#
set_cost_stages#
| Input | Description |
|---|---|
diagramId, page | The page. |
stages | The whole list in order, at most 6. Each has a name, and optionally its id and months, from 1 to 120. |
currentSettings (optional) | Only for a page without stages: the stage the current settings describe. Defaults to the last. |
- A stage with an existing
idkeeps its settings under its new name and months. - A stage without an
id, or with one the page doesn't have, is added where it appears and starts with the previous stage's settings. - An existing stage left out is removed, and its settings move to the next stage, so the other estimates don't change.
- Existing stages can't be reordered. A single stage, or an empty list, turns stages off.
Returns the page's new stages.
Sharing#
These tools need you to be a member of the diagram's team. A diagram has at most one share link. See Sharing a diagram.
get_share_link#
Input: diagramId. Returns the link's url and role, or null when the diagram isn't shared. Needs edit access to the team's diagrams.
share_diagram#
Inputs: diagramId, role (viewer or editor). Creates the link, or changes its role for everyone who already joined, and returns its url and role.
revoke_share_link#
Input: diagramId. Deletes the link and removes everyone who joined through it. Team members keep their access.
Reference#
get_format_guide#
No inputs. Returns the guide to Lineout's diagram JSON: nodes, groups, shapes, arrows and routes, labels, styles, cost settings and layout tips. See Diagram format.
search_icons#
| Input | Description |
|---|---|
query | Up to 200 characters. Every word must match. |
limit (optional) | 1 to 100. Defaults to 20. |
Returns, best match first, each icon's icon, the value for a node's icon field, its name, its section and its type: icon, or group for icons that belong on a group node. It searches every provider and ranks like the editor's search. Put aws, gcp, azure or generic in the query to search one set. Google Cloud names start with GCP_, Azure names with Azure_ and generic names with Generic_.