Skip to main content
Glama

project_instructions

Read-onlyIdempotent

Retrieve project instructions for file paths with provenance, avoiding silent merging of conflicting rules. Set include_agent_requested=true to add Manual or Agent Requested Cursor rules.

Instructions

Return applicable project instructions for path(s) with provenance. Does not silently merge conflicting rules. Empty paths => always-on instructions only. Set include_agent_requested=true to include Manual/Agent Requested Cursor rules. Read-only; lease_id optional.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathsNo
projectNodemo
lease_idNo
max_bytesNo
include_agent_requestedNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Annotations already declare read-only, idempotent, and non-destructive behavior. The description adds valuable behavioral nuance beyond annotations: it explicitly states that it does not silently merge conflicting rules, provides provenance, and explains empty-path behavior. This gives the agent critical safety-awareness without contradicting the annotations.

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

Conciseness5/5

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

The description is extremely concise: three sentences that front-load the purpose, then highlight behavioral traits, then provide parameter guidance. Every sentence adds value without fluff, making it easy for an agent to parse quickly.

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?

The tool has 5 optional parameters and an output schema. Description covers core behavior, conflict handling, and key parameter semantics. Notable omissions like max_bytes and project are not critical given the output schema and the clarity of the overall context, making this a well-rounded description.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It does explain include_agent_requested and lease_id, and describes the semantics of empty paths, but leaves project and max_bytes undocumented. This is partial compensation; the agent would benefit from more parameter-level detail.

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

Purpose5/5

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

The description uses the specific verb 'Return' with a clear resource: 'applicable project instructions for path(s)' with provenance. It distinguishes itself from sibling tools like project_skills_list and project_skill_read by focusing on instructions rather than skills, and also clarifies its scope (always-on vs. rule files).

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

Usage Guidelines4/5

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

Provides clear context on when to use the tool: when you need project instructions, with specific guidance for empty paths and the include_agent_requested flag. It does not explicitly name alternatives or exclusions, but the context is strong enough for an agent to decide when this tool is relevant.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/davidlosasgonzalez/codeagent-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server