Skip to main content
Glama
Stellify-Software-Ltd

Stellify MCP Server

Official

add_statement_code

Add code to an existing statement in a Laravel or Vue.js project. Parses and stores the code after the statement has been created.

Instructions

Add code to an existing statement. This is step 2 of 2 - call this AFTER create_statement.

ALTERNATIVE: Use create_statement_with_code for a single-call approach that combines both steps.

The statement must already exist (created via create_statement). This parses and stores the code.

Examples:

  • PHP: "use Illuminate\Http\Request;" or "private $items = [];"

  • JS/Vue: "const count = ref(0);" or "import { ref } from 'vue';"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesUUID of the file containing the statement
statementYesUUID of the statement to add code to
codeYesThe code to add (e.g., "const count = ref(0);")
Behavior3/5

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

No annotations are present, so the description must cover behavioral traits. It mentions 'This parses and stores the code,' which indicates a write operation, but lacks details on validation, error handling, or reversibility. Adequate but not comprehensive.

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 concise with only a few sentences, includes examples, and is well-structured with clear sections for purpose, alternative, and examples.

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?

Given the lack of annotations and output schema, the description covers the tool's purpose, sequence, alternative, and examples. However, it does not specify return values or error scenarios, which would enhance completeness.

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 coverage is 100%, so the baseline is 3. The description provides example code values but adds no additional meaning for the 'file' and 'statement' parameters beyond what the schema states (UUIDs).

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 clearly states 'Add code to an existing statement' and identifies it as step 2 of 2 after create_statement, distinguishing it from the sibling tool create_statement_with_code.

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

Usage Guidelines5/5

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

Explicitly instructs to call after create_statement and provides an alternative (create_statement_with_code) for a single-call approach. Also notes the statement must already exist.

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/Stellify-Software-Ltd/stellify-mcp'

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