Skip to main content
Glama

get_project_id

Returns the current project root path and flags whether it is new by checking for .brain/memory.md, so assistants can scope memory correctly.

Instructions

Return the current project root path and whether it is a new project (no .brain/memory.md yet). Memory is stored in .brain/memory.md.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_project_id"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the whole burden. It does disclose the substantive state condition (the flag is true when .brain/memory.md does not yet exist) and the storage location, but it never states that the call is side-effect free, whether it creates anything, or how errors (e.g. no project root found) behave.

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

Conciseness4/5

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

Two short sentences, front-loaded with the return values. The second sentence about .brain/memory.md is somewhat repetitive of the parenthetical but does supply the concrete path needed to interpret the new-project flag.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter tool with no output schema, the description must carry the return-value burden, and it does name both results (root path and new-project boolean). It stops short of naming the output fields or confirming the call is read-only, but an agent has enough to invoke it correctly.

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?

The tool takes no parameters, so there is no schema semantics to supplement. The description correctly adds no parameter noise and instead uses the space to explain what the call yields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource: it returns the current project root path plus a new-project flag, and it defines the flag's condition (no .brain/memory.md yet). The only friction is that the tool name says 'id' while the description promises a 'path', which invites a moment of doubt, but the described behavior is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when an agent should call this versus siblings such as memory_list or memory_retrieve, nor any prerequisite or follow-up guidance. Usage is only implied by the fact that it surfaces project context, leaving the agent to guess its place in a workflow.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.