Skip to main content

Context Tools

The context tool tells your AI assistant what project it is connected to and whether it belongs to a workspace. It should be the first tool called in any session.

get_context

Returns the current project and workspace context.

Parameters

None.

Returns

FieldTypeDescription
projectIdstringThe project this session is connected to
workspaceIdstring?Workspace ID, if this project belongs to a workspace
workspaceProjectsstring[]?Other projects in the same workspace
hasWorkspacebooleanWhether this project belongs to a workspace

Example response

{
"projectId": "my-app",
"workspaceId": "backend",
"workspaceProjects": ["api-gateway", "catalog-service"],
"hasWorkspace": true
}

When to use

Call get_context at the start of every session. It tells you:

  • The project ID — needed for cross-project links in workspaces.
  • Workspace info — discover sibling projects you can reference.
  • Whether a workspace existshasWorkspace indicates if cross-project links are possible.