Skip to main content
Glama

Create file

create_file

Create a private document or folder in the user's Replo Files. Documents require a source: inline text, inline base64, or an asset already in this Replo project (copied; the asset stays). Nothing is fetched from a URL or an outside service. Folders have no source. Name conflicts never overwrite. For multi-step Replo work, call skills with name "replo".

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "projectId": "<projectId>",
      "name": "<name>",
      "kind": "<kind>"
    },
    "name": "create_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
nameYes
sourceNoRequired when kind is file. Omit when kind is folder. Inline text, inline base64, or an asset already in this Replo project; nothing is fetched from a URL or an outside service.
parentIdNo
projectIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / source / description
      Previous value: -"Required when kind is file. Omit when kind is folder."New value: +"Required when kind is file. Omit when kind is folder. Inline text, inline base64, or an asset already in this Replo project; nothing is fetched from a URL or an outside service."
  2. Changed4 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / parentId / anyOf
      Previous value: -[
      -  {
      -    "format": "uuid",
      -    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "format": "uuid",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / projectId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • changedInput schema / properties / source / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "contentType": {
      -        "maxLength": 255,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "text": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "text",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "text"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "contentType": {
      -        "maxLength": 255,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "dataBase64": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "base64",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "dataBase64",
      -      "contentType"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "assetId": {
      -        "format": "uuid",
      -        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "asset",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "assetId"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "contentType": {
      +        "maxLength": 255,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "text": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "text",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "text"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "contentType": {
      +        "maxLength": 255,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "dataBase64": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "base64",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "dataBase64",
      +      "contentType"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "assetId": {
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "asset",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "assetId"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: name conflicts never overwrite, an 'asset' source is copied while the original stays, and no URL or external fetch occurs. That last point reinforces openWorldHint=false in a concrete way. It omits permission requirements and what the call returns, keeping it below a 5.

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?

Front-loads the core action in the first sentence, then spends sentences on source modes and conflict behavior, each earning its place. The trailing pointer to 'skills' is useful but slightly disjointed from the rest of the paragraph.

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

Completeness3/5

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

For a mutation tool with no output schema and low param coverage, the sourcing and conflict behavior is well covered, but the agent still lacks parentId semantics, permission/auth expectations, and any hint of the returned handle for the created object.

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 only 20%, so the description must carry the load. It does a good job on the source parameter (three modes, when required vs omitted) and on kind. However parentId and projectId get no explanation in either the description or the schema, leaving a real gap.

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?

States a specific verb and resource (create a private document or folder in Replo Files) and splits the two kinds explicitly. It does not differentiate itself from nearby creation tools such as create_artifact or update_file, so it falls short of the top mark.

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

Usage Guidelines3/5

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

Implied usage rules are present: documents need a source, folders have none, and multi-step Replo work should route to the 'skills' tool. There is no explicit when-not guidance or comparison against sibling creation tools, so selection between alternatives remains partly inferential.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources